/* /lab/style.css */

/* === Global Resets and Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-body);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: var(--color-primary-accent); }
a:hover { text-decoration: underline; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* === CSS Variables === */
:root {
    --font-display: 'Share Tech Mono', monospace;
    --font-body: 'Inter', sans-serif;
    --color-primary-accent: #ed6a32;
    --color-primary-accent-darker: #d65c29;
    --color-primary-accent-lighter: #f28657;
    --color-primary-accent-translucent: rgba(237, 106, 50, 0.08);
    --border-radius-small: 6px;
    --border-radius-medium: 10px;
    --transition-speed: 0.25s;
    --transition-speed-fast: 0.15s;

    /* Light Theme */
    --color-bg-light: #ffffff;
    --color-surface-light: #f9fafb;
    --color-text-light: #1f2937;
    --color-text-muted-light: #6b7280;
    --color-border-light: #e5e7eb;
    --color-input-bg-light: #f9fafb;
    --color-input-border-light: #d1d5db;

    /* Dark Theme */
    --color-bg-dark: #111827;
    --color-surface-dark: #1f2937;
    --color-text-dark: #f3f4f6;
    --color-text-muted-dark: #9ca3af;
    --color-border-dark: #374151;
    --color-input-bg-dark: #374151;
    --color-input-border-dark: #4b5563;
}

/* === Theme Application === */
body.light-theme {
    background-color: var(--color-bg-light);
    color: var(--color-text-light);
}
body.dark-theme {
    background-color: var(--color-bg-dark);
    color: var(--color-text-dark);
}

/* === Theme Toggle Button === */
#theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 3px;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    z-index: 1100;
}
.toggle-knob {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), background-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
body.light-theme #theme-toggle {
    background-color: #e0e0e0;
    border: 1px solid #c5c5c5;
}
body.light-theme .toggle-knob {
    background: radial-gradient(circle at 50% 40%, #fffadd, #f9d71c);
    transform: translateX(2px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.15), 0 0 8px rgba(249, 215, 28, 0.6);
}
body.dark-theme #theme-toggle {
    background-color: #282828;
    border: 1px solid #1a1a1a;
}
body.dark-theme .toggle-knob {
    background: radial-gradient(circle at 50% 40%, #cccccc, #999999);
    transform: translateX(29px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.05);
}


/* === General Components === */
.card {
    border-radius: var(--border-radius-medium);
    padding: 20px;
    transition: background-color var(--transition-speed) ease, border var(--transition-speed) ease;
}
body.light-theme .card {
    background-color: var(--color-surface-light);
    border: 1px solid var(--color-border-light);
}
body.dark-theme .card {
    background-color: var(--color-surface-dark);
    border: 1px solid var(--color-border-dark);
}

.text-muted { font-size: 0.9em; }
body.light-theme .text-muted { color: var(--color-text-muted-light); }
body.dark-theme .text-muted { color: var(--color-text-muted-dark); }

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform 0.1s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn:disabled { cursor: not-allowed; opacity: 0.6; }
.btn-primary { background-color: var(--color-primary-accent); color: white; }
.btn-primary:hover:not(:disabled) { background-color: var(--color-primary-accent-darker); transform: translateY(-1px); }
.btn-secondary { background-color: transparent; border: 1px solid; color: var(--color-primary-accent); }
body.light-theme .btn-secondary { border-color: var(--color-input-border-light); }
body.dark-theme .btn-secondary { border-color: var(--color-input-border-dark); }
.btn-secondary:hover:not(:disabled) { background-color: var(--color-primary-accent-translucent); transform: translateY(-1px); }
.btn-small { padding: 6px 12px; font-size: 0.8rem; }
.btn-icon { margin-right: 8px; }

.form-group-minimal { margin-bottom: 15px; }
.form-group-minimal label { display: block; font-size: 0.9rem; margin-bottom: 5px; font-weight: 500; }
.form-group-minimal input[type="text"] {
    width: 100%;
    padding: 10px;
    border-radius: var(--border-radius-small);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-speed) ease, background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}
body.light-theme .form-group-minimal input {
    background-color: var(--color-input-bg-light);
    border: 1px solid var(--color-input-border-light);
    color: var(--color-text-light);
}
body.dark-theme .form-group-minimal input {
    background-color: var(--color-input-bg-dark);
    border: 1px solid var(--color-input-border-dark);
    color: var(--color-text-dark);
}
.form-group-minimal input:focus {
    outline: none;
    border-color: var(--color-primary-accent);
    box-shadow: 0 0 0 3px rgba(237, 106, 50, 0.15);
}

