/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.hero-section {
    background-image: url('images/student.jpg');
    /* Other background properties for styling */
    background-repeat: no-repeat;
    background-size: cover; /* This scales the image to cover the entire container */
    height: 400px; /* Set a height for the div to be visible */
    color: white; /* Example text color for readability */
}


:root {
    --primary-color: #004a9e;
    --secondary-color: #0066cc;
    --accent-color: #00bfff;
    --danger-color: #ff4444;
    --warning-color: #ff9800;
    --success-color: #4CAF50;
    --dark: #1a1a2e;
    --light: #ffffff;
    --text-dark: #001a4d;
    --text-light: #003d7a;
    --border-color: rgba(0, 102, 204, 0.3);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0052cc 0%, #004a9e 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #001a4d 0%, #021a36 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--accent-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-right: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

.logo-image {
    height: 50px;
    width: 50px;
    margin-right: 12px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    cursor: pointer;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Sections */
.section {
    display: none;
    min-height: calc(100vh - 80px);
    padding: 40px 0;
}

.section.active {
    display: block;
}

.section h2 {
    color: #001a4d;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.section h3 {
    color: #00bfff;
    margin: 1.5rem 0 1rem 0;
}

/* Dashboard */
#dashboard {
    position: relative;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.95), rgba(33, 150, 243, 0.95)), 
                url('../../assets/images/students.jpg') center/cover;
    background-attachment: fixed;
    color: white !important;
}

#dashboard .container {
    position: relative;
    z-index: 2;
}

#dashboard .container > h2 {
    color: white;
}

#dashboard .container > p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

.welcome-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-top: 4px solid var(--accent-color);
    color: var(--dark);
}

.card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: var(--shadow-lg);
    border-top-color: #00d4ff;
    background: rgba(0, 191, 255, 0.08);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #001a4d;
}

.card p {
    color: #333333;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 4px solid var(--secondary-color);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #0052cc;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #333333;
    font-size: 0.95rem;
}

/* Subjects Grid */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.subject-card {
    background: rgb(230, 245, 255);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
    border-left: 5px solid var(--primary-color);
}

.subject-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left-color: var(--secondary-color);
}

.subject-card h3 {
    margin-top: 0;
    color: #0052cc;
    font-size: 1.4rem;
}

.subject-card p {
    color: #333333;
    font-size: 0.95rem;
    margin: 0.5rem 0 1rem 0;
}

