/* ==========================================================
   SMART SLD SCREENING TOOL — Premium Light Glassmorphism
   Design Language: Clean White, Emerald & Warm Amber
   ========================================================== */

/* ---- Design Tokens ---- */
:root {
    /* Brand - Emerald / Warm Neutral (No Blues) */
    --primary:      #059669; /* Emerald 600 */
    --primary-lt:   #10b981; /* Emerald 500 */
    --primary-glow: rgba(16, 185, 129, 0.4);

    --accent-1:     #eab308; /* Yellow 500 */
    --accent-2:     #f43f5e; /* Rose 500 */

    /* Surfaces - Light Glassmorphic */
    --bg-page:    #ffffff; /* Pure White */
    --bg-white:   rgba(255, 255, 255, 0.9); /* Glass layer */
    --bg-soft:    #fafafa; /* Neutral 50 */
    --bg-card:    rgba(255, 255, 255, 0.7); /* Translucent glass */
    --bg-hover:   rgba(16, 185, 129, 0.08);

    /* Text - Neutral Grays (No cool/slate grays to avoid blue) */
    --text-h:   #171717;  /* headings (Neutral 900) */
    --text-b:   #404040;  /* body (Neutral 700) */
    --text-m:   #737373;  /* muted (Neutral 500) */
    --text-p:   #a3a3a3;  /* placeholder (Neutral 400) */

    /* Borders */
    --border-lt:  rgba(0, 0, 0, 0.06); 
    --border-md:  rgba(0, 0, 0, 0.12);
    --border-str: rgba(5, 150, 105, 0.3);

    /* Status */
    --green: #22c55e;
    --yellow:#f59e0b;
    --red:   #ef4444;
    --pink:  #ec4899;

    /* Shadows - Soft and Airy */
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 40px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 48px rgba(0,0,0,0.08);
    --shadow-primary: 0 8px 32px rgba(16, 185, 129, 0.3);

    /* Radii */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --r-2xl: 24px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg-page);
    color: var(--text-b);
    font-family: 'Inter', 'Outfit', sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-h);
    letter-spacing: -0.025em;
    line-height: 1.25;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; background: rgba(0,0,0,0.03); }
::-webkit-scrollbar-thumb { background: rgba(16, 185, 129, 0.2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%);
    color: #fff;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.01em;
    border: none;
    border-radius: var(--r-md);
    padding: 0.75rem 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.25s var(--ease);
    box-shadow: var(--shadow-primary);
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-h);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border: 1px solid var(--border-md);
    border-radius: var(--r-md);
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { 
    background: #fafafa; 
    color: var(--primary); 
    border-color: rgba(5, 150, 105, 0.4); 
    transform: translateY(-1px); 
    box-shadow: var(--shadow-sm); 
}

.btn-neu {
    background: #ffffff;
    color: var(--text-m);
    font-weight: 600;
    border: 1px solid var(--border-lt);
    border-radius: var(--r-md);
    padding: 0.65rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    backdrop-filter: blur(12px);
}
.btn-neu:hover { background: rgba(16, 185, 129, 0.05); color: var(--primary); border-color: rgba(5, 150, 105, 0.3); }
.btn-neu:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ==========================================================
   CARDS & GLASSMORPHISM
   ========================================================== */
.neu-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-lt);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.neu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.neu-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(5, 150, 105, 0.15);
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-lt);
    border-radius: var(--r-xl);
    padding: 1.5rem;
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-sm);
    position: relative;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(5, 150, 105, 0.2);
    background: #ffffff;
}

/* ==========================================================
   INPUTS
   ========================================================== */
.neu-input {
    background: #fafafa;
    border: 1.5px solid var(--border-lt);
    border-radius: var(--r-md);
    color: var(--text-h);
    padding: 0.875rem 1rem;
    width: 100%;
    transition: all 0.2s var(--ease);
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
}
.neu-input::placeholder { color: var(--text-p); }
.neu-input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
select.neu-input { cursor: pointer; }
select.neu-input option { background: #ffffff; color: var(--text-h); }

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-m);
    margin-bottom: 0.4rem;
}

/* ==========================================================
   BADGES / CHIPS
   ========================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}
.badge-emerald{ background: rgba(16, 185, 129, 0.1); color: #059669; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-amber  { background: rgba(245, 158, 11, 0.1); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-red    { background: rgba(239, 68, 68, 0.1); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-pink   { background: rgba(244, 63, 94, 0.1); color: #e11d48; border: 1px solid rgba(244, 63, 94, 0.2); }

/* ==========================================================
   PROGRESS BAR
   ========================================================== */