.tabs { display: flex; border-bottom: 1px solid; margin-bottom: 20px; }
body.light-theme .tabs { border-bottom-color: var(--color-border-light); }
body.dark-theme .tabs { border-bottom-color: var(--color-border-dark); }
.tab-link {
    padding: 10px 15px; background: none; border: none; cursor: pointer;
    font-family: var(--font-body); font-weight: 500; font-size: 1rem;
    position: relative;
    transition: color var(--transition-speed) ease;
}
body.light-theme .tab-link { color: var(--color-text-muted-light); }
body.dark-theme .tab-link { color: var(--color-text-muted-dark); }
.tab-link.active { color: var(--color-primary-accent); }
.tab-link.active::after {
    content: ''; position: absolute;
    bottom: -1px; left: 0; right: 0; height: 2px;
    background-color: var(--color-primary-accent);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* === Lab Environment Layout === */
.lab-environment-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}
.lab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    flex-shrink: 0;
    transition: background-color var(--transition-speed) ease, border-bottom var(--transition-speed) ease;
}
body.light-theme .lab-header {
    background-color: var(--color-surface-light);
    border-bottom: 1px solid var(--color-border-light);
}
body.dark-theme .lab-header {
    background-color: var(--color-surface-dark);
    border-bottom: 1px solid var(--color-border-dark);
}
.lab-header-left { display: flex; align-items: center; gap: 15px; }
.back-to-dashboard-link {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: var(--border-radius-small);
    transition: background-color var(--transition-speed-fast) ease;
}
.back-to-dashboard-link svg { stroke: currentColor; width: 22px; height: 22px; }
.back-to-dashboard-link span { margin-left: 5px; font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; }
body.light-theme .back-to-dashboard-link { color: var(--color-text-muted-light); }
body.dark-theme .back-to-dashboard-link { color: var(--color-text-muted-dark); }
.back-to-dashboard-link:hover {
    color: var(--color-primary-accent);
    background-color: var(--color-primary-accent-translucent);
}
#lab-title-header {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lab-header-right { display: flex; align-items: center; }
.lab-main-content {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    gap: 20px;
    padding: 20px;
    flex-grow: 1;
    overflow: hidden;
    height: calc(100vh - 60px);
}
.lab-panel {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
}
.lab-panel h2, .lab-panel h3, .lab-panel h4 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 15px;
}
.lab-panel h2 { font-size: 1.2rem; }
.lab-panel h3 { font-size: 1.1rem; }
.lab-panel h4 { font-size: 1rem; margin-bottom: 10px; }