.progress-bar {
    display: block;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* Learning Content */
.learning-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.topics-sidebar {
    background: rgb(240, 248, 255);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.topics-sidebar h3 {
    margin-top: 0;
}

.topics-sidebar ul {
    list-style: none;
}

.topics-sidebar li {
    padding: 0.8rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.topics-sidebar li:hover {
    background: var(--light);
    border-left-color: var(--primary-color);
    padding-left: 1rem;
}

.topics-sidebar li.active {
    background: var(--primary-color);
    color: white;
    border-left-color: white;
    padding-left: 1rem;
}

.content-main {
    background: rgb(245, 250, 255);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

#topicContent {
    line-height: 1.8;
}

#topicContent h3 {
    color: var(--primary-color);
    margin-top: 0;
}

#topicContent p {
    margin: 1rem 0;
    color: var(--text-dark);
}

/* Tests Grid */
.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.test-card {
    background: linear-gradient(135deg, var(--secondary-color), #1976D2);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.test-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.test-card h3 {
    margin-top: 0;
    color: white;
    font-size: 1.4rem;
}

.test-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Quiz Styles */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(240, 248, 255);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.quiz-header h2 {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.quiz-timer {
    background: var(--warning-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
}

.quiz-progress {
    background: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
}

.quiz-content {
    background: rgb(235, 248, 255);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

#questionContainer {
    margin-bottom: 2rem;
}

.question {
    margin-bottom: 1.5rem;
}

.question-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.options {
    display: grid;
    gap: 1rem;
}

.option {
    background: var(--light);
    border: 2px solid var(--border-color);
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.option:hover {
    border-color: var(--primary-color);
    background: #f0f8f0;
}

.option input[type="radio"] {
    margin-right: 0.5rem;
}

.option.selected {
    background: #e8f5e9;
    border-color: var(--primary-color);
}

.option.correct {
    background: #c8e6c9;
    border-color: var(--primary-color);
}

.option.incorrect {
    background: #ffcdd2;
    border-color: var(--danger-color);
}

.quiz-controls {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #0066cc 0%, #004a9e 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004a9e 0%, #003366 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #00bfff 0%, #0099cc 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #0099cc 0%, #0077aa 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
}


.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #da190b;
}

.back-btn {
    padding: 0.8rem 1.5rem;
    background: var(--light);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    margin-bottom: 2rem;
}

.back-btn:hover {
    background: var(--border-color);
}

/* Progress Section */
.progress-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.progress-stat {
    background: rgb(230, 248, 255);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
}

.progress-stat h3 {
    margin-top: 0;
    color: #001a4d;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.progress-stat p {
    font-size: 2rem;
    font-weight: bold;
    color: #0052cc;
    margin: 0;
}

#progressBySubject {
    background: rgb(240, 250, 255);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.subject-progress-item {
    margin-bottom: 2rem;
}

.subject-progress-item:last-child {
    margin-bottom: 0;
}

.subject-progress-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.subject-progress-bar {
    background: #e0e0e0;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.subject-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .learning-content {
        grid-template-columns: 1fr;
    }

    .quiz-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .quiz-header h2 {
        width: 100%;
    }

    .subjects-grid,
    .tests-grid,
    .welcome-cards {
        grid-template-columns: 1fr;
    }

    .quiz-controls {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Result Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: rgb(255, 250, 205);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--text-dark);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s;
}

/* Calculator Styles */
#calculator {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    min-height: 100vh;
}
/* ===== UNIFIED CALCULATOR STYLES ===== */

.unified-calculator {
    background: rgba(230, 245, 255, 0.98);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
}

/* Display */
.calc-display {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #00ff00;
    border: 3px solid #00bfff;
    border-radius: 8px;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: right;
    font-family: 'Courier New', monospace;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 191, 255, 0.3);
}

/* Main Grid Layout */
.calc-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

/* Numbers/Operations Section */
.calc-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}

.calc-btn {
    padding: 1.2rem 0.5rem;
    background: #2c3e50;
    color: white;
    border: 2px solid #34495e;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.calc-btn:hover {
    background: #34495e;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border-color: #00bfff;
}

.calc-btn:active {
    transform: translateY(-1px);
}

.calc-btn.operator {
    background: linear-gradient(135deg, #0066cc 0%, #004a9e 100%);
    color: white;
    border-color: #00bfff;
}

.calc-btn.operator:hover {
    background: linear-gradient(135deg, #004a9e 0%, #003366 100%);
}

.calc-btn.equals {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    border-color: #4CAF50;
}

.calc-btn.equals:hover {
    background: linear-gradient(135deg, #388E3C 0%, #2E7D32 100%);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.calc-btn.clear-btn {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border-color: #f44336;
}

.calc-btn.clear-btn:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

/* Scientific Functions Panel */
.scientific-panel {
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.98) 0%, rgba(200, 230, 255, 0.98) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid rgba(0, 191, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.15);
}

.scientific-panel h4 {
    margin-top: 0;
    color: #0066cc;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
}

.sci-group {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 191, 255, 0.2);
}

.sci-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sci-group h5 {
    margin: 0 0 0.8rem 0;
    color: #004a9e;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sci-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    align-items: end;
}

.sci-group h5 {
    grid-column: 1 / -1;
}

.func-btn {
    padding: 0.9rem 0.5rem;
    background: linear-gradient(135deg, #0066cc 0%, #004a9e 100%);
    color: rgb(5, 40, 87);
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.2);
}

.func-btn:hover {
    background: linear-gradient(135deg, #004a9e 0%, #003366 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
    border-color: #00bfff;
}

.func-btn:active {
    transform: translateY(0);
}

/* Control Buttons */
.calc-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.calc-controls .calc-btn {
    padding: 1rem;
}

/* Conversions Section */
.conversions-section {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1) 0%, rgba(0, 102, 204, 0.1) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid rgba(0, 191, 255, 0.3);
}

.conversions-section h4 {
    margin-top: 0;
    color: #0066cc;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    text-transform: uppercase;
}

.conversions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.conversion-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.2rem;
    border-radius: 8px;
    border: 2px solid rgba(0, 191, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.conversion-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: #0052cc;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.conversion-item input {
    width: 45%;
    padding: 0.8rem;
    border: 2px solid rgba(0, 191, 255, 0.3);
    border-radius: 6px;
    font-size: 0.95rem;
    background: rgb(255, 255, 255);
    color: #001a4d;
    transition: all 0.3s;
}

.conversion-item input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 8px rgba(0, 102, 204, 0.3);
}