.progress-track {
    height: 6px;
    background: rgba(0,0,0,0.06);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent-1));
    border-radius: 99px;
    transition: width 0.5s cubic-bezier(0,0,0.2,1);
}

/* ==========================================================
   LANDING PAGE OVERRIDE
   ========================================================== */
#solar-dashboard {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background: #ffffff;
    overflow: hidden;
}

.solar-hero-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    padding: 3rem;
    max-width: 1100px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,1);
    position: relative;
    z-index: 10;
}

.solar-dust {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    animation: dust-float 15s infinite linear;
    opacity: 0.3;
}

@keyframes dust-float {
    0%   { transform: translate(0,0) scale(0.8); opacity: 0; }
    15%  { opacity: 0.3; transform: translate(30px, -30px) scale(1.2); }
    85%  { opacity: 0.3; transform: translate(90px, -90px) scale(1); }
    100% { transform: translate(120px, -120px) scale(0.5); opacity: 0; }
}

/* ==========================================================
   QUIZ HUD
   ========================================================== */
.quiz-hud {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-lt);
    border-left: 4px solid var(--primary);
    border-radius: var(--r-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    position: sticky;
    top: 1rem;
    z-index: 40;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================
   ANSWER OPTIONS (radio cards)
   ========================================================== */
.answer-option { display: block; cursor: pointer; }
.answer-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.answer-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--r-lg);
    border: 1.5px solid var(--border-lt);
    background: #fafafa;
    cursor: pointer;
    transition: all 0.22s var(--ease);
    user-select: none;
    position: relative;
}
.answer-card:hover {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(5, 150, 105, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.radio-dot {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 2px solid #d4d4d4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: #ffffff;
}
.radio-dot-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.2s;
}

.answer-option.selected .answer-card {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--primary);
    box-shadow: var(--shadow-xs);
}
.answer-option.selected .radio-dot {
    border-color: var(--primary);
    background: #ffffff;
}
.answer-option.selected .radio-dot-inner { opacity: 1; }
.answer-option.selected .answer-label { color: var(--primary); font-weight: 700; }

.answer-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-b);
    transition: all 0.2s;
}

/* ==========================================================
   RESULTS
   ========================================================== */
.stat-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-lt);
    border-radius: var(--r-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-xs);
    transition: all 0.3s var(--ease);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: rgba(5, 150, 105, 0.1); }

.category-pill {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: var(--r-md);
    border: 1px solid var(--border-lt);
    background: #fafafa;
    transition: all 0.2s var(--ease);
}
.category-pill:hover {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(5, 150, 105, 0.2);
    transform: translateX(3px);
}

.divider {
    height: 1px;
    background: var(--border-lt);
    margin: 1.25rem 0;
}

/* ==========================================================
   ICON CIRCLES
   ========================================================== */
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid var(--border-lt);
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fade-in-up 0.7s cubic-bezier(0,0,0.2,1) both; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.5s cubic-bezier(0,0,0.2,1) both; }

.app-enter { animation: appEnter 0.6s cubic-bezier(0,0,0.2,1) both; }
@keyframes appEnter {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

/* ==========================================================
   UTILITIES
   ========================================================== */
.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-1) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-accent {
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#app-container {
    background: var(--bg-page);
    min-height: 100vh;
    position: relative;
}

#app-container::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(234, 179, 8, 0.05) 0%, transparent 40%);
    z-index: 0;
}

#app-content {
    position: relative;
    z-index: 10;
}

@keyframes pulse-soft { 0%,100%{ opacity:1; } 50%{ opacity:0.4; } }
.animate-pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }

/* Developer Sidebar Panel */
.dev-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-lt);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    position: sticky;
    top: 1rem;
    box-shadow: var(--shadow-sm);
}
.dev-panel h4 {
    color: var(--text-h);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-lt);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dev-btn {
    width: 100%;
    margin-bottom: 0.5rem;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: var(--r-md);
    background: #ffffff;
    border: 1px solid var(--border-lt);
    color: var(--text-b);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-xs);
}
.dev-btn:hover {
    background: #fafafa;
    border-color: var(--border-md);
    transform: translateY(-1px);
}
.dev-btn i { width: 16px; text-align: center; }
.dev-btn-green:hover { background: rgba(34,197,94,0.05); border-color: rgba(34,197,94,0.3); color: #16a34a; }
.dev-btn-amber:hover { background: rgba(245,158,11,0.05); border-color: rgba(245,158,11,0.3); color: #d97706; }
.dev-btn-red:hover { background: rgba(239,68,68,0.05); border-color: rgba(239,68,68,0.3); color: #dc2626; }
.dev-btn-pink:hover { background: rgba(244,63,94,0.05); border-color: rgba(244,63,94,0.3); color: #e11d48; }