/* Left & Right Panels */
.lab-panel-info .lab-meta p { font-family: var(--font-body); font-size: 0.9rem; margin-bottom: 8px; }
.lab-meta .lab-difficulty {
    padding: 3px 8px; font-size: 0.8rem; text-transform: uppercase;
    border-radius: var(--border-radius-small); color: white; display: inline-block;
}
.lab-difficulty.easy { background-color: #10b981; }
.lab-difficulty.medium { background-color: #f59e0b; }
.lab-difficulty.hard { background-color: #ef4444; }
.lab-objectives { margin-bottom: 20px; }
.lab-objectives ul { list-style: disc; padding-left: 20px; font-family: var(--font-body); font-size: 0.9rem; }
.lab-objectives ul li { margin-bottom: 5px; }
.environment-controls .control-buttons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 15px; }
.status-indicator {
    font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 10px;
    padding: 8px; border-radius: var(--border-radius-small); text-align: center;
}
body.light-theme .status-indicator { background-color: #e9ecef; }
body.dark-theme .status-indicator { background-color: #374151; }
#lab-status.status-stopped { color: #ef4444; font-weight: 600; }
#lab-status.status-starting, #lab-status.status-stopping { color: #f59e0b; font-weight: 600; }
#lab-status.status-running { color: #10b981; font-weight: 600; }
.machine-ip-info {
    font-family: var(--font-body); font-size: 0.9rem; padding: 10px;
    border-radius: var(--border-radius-small); margin-top: 10px; word-break: break-all;
}
body.light-theme .machine-ip-info { background-color: var(--color-input-bg-light); border: 1px solid var(--color-input-border-light); }
body.dark-theme .machine-ip-info { background-color: var(--color-input-bg-dark); border: 1px solid var(--color-input-border-dark); }
#machine-ip { font-weight: 600; color: var(--color-primary-accent); }
.submission-status-message, .notes-status-message {
    margin-top: 10px; font-size: 0.9rem; font-weight: 500; font-family: var(--font-body);
}
.submission-status-message.success, .notes-status-message.success { color: #10b981; }
.submission-status-message.error, .notes-status-message.error { color: #ef4444; }
.hints-section { margin-top: 25px; margin-bottom: 25px; }
.hint-item { margin-bottom: 10px; border-radius: var(--border-radius-small); font-family: var(--font-body); }
body.light-theme .hint-item { border: 1px solid var(--color-border-light); }
body.dark-theme .hint-item { border: 1px solid var(--color-border-dark); }
.hint-item summary { padding: 10px 12px; cursor: pointer; font-weight: 500; }
.hint-item summary:hover { background-color: var(--color-primary-accent-translucent); }
.hint-item p { padding: 10px 12px; font-size: 0.9rem; border-top: 1px solid; }
body.light-theme .hint-item p { border-top-color: var(--color-border-light); background-color: #fdfdff; }
body.dark-theme .hint-item p { border-top-color: var(--color-border-dark); background-color: #2c3136; }
.resources-section ul { list-style: none; padding-left: 0; }
.resources-section ul li { margin-bottom: 8px; }

/* Middle Panel */
.lab-panel-instructions { 
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}
.lab-panel-instructions .tabs.lab-tabs,
.lab-panel-instructions .chapter-header {
    flex-shrink: 0; /* Prevent tabs and header from shrinking */
}
.lab-panel-instructions .tab-content {
    flex-grow: 1; /* Allow content to fill space */
    overflow-y: auto; /* Make content scrollable */
    padding-right: 15px; /* Space for scrollbar */
}
.lab-panel-instructions .chapter-navigation {
    flex-shrink: 0; /* Prevent nav from shrinking */
    padding: 15px 0;
    border-top: 1px solid;
    margin-top: auto; /* Push to bottom */
    display: flex;
    justify-content: space-between;
}
body.light-theme .lab-panel-instructions .chapter-navigation { border-top-color: var(--color-border-light); }
body.dark-theme .lab-panel-instructions .chapter-navigation { border-top-color: var(--color-border-dark); }

.chapter-header {
    padding: 15px 0 10px 0;
    border-bottom: 1px solid;
    margin-bottom: 15px;
}
body.light-theme .chapter-header { border-bottom-color: var(--color-border-light); }
body.dark-theme .chapter-header { border-bottom-color: var(--color-border-dark); }
#chapter-title-display {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
}

/* --- NEW: Improved Instruction Formatting --- */
.lab-panel-instructions .tab-content {
    font-family: var(--font-body);
    font-size: 1rem; /* Slightly larger base font for instructions */
    line-height: 1.7;
}
.lab-panel-instructions .tab-content h3,
.lab-panel-instructions .tab-content h4 {
    font-family: var(--font-display);
    font-weight: normal;
    margin-top: 25px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid;
}
body.light-theme .lab-panel-instructions .tab-content h3, body.light-theme .lab-panel-instructions .tab-content h4 { border-bottom-color: var(--color-border-light); }
body.dark-theme .lab-panel-instructions .tab-content h3, body.dark-theme .lab-panel-instructions .tab-content h4 { border-bottom-color: var(--color-border-dark); }

.lab-panel-instructions .tab-content h3 { font-size: 1.4rem; }
.lab-panel-instructions .tab-content h4 { font-size: 1.2rem; }
.lab-panel-instructions .tab-content p { margin-bottom: 1rem; }
.lab-panel-instructions .tab-content ol,
.lab-panel-instructions .tab-content ul {
    margin-bottom: 1rem;
    padding-left: 25px;
}
.lab-panel-instructions .tab-content ol { list-style-type: decimal; }
.lab-panel-instructions .tab-content ul { list-style-type: disc; }
.lab-panel-instructions .tab-content li { margin-bottom: 0.5rem; }
.lab-panel-instructions .tab-content pre {
    background-color: var(--color-bg-dark);
    color: var(--color-text-dark);
    padding: 15px;
    border-radius: var(--border-radius-small);
    white-space: pre-wrap;
    word-break: break-all;
    margin: 1rem 0;
    font-family: var(--font-display);
    font-size: 0.9rem;
}
body.light-theme .lab-panel-instructions .tab-content pre { background-color: #1f2937; }
body.dark-theme .lab-panel-instructions .tab-content pre { background-color: #0d1117; border: 1px solid var(--color-border-dark); }
.lab-panel-instructions .tab-content code {
    font-family: var(--font-display);
    padding: 3px 6px;
    border-radius: var(--border-radius-small);
    font-size: 0.9em;
}
body.light-theme .lab-panel-instructions .tab-content code { background-color: #e9ecef; color: #c82829; }
body.dark-theme .lab-panel-instructions .tab-content code { background-color: #374151; color: #ff79c6; }
/* --- END OF NEW FORMATTING --- */

#lab-user-notes {
    width: 100%; min-height: 200px; padding: 10px; font-family: var(--font-body); font-size: 0.9rem;
    border-radius: var(--border-radius-small); resize: vertical; margin-bottom: 10px;
}
body.light-theme #lab-user-notes { background-color: var(--color-input-bg-light); border: 1px solid var(--color-input-border-light); color: var(--color-text-light); }
body.dark-theme #lab-user-notes { background-color: var(--color-input-bg-dark); border: 1px solid var(--color-input-border-dark); color: var(--color-text-dark); }
#lab-user-notes:focus { outline: none; border-color: var(--color-primary-accent); box-shadow: 0 0 0 2px rgba(237, 106, 50, 0.15); }

/* === Custom Popup === */
.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6); /* Darker, classier backdrop */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; /* Changed from none to flex for easier animation */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden; /* Control visibility for accessibility */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.custom-popup {
    padding: 30px 35px;
    border-radius: 12px; /* --border-radius-xlarge */
    width: 90%;
    max-width: 450px;
    text-align: center;
    transform: scale(0.95) translateY(-10px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease-out;
    position: relative;
}

.custom-popup-overlay.visible .custom-popup {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Theming for the popup box */
body.light-theme .custom-popup {
    background-color: #ffffff;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.15);
}
body.dark-theme .custom-popup {
    background-color: #1f2937; /* Dark surface color from dashboard */
    border: 1px solid #374151; /* Dark border from dashboard */
}

.custom-popup h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}
body.light-theme .custom-popup h3 { color: #1f2937; }
body.dark-theme .custom-popup h3 { color: #f3f4f6; }


.custom-popup p {
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
}
body.light-theme .custom-popup p { color: #6b7280; }
body.dark-theme .custom-popup p { color: #9ca3af; }

.custom-popup-actions {
    display: flex;
    justify-content: center;
}

/* Status-specific title colors */
.custom-popup.popup-error #custom-popup-title { color: #ef4444; }
.custom-popup.popup-success #custom-popup-title { color: #10b981; }
.custom-popup.popup-warning #custom-popup-title { color: #f59e0b; }
.custom-popup.popup-info #custom-popup-title { color: var(--color-primary-accent); }


/* In /lab/style.css */

/* === Responsive === */

@media (max-width: 1200px) {
    .lab-main-content {
        grid-template-columns: 280px 1fr 280px;
    }
}

@media (max-width: 992px) {
    .lab-main-content {
        /* Switch to a single column layout */
        grid-template-columns: 1fr;
        /* Allow the entire page area to scroll instead of just panels */
        height: auto;
        overflow-y: auto;
        /* Add some padding at the very bottom for better spacing on scroll */
        padding-bottom: 50px; 
    }

    .lab-panel,
    .lab-panel-instructions {
        /* Reset panel heights to allow them to grow with their content */
        height: auto;
        max-height: none; 
        /* Disable internal scrolling on panels for mobile view */
        overflow-y: visible; 
    }
}

@media (max-width: 768px) {
    .lab-header { 
        height: 56px; 
        padding: 0 15px; 
    }
    .lab-main-content { 
        padding: 15px; 
        gap: 15px; 
    }
    #lab-title-header { 
        font-size: 1.1rem; 
    }
    .back-to-dashboard-link span { 
        display: none; /* Show icon only */
    }
    .lab-panel { 
        padding: 15px; 
    }
}

/* === NEW: Custom Scrollbar Styles === */

/* Works for Chrome, Edge, Safari */
.lab-panel-instructions .tab-content::-webkit-scrollbar {
  width: 12px;
}

.lab-panel-instructions .tab-content::-webkit-scrollbar-track {
  background: transparent; /* Make track invisible */
}

.lab-panel-instructions .tab-content::-webkit-scrollbar-thumb {
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

/* Light Theme Scrollbar */
body.light-theme .lab-panel-instructions .tab-content::-webkit-scrollbar-thumb {
  background-color: var(--color-border-light);
}
body.light-theme .lab-panel-instructions .tab-content::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-text-muted-light);
}

/* Dark Theme Scrollbar */
body.dark-theme .lab-panel-instructions .tab-content::-webkit-scrollbar-thumb {
  background-color: var(--color-border-dark);
}
body.dark-theme .lab-panel-instructions .tab-content::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-text-muted-dark);
}

/* --- NEW: Chapter Transition Animation --- */
#instructions-tab {
  /* Set a base transition for opacity and transform */
  transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
}

#instructions-tab.is-exiting {
  /* This class will be added to fade the content out */
  opacity: 0;
  transform: translateY(15px);
}

/* Add this new rule for the question text */
/* Replace the previous .submission-question styles with this new "callout" style */
/* Final "No Boxes" style for the question text */
/* --- Playground for Question Styling --- */

.submission-question {
    /* --- SPACING --- */
    /* This controls the space below the question, before the input box. */
    margin-bottom: 15px;
    /* This controls the space inside the element, if you have a border/background. */
    padding: 0;


    /* --- FONT & TEXT --- */
    font-family: var(--font-body);
    /* You can change the size of the text here. e.g., 1rem, 1.1rem */
    font-size: 0.95rem;
    /* This controls the spacing between lines of text. */
    line-height: 1.6;
    /* To make text bold, use a number like 600 or the word 'bold'. */
    font-weight: 400; /* 400 is normal, 600 is semi-bold */
    /* To make text italic, uncomment the next line. */
    /* font-style: italic; */


    /* --- COLOR --- */
    /* 'inherit' will make it match the normal text color of the theme. */
    color: inherit;
    /* You could also use the theme's accent color like this: */
    /* color: var(--color-primary-accent); */


    /* --- BORDERS & BACKGROUND --- */
    /* This removes any background color. */
    background-color: transparent;
    /* This removes any border. To add one, you could try uncommenting one of these: */
    /* border-bottom: 1px solid var(--color-border-light); */
    /* border-left: 3px solid var(--color-primary-accent); */
    border: none;
}

/* This part styles the `code` snippets inside the question. */
.submission-question code {
    font-style: normal;
    padding: 3px 6px;
    border-radius: var(--border-radius-small);
    font-size: 0.9em;
}
body.light-theme .submission-question code {
    background-color: rgba(0,0,0,0.07);
    color: #c82829;
}
body.dark-theme .submission-question code {
    background-color: rgba(255,255,255,0.1);
    color: #ff79c6;
}

/* --- NEW: Enhanced Resources Tab UI --- */
#resources-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.resource-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: var(--border-radius-medium);
    transition: background-color var(--transition-speed-fast) ease;
}
body.light-theme .resource-card {
    background-color: #f9fafb;
    border: 1px solid var(--color-border-light);
}
body.dark-theme .resource-card {
    background-color: #2c3e50;
    border: 1px solid var(--color-border-dark);
}
.resource-card:hover {
    background-color: var(--color-primary-accent-translucent);
}

.resource-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.resource-details {
    flex-grow: 1;
}

.resource-details h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 500;
}

.resource-card .btn {
    margin-left: auto;
    flex-shrink: 0;
}

/* === NEW STYLES for Lab Timer === */
.timer-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
body.light-theme .timer-section {
    border-top-color: var(--color-border-light);
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.timer-icon {
    font-size: 1.5rem;
}

#timer-countdown {
    font-weight: 600;
    color: var(--color-primary-accent);
    letter-spacing: 1px;
}

#timer-countdown.ending {
    color: #ef4444; /* Red when less than 10 minutes left */
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#extend-time-btn {
    /* Additional styling if needed */
}
