/* BioWeb PRO - Extreme High-Level Refinement 
   Layout: Preserved | Polish: Maxed 
*/

:root { 
    --primary: #10b981; 
    --primary-glow: rgba(16, 185, 129, 0.4);
    --secondary: #3b82f6;
    --dark: #0f172a; 
    --bg: #f8fafc; 
    --white: #ffffff; 
    --text: #1e293b; 
    --text-light: #64748b;
    --glass: rgba(255, 255, 255, 0.8);
    --border: rgba(226, 232, 240, 0.8);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* Extreme Level Additions */
    --magnet-shadow: 0 30px 60px -12px rgba(16, 185, 129, 0.35);
}

.dark-theme {
    --bg: #020617; 
    --white: #0f172a; 
    --text: #f1f5f9; 
    --text-light: #94a3b8;
    --dark: #000000;
    --glass: rgba(15, 23, 42, 0.8);
    --border: rgba(30, 41, 59, 0.8);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    background-color: var(--bg); 
    margin: 0; 
    color: var(--text); 
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Custom Scrollbar (Magnet Green) --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(var(--primary), var(--secondary)); 
    border-radius: 10px;
    border: 2px solid var(--bg);
}

/* --- Navigation (Glassy & Professional) --- */
nav { 
    background: var(--dark); 
    padding: 1.2rem 8%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--primary);
}

.nav-brand { 
    color: white; 
    font-size: 2rem; 
    font-weight: 900; 
    letter-spacing: -1.5px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.nav-brand span { 
    color: var(--primary); 
    filter: drop-shadow(0 0 12px var(--primary-glow));
    margin-left: 2px;
}

.nav-links { display: flex; align-items: center; }

.nav-links a { 
    color: #94a3b8; 
    margin-left: 30px; 
    text-decoration: none; 
    cursor: pointer; 
    font-weight: 700; 
    font-size: 0.9rem; 
    transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.nav-links a:hover { 
    color: var(--primary); 
    transform: translateY(-3px);
}

/* --- Container --- */
.container { 
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 24px; 
}

.page { 
    display: none; 
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
}

.active-page { display: block; }

@keyframes slideUp { 
    from { opacity: 0; transform: translateY(40px); filter: blur(15px); } 
    to { opacity: 1; transform: translateY(0); filter: blur(0); } 
}

/* --- Hero Section (Magnet Glow) --- */
.hero { 
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(16, 185, 129, 0.25)), 
                url('https://images.unsplash.com/photo-1576086213369-97a306d36557?q=80&w=2000&auto=format&fit=crop');
    background-size: cover; 
    background-position: center;
    padding: 100px 40px; 
    border-radius: 50px; 
    text-align: center; 
    color: white; 
    margin-bottom: 60px;
    box-shadow: var(--magnet-shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero h1 { 
    font-size: 4rem; 
    margin: 0; 
    letter-spacing: -3px; 
    font-weight: 900;
    line-height: 1;
}

.hero p { 
    font-size: 1.3rem; 
    opacity: 0.9; 
    margin: 25px auto; 
    max-width: 700px;
    font-weight: 500;
}

/* --- Golden Point Box --- */
#golden-point-box { 
    background: rgba(255, 255, 255, 0.05); 
    padding: 24px 35px; 
    border-radius: 30px; 
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 700px; 
    margin: 35px auto; 
    text-align: left; 
    backdrop-filter: blur(20px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 6px solid var(--primary);
}

#golden-point-box:hover { 
    transform: scale(1.05); 
    background: rgba(255, 255, 255, 0.08);
}

/* --- Info Cards & Grid (Extreme Attraction) --- */
.info-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 35px; 
}

.info-card { 
    background: var(--glass); 
    padding: 50px 35px; 
    border-radius: 40px; 
    cursor: pointer; 
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); 
    text-align: center; 
    box-shadow: var(--shadow-sm); 
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    position: relative;
}

.info-card:hover { 
    transform: translateY(-20px) scale(1.03); 
    border-color: var(--primary); 
    box-shadow: var(--magnet-shadow);
    background: var(--white);
}

.info-card h3 { 
    font-size: 1.8rem; 
    margin-bottom: 15px; 
    color: var(--primary); 
    font-weight: 800;
}

.info-card p { 
    color: var(--text-light); 
    font-size: 1rem; 
    font-weight: 500;
}