.conversion-item span {
    display: inline-block;
    margin: 0 0.3rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* History */
.calculator-history {
    background: rgba(240, 250, 255, 0.97);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
    border: 2px solid rgba(0, 191, 255, 0.2);
}

.calculator-history h3 {
    color: #0066cc;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.history-list {
    list-style: none;
    padding: 0;
    max-height: 350px;
    overflow-y: auto;
    border: 2px solid rgba(0, 191, 255, 0.3);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 191, 255, 0.05) 100%);
}

.history-list li {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
    font-family: 'Courier New', monospace;
    color: #001a4d;
    background: rgb(250, 255, 255);
    transition: all 0.3s;
    cursor: pointer;
}

.history-list li:hover {
    background: rgba(0, 191, 255, 0.1);
    transform: translateX(5px);
    border-left: 3px solid #0066cc;
    padding-left: calc(1rem - 3px);
}

.history-list li:last-child {
    border-bottom: none;
}

.history-list li:empty::before {
    content: "No calculations yet";
    color: #999;
    font-style: italic;
}

/* ============================================================
   Biology Content Viewer Styles
   ============================================================ */
.biology-interface {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.bio-sidebar {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.bio-sidebar h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.bio-sidebar ul {
    list-style: none;
}

.bio-sidebar li {
    padding: 0.6rem;
    margin: 0.3rem 0;
    background: #f5f5f5;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.bio-sidebar li:hover {
    background: #e3f2fd;
    border-left-color: var(--accent-color);
    transform: translateX(5px);
}

.bio-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#bioContentDisplay {
    line-height: 1.8;
}

#bioContentDisplay h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

#bioContentDisplay h3 {
    color: var(--text-light);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

#bioContentDisplay h4 {
    color: var(--secondary-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

#bioContentDisplay p {
    margin-bottom: 1rem;
    color: #333;
}

#bioContentDisplay ul, #bioContentDisplay ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

#bioContentDisplay li {
    margin-bottom: 0.5rem;
    color: #333;
}

.bio-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-left: 4px solid var(--accent-color);
    border-radius: 5px;
}

.ai-panel {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
}

.ai-panel h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendation-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.recommendation-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.recommendation-item ol, .recommendation-item ul {
    margin-left: 1.5rem;
}

.recommendation-item li {
    margin-bottom: 0.5rem;
}

.quiz-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.quiz-item:hover {
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.quiz-item p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.answer {
    background: #e8f5e9;
    border-left: 4px solid var(--success-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .calc-main-grid {
        grid-template-columns: 1fr;
    }

    .calc-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .biology-interface {
        grid-template-columns: 1fr;
    }
    
    .bio-sidebar {
        position: static;
    }
    }

    .calc-btn.clear-btn {
        grid-column: 1/3;
    }

    .conversion-item input {
        width: 42%;
    }

