/* ============================================================
   SIKAD - Sistem Survei Kepuasan Digital
   Theme: Pandan Green × Lime × Gold × Futuristic Luxury
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&family=Fira+Code:wght@400;500&display=swap');

:root {
    --pandan: #2d6a4f;
    --pandan-mid: #40916c;
    --pandan-light: #52b788;
    --pandan-pale: #74c69d;
    --lime: #a7c957;
    --lime-bright: #c5e063;
    --gold: #f0c040;
    --gold-dark: #c9960c;
    --black: #0a0f0d;
    --black-card: #111a15;
    --black-border: #1a2e22;
    --off-white: #eef7f1;
    --text-main: #d4edda;
    --text-sub: #8fbc99;
    --text-muted: #5a7a62;
    
    --grad-hero: linear-gradient(135deg, #0a1a10 0%, #0d2818 40%, #0a1f14 70%, #081a0f 100%);
    --grad-card: linear-gradient(145deg, #111a15 0%, #152212 100%);
    --grad-accent: linear-gradient(135deg, #2d6a4f 0%, #40916c 50%, #a7c957 100%);
    --grad-gold: linear-gradient(135deg, #f0c040 0%, #e6a817 50%, #c9960c 100%);
    --grad-lime: linear-gradient(135deg, #74c69d 0%, #a7c957 100%);
    
    --shadow-glow: 0 0 40px rgba(45,106,79,0.4), 0 8px 32px rgba(0,0,0,0.6);
    --shadow-gold: 0 0 20px rgba(240,192,64,0.3), 0 4px 16px rgba(0,0,0,0.4);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.5), 0 1px 4px rgba(45,106,79,0.2);
    
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 50px;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'Fira Code', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--black);
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(45,106,79,0.25) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(167,201,87,0.08) 0%, transparent 60%);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ---- HEADER ---- */
.site-header {
    background: linear-gradient(180deg, rgba(10,15,13,0.98) 0%, rgba(13,28,18,0.95) 100%);
    border-bottom: 1px solid var(--black-border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-logo {
    width: 44px;
    height: 44px;
    background: var(--grad-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(45,106,79,0.5);
}
.header-text { flex: 1; }
.header-text .app-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    background: var(--grad-lime);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}
.header-text .app-inst {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.header-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    background: rgba(45,106,79,0.2);
    border: 1px solid rgba(45,106,79,0.4);
    color: var(--pandan-pale);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 1px;
}

/* ---- CONTAINERS ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}
.container-md {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ---- HERO (Landing) ---- */
.hero {
    text-align: center;
    padding: 80px 0 60px;
}
.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--lime);
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.8;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 6vw, 58px);
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, #eef7f1 0%, #74c69d 40%, #a7c957 70%, #f0c040 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}
.hero p {
    font-size: 16px;
    color: var(--text-sub);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ---- SURVEY CARDS (Landing) ---- */
.survey-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 820px;
    margin: 0 auto 60px;
}
@media (max-width: 600px) {
    .survey-cards { grid-template-columns: 1fr; }
}
.survey-card {
    background: var(--grad-card);
    border: 1px solid var(--black-border);
    border-radius: 24px;
    padding: 36px 32px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}
.survey-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(45,106,79,0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.survey-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: var(--pandan-light);
}
.survey-card:hover::before { opacity: 1; }
.survey-card.gold:hover {
    box-shadow: var(--shadow-gold);
    border-color: var(--gold);
}
.card-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}
.card-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.survey-card h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--off-white);
    line-height: 1.3;
    margin-bottom: 12px;
}
.survey-card p {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 24px;
}
.card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    transition: all 0.2s;
}
.survey-card:not(.gold) .card-arrow {
    background: rgba(45,106,79,0.25);
    border: 1px solid rgba(45,106,79,0.5);
    color: var(--pandan-pale);
}
.survey-card.gold .card-arrow {
    background: rgba(240,192,64,0.15);
    border: 1px solid rgba(240,192,64,0.4);
    color: var(--gold);
}
.survey-card:hover .card-arrow {
    transform: translateX(4px);
}
.card-meta {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.tag {
    font-size: 10px;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
}
.tag-green { background: rgba(45,106,79,0.2); border: 1px solid rgba(45,106,79,0.4); color: var(--pandan-pale); }
.tag-gold  { background: rgba(240,192,64,0.1); border: 1px solid rgba(240,192,64,0.3); color: var(--gold); }
.tag-lime  { background: rgba(167,201,87,0.1); border: 1px solid rgba(167,201,87,0.3); color: var(--lime-bright); }

/* ---- FORM PAGE ---- */
.form-hero {
    padding: 50px 0 30px;
    text-align: center;
}
.form-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 800;
    background: var(--grad-lime);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}