/* --- Buttons (Professional Magnet) --- */
.cta-btn { 
    background: linear-gradient(135deg, var(--primary), #065f46); 
    color: white; 
    border: none; 
    padding: 20px 55px; 
    border-radius: 20px; 
    font-weight: 800; 
    cursor: pointer; 
    transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1); 
    font-size: 1.1rem;
    box-shadow: 0 15px 30px -5px var(--primary-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn:hover { 
    transform: translateY(-5px) scale(1.05); 
    box-shadow: 0 25px 50px -10px var(--primary-glow);
    filter: brightness(1.1);
}

.badge { 
    background: var(--primary); 
    color: white; 
    padding: 8px 18px; 
    border-radius: 100px; 
    font-size: 0.85rem; 
    font-weight: 800; 
    margin-top: 20px; 
    display: inline-block;
    box-shadow: 0 5px 15px var(--primary-glow);
}

/* --- Exam Engine Styles (Focused & Clean) --- */
.exam-init-box { 
    text-align: center; 
    padding: 120px 40px; 
    background: var(--white); 
    border-radius: 50px; 
    box-shadow: var(--magnet-shadow); 
    border: 2px solid var(--border);
}

.question-card {
    background: var(--white);
    padding: 60px 45px;
    border-radius: 45px;
    box-shadow: var(--magnet-shadow);
    border: 1px solid var(--border);
}

.organelle-btn { 
    width: 100%; 
    padding: 22px 30px; 
    border: 2px solid var(--border); 
    border-radius: 22px; 
    background: var(--white); 
    color: var(--text); 
    font-weight: 700; 
    font-size: 1.1rem;
    cursor: pointer; 
    transition: all 0.3s ease;
    text-align: left;
    margin-bottom: 12px;
}

.organelle-btn:hover { 
    border-color: var(--primary); 
    background: var(--bg);
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* --- Theme Toggle --- */
#theme-btn { 
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 10px 22px; 
    border-radius: 100px; 
    cursor: pointer; 
    font-weight: 800; 
    margin-left: 20px;
    transition: 0.3s;
    box-shadow: 0 4px 12px var(--primary-glow);
}

#theme-btn:hover { transform: scale(1.1); filter: brightness(1.1); }

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-brand { font-size: 1.5rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
    .hero { padding: 60px 20px; border-radius: 30px; }
    .info-grid { grid-template-columns: 1fr; gap: 20px; }
}
/* --- New Selected State Logic --- */
.correct-selected {
    background: #10b981 !important;
    color: white !important;
    border-color: #059669 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    transform: scale(1.02);
}

.wrong-selected {
    background: #ef4444 !important;
    color: white !important;
    border-color: #b91c1c !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.correct-glow {
    border: 2px solid #10b981 !important;
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--primary) !important;
}
.score-pill {
    font-weight: 800;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    padding: 5px 12px;
    border-radius: 8px;
}

/* Custom Scrollbar for Review Box */
.question-card::-webkit-scrollbar {
    width: 6px;
}
.question-card::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
/* Feedback Visuals */
.correct-selected { background: #10b981 !important; color: white !important; border-color: #059669 !important; box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
.wrong-selected { background: #ef4444 !important; color: white !important; border-color: #b91c1c !important; box-shadow: 0 0 20px rgba(239, 68, 68, 0.4); }
.correct-glow { border: 2px solid #10b981 !important; background: rgba(16, 185, 129, 0.1) !important; color: #10b981 !important; }

/* Review Scrollbar */
.question-card::-webkit-scrollbar { width: 8px; }
.question-card::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
/* Timer Styling */
.timer-box {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 20px;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* Review & Massive Content */
.massive-content {
    text-align: left;
    line-height: 1.8;
    color: var(--text);
}

.massive-content b { color: var(--primary); }

.mock-nav {
    color: var(--primary) !important;
    font-weight: 800;
    border: 2px solid var(--primary);
    padding: 5px 15px !important;
    border-radius: 20px;
}

/* Feedback States */
.correct-selected { background: #10b981 !important; color: white !important; }
.wrong-selected { background: #ef4444 !important; color: white !important; }
.correct-glow { border: 2px solid #10b981 !important; color: #10b981 !important; }
/* Correct/Wrong Visuals */
.correct-selected { background: #10b981 !important; color: white !important; border-color: #059669 !important; }
.wrong-selected { background: #ef4444 !important; color: white !important; border-color: #b91c1c !important; }
.correct-glow { border: 2px solid #10b981 !important; color: #10b981 !important; background: rgba(16, 185, 129, 0.05) !important; }

/* Review Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
.stat-pill { background: rgba(16, 185, 129, 0.1); color: var(--primary); padding: 8px 18px; border-radius: 50px; font-weight: 800; border: 1px solid var(--primary); }
.timer-banner { font-size: 1.8rem; font-weight: 900; color: var(--primary); margin-bottom: 20px; text-align: center; }
.review-box { padding: 15px; margin-bottom: 12px; border-radius: 10px; border-left: 6px solid; background: #f9fafb; text-align: left; }
.rev-up { border-left-color: #10b981; }
.rev-down { border-left-color: #ef4444; }
.correct-selected { background: #10b981 !important; color: white !important; transform: scale(1.02); }
.wrong-selected { background: #ef4444 !important; color: white !important; }
.correct-glow { border: 2px solid #10b981 !important; color: #10b981 !important; }
.nav-mock-btn { border: 2px solid var(--primary) !important; font-weight: 800; color: var(--primary) !important; padding: 5px 15px !important; border-radius: 30px; }

/* Style for the Back to Library Button (Added Style) */
.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    color: #00ffcc;
    text-decoration: none;
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.back-btn:hover {
    background: rgba(0, 255, 204, 0.1);
    border-color: #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
    transform: translateX(-5px);
}

.back-btn::before {
    content: '←';
    margin-right: 8px;
    font-weight: bold;
} 
/* Elite Formula Styling */
.formula-highlight {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.massive-content li {
    margin-bottom: 15px;
    list-style-type: none;
    position: relative;
    padding-left: 25px;
}

.massive-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 900;
   }