.form-hero p {
    color: var(--text-sub);
    font-size: 14px;
    max-width: 480px;
    margin: 0 auto;
}

/* ---- PROGRESS BAR ---- */
.progress-bar-wrap {
    background: rgba(45,106,79,0.1);
    border: 1px solid var(--black-border);
    border-radius: 24px;
    padding: 18px 24px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--grad-accent);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.progress-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--lime);
    white-space: nowrap;
}

/* ---- FORM CARD ---- */
.form-card {
    background: var(--grad-card);
    border: 1px solid var(--black-border);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}
.form-card.section-identity {
    border-color: rgba(45,106,79,0.3);
}
.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--black-border);
}
.section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: rgba(45,106,79,0.2);
    border: 1px solid rgba(45,106,79,0.3);
}
.section-title-wrap h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--off-white);
    margin-bottom: 2px;
}
.section-title-wrap span {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

/* ---- INPUT FIELDS ---- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-sub);
    margin-bottom: 7px;
    text-transform: uppercase;
}
.form-group label .req { color: var(--gold); margin-left: 2px; }
.form-control {
    width: 100%;
    background: rgba(10,15,13,0.7);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 11px 14px;
    transition: all 0.2s;
    outline: none;
    -webkit-appearance: none;
}
.form-control:focus {
    border-color: var(--pandan-light);
    box-shadow: 0 0 0 3px rgba(45,106,79,0.2);
    background: rgba(13,28,18,0.9);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control option { background: #111a15; color: var(--text-main); }

/* ---- LIKERT QUESTION ---- */
.question-block {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.question-block:last-child { border-bottom: none; }
.question-text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 14px;
}
.q-number {
    font-family: var(--font-mono);
    color: var(--lime);
    font-size: 12px;
    margin-right: 6px;
}
.likert-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (max-width: 520px) {
    .likert-row { grid-template-columns: 1fr 1fr; }
}
.likert-option { position: relative; }
.likert-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.likert-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    background: rgba(10,15,13,0.5);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-transform: none;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.3;
    min-height: 60px;
}
.likert-option label .score-num {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    display: block;
}
.likert-option:nth-child(1) input:checked + label { background: rgba(220,38,38,0.2); border-color: #ef4444; color: #fca5a5; }
.likert-option:nth-child(2) input:checked + label { background: rgba(234,179,8,0.15); border-color: #eab308; color: #fde047; }
.likert-option:nth-child(3) input:checked + label { background: rgba(45,106,79,0.25); border-color: var(--pandan-light); color: var(--pandan-pale); }
.likert-option:nth-child(4) input:checked + label { background: rgba(167,201,87,0.2); border-color: var(--lime); color: var(--lime-bright); }
.likert-option label:hover {
    border-color: var(--pandan-mid);
    background: rgba(45,106,79,0.15);
    color: var(--text-main);
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.btn-primary {
    background: var(--grad-accent);
    color: var(--black);
    box-shadow: 0 4px 20px rgba(45,106,79,0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45,106,79,0.5);
}
.btn-gold {
    background: var(--grad-gold);
    color: var(--black);
    box-shadow: 0 4px 20px rgba(240,192,64,0.3);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(240,192,64,0.4);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--black-border);
    color: var(--text-sub);
}
.btn-outline:hover {
    border-color: var(--pandan-mid);
    color: var(--text-main);
    background: rgba(45,106,79,0.1);
}
.btn-lg { padding: 15px 36px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---- ALERTS ---- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-success { background: rgba(45,106,79,0.2); border: 1px solid rgba(45,106,79,0.4); color: var(--pandan-pale); }
.alert-danger  { background: rgba(220,38,38,0.15); border: 1px solid rgba(220,38,38,0.3); color: #fca5a5; }
.alert-info    { background: rgba(167,201,87,0.1); border: 1px solid rgba(167,201,87,0.25); color: var(--lime-bright); }

/* ---- ADMIN LAYOUT ---- */
.admin-wrap {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #0a1410 0%, #0d1e14 100%);
    border-right: 1px solid var(--black-border);
    padding: 24px 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-logo {
    padding: 0 20px 24px;
    border-bottom: 1px solid var(--black-border);
    margin-bottom: 20px;
}
.sidebar-logo .brand {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    background: var(--grad-lime);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sidebar-logo .sub {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.sidebar-section {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 0 20px;
    margin: 16px 0 8px;
}
.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.sidebar a:hover, .sidebar a.active {
    color: var(--pandan-pale);
    background: rgba(45,106,79,0.15);
    border-left-color: var(--pandan-light);
}
.sidebar a span.ico { font-size: 16px; width: 22px; text-align: center; }
.main-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

/* ---- STATS CARDS ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--grad-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius);
    padding: 22px;
    transition: all 0.25s;
}
.stat-card:hover { border-color: var(--pandan-mid); }
.stat-value {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}
.stat-value.green { background: var(--grad-lime); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-value.gold  { background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ---- TABLES ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--black-border); }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
thead tr { background: rgba(45,106,79,0.15); }
thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--pandan-pale);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--black-border);
    white-space: nowrap;
}
tbody tr { border-bottom: 1px solid rgba(255,255,255,0.03); transition: background 0.15s; }
tbody tr:hover { background: rgba(45,106,79,0.08); }
tbody td { padding: 11px 16px; color: var(--text-sub); }
tbody td:first-child { color: var(--text-main); }

/* ---- PAGE TITLE ---- */
.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-title h1 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--off-white);
}
.page-title p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}
.section-card {
    background: var(--grad-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.section-card h2 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--off-white);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--black-border);
}

/* ---- LOGIN ---- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-box {
    background: var(--grad-card);
    border: 1px solid var(--black-border);
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-glow);
}
.login-box h1 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--off-white);
    margin-bottom: 6px;
}
.login-box .sub { font-size: 13px; color: var(--text-muted); margin-bottom: 32px; }

/* ---- SCORE BADGE ---- */
.score-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
}
.score-sp  { background: rgba(167,201,87,0.2); border: 1px solid rgba(167,201,87,0.4); color: var(--lime-bright); }
.score-p   { background: rgba(45,106,79,0.2); border: 1px solid rgba(45,106,79,0.4); color: var(--pandan-pale); }
.score-tp  { background: rgba(234,179,8,0.15); border: 1px solid rgba(234,179,8,0.3); color: #fde047; }
.score-stp { background: rgba(220,38,38,0.15); border: 1px solid rgba(220,38,38,0.3); color: #fca5a5; }

/* ---- FOOTER ---- */
.site-footer {
    border-top: 1px solid var(--black-border);
    padding: 20px 0;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    margin-top: 60px;
}

/* ---- SUCCESS PAGE ---- */
.success-wrap {
    text-align: center;
    padding: 80px 20px;
}
.success-icon {
    font-size: 72px;
    margin-bottom: 24px;
    animation: pulse-icon 2s ease-in-out infinite;
}
@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.success-wrap h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    background: var(--grad-lime);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}
.success-wrap p {
    color: var(--text-sub);
    font-size: 15px;
    max-width: 440px;
    margin: 0 auto 32px;
}

/* ---- DIVIDER ---- */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pandan-mid), transparent);
    margin: 32px 0;
    opacity: 0.3;
}

/* ---- FORM ACTIONS ---- */
.form-actions {
    padding: 24px 0 0;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.form-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--pandan); border-radius: 3px; }
