/**
 * Lesson Plan Structure Styles
 * Styles for KNOW/REMEMBER bar, starter icons, steps, etc.
 */

/* Font Definitions */
@font-face {
    font-family: "Rockwell";
    src: url("/fonts/Rockwell.ttc") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "DINCondensedBold";
    src: url("/fonts/DINCondensedBold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

/* KNOW/REMEMBER - now in vocab box, so hide the top bar */
.know-remember-bar {
    display: none; /* Moved to vocab box */
}

/* KNOW/REMEMBER styling in vocab box */
.vocab-know-remember {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.vocab-know-remember .know-item,
.vocab-know-remember .remember-item {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-height: none;
    height: auto;
}

.vocab-know-remember .know-item strong,
.vocab-know-remember .remember-item strong {
    color: var(--primary-color);
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

/* Remove padding-top since we removed the top bar */
.slide-content {
    padding-top: 0 !important;
}

/* Ensure I/We/You and Prior Learning slides have proper top spacing */
.i-do-slide,
.we-do-slide,
.you-do-slide,
.formulae-slide,
.prior-learning-slide {
    padding-top: 30px !important; /* Consistent top padding */
    margin-top: 0 !important; /* No top margin */
}

/* Starter Slide - R&R icon in top left */
.starter-slide {
    position: relative;
    background: transparent !important; /* Transparent background like projector */
    --font-multiplier: 2.0; /* Increased from 1.5 for even larger text */
    font-size: calc(1rem * var(--font-multiplier));
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center to flex-start for top alignment */
    align-items: center;
    min-height: 100%;
}

/* CRAFT starter specifically - ensure top alignment and proper sizing */
.starter-slide #craftContainer {
    align-self: stretch;
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 100%;
}

/* R&R retrieval starter - same as CRAFT: take remaining space so grid lays out correctly */
.starter-slide #ranrContainer {
    align-self: stretch;
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 100%;
}

/* I/We/You and Prior Learning slides - override to start at top */
.i-do-slide,
.we-do-slide,
.you-do-slide,
.formulae-slide,
.prior-learning-slide {
    justify-content: flex-start !important; /* Start at top */
    align-items: flex-start !important; /* Align to left */
    min-height: auto !important; /* Don't force full height */
    padding-top: 30px !important; /* Ensure consistent top padding */
    margin-top: 0 !important; /* No top margin */
}

/* Icons are now in static header - removed from slide content */

/* Starter Slide - Transparent background for iframe container */
.starter-slide .resource-embed-container {
    background: transparent !important;
    min-height: 90vh;
    flex: 1;
}

.starter-slide .resource-iframe {
    background: transparent !important;
}

/* I Do, We Do, You Do Slides */
.i-do-slide,
.we-do-slide,
.you-do-slide,
.formulae-slide {
    display: flex !important;
    flex-direction: column !important;
    color: white;
    text-align: left;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding: 30px 40px 40px 40px !important; /* Keep consistent padding */
    padding-top: 30px !important; /* Keep space at top */
    margin-top: 0 !important;
    overflow-y: visible !important; /* Ensure diagrams aren't clipped */
    overflow-x: visible !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important; /* Don't force full height */
}

.question-display-container {
    width: 90%;
    max-width: 90%;
    margin: 0 !important; /* Remove all margins */
    margin-top: 0 !important; /* No top margin */
    margin-bottom: 0 !important; /* No bottom margin */
    display: flex;
    flex-direction: column;
    align-items: flex-start !important; /* Align to left for I/We/You slides */
    justify-content: flex-start !important; /* Start at top, not center */
    flex-shrink: 0 !important; /* Don't shrink */
}

/* For I/We/You slides, align to top */
.i-do-slide .question-display-container,
.we-do-slide .question-display-container,
.you-do-slide .question-display-container,
.formulae-slide .formulae-display-container {
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 0 !important; /* No top margin - align to top */
    margin-bottom: 0 !important; /* No bottom margin */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-right: 100px !important; /* Add right padding to make room for icon */
    width: 100% !important; /* Full width */
    max-width: 100% !important;
    position: relative !important; /* Allow absolute positioning of icon */
    order: 1 !important; /* Ensure question appears first */
    flex-shrink: 0 !important; /* Don't shrink */
    display: flex !important;
    flex-direction: column !important;
}

/* Prior Learning (Think, Pair, Share) slide - centre-aligned, three cards in two rows */
.prior-learning-slide {
    align-items: center !important;
    text-align: center !important;
}
.prior-learning-slide .prior-learning-title {
    text-align: center;
    font-family: "DINCondensedBold", "Arial Black", "Arial", sans-serif;
    font-size: 3.2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    margin-top: 0;
}
.prior-learning-slide .prior-learning-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    text-align: center;
}
/* Three cards in two rows: row 1 = two cards, row 2 = one card, all centre-aligned (wider so question 2 fits at full font size) */
.prior-learning-slide .prior-learning-questions {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 540px));
    gap: 28px;
    justify-content: center;
    justify-items: stretch;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1150px;
}
.prior-learning-slide .prior-learning-question:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 540px;
}
.prior-learning-slide .prior-learning-question {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 2.4rem;
    line-height: 1.45;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left; /* Keep question text left-aligned inside card */
}
.prior-learning-slide .prior-learning-number {
    flex-shrink: 0;
    font-weight: bold;
    font-size: 2.4rem;
    color: var(--primary-color);
}
.prior-learning-slide .prior-learning-text {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink so text fits within card */
    color: #ffffff;
    font-size: 2.4rem;
    /* Prefer breaking at natural word boundaries; equations use non-breaking spaces around operators */
    overflow-wrap: break-word;
}

/* Dark mode: ensure Think Pair Share text stays light and readable */
.dark-mode .prior-learning-slide .prior-learning-title {
    color: var(--primary-color);
}
.dark-mode .prior-learning-slide .prior-learning-subtitle,
.dark-mode .prior-learning-slide .prior-learning-question,
.dark-mode .prior-learning-slide .prior-learning-text {
    color: #ffffff !important;
}
.dark-mode .prior-learning-slide .prior-learning-number {
    color: var(--primary-color);
}

/* Light mode: dark text on light background for readability */
.light-mode .prior-learning-slide .prior-learning-subtitle,
.light-mode .prior-learning-slide .prior-learning-question,
.light-mode .prior-learning-slide .prior-learning-text {
    color: var(--text-color) !important;
}
.light-mode .prior-learning-slide .prior-learning-title {
    color: var(--primary-color);
}
.light-mode .prior-learning-slide .prior-learning-number {
    color: var(--primary-color);
}
.light-mode .prior-learning-slide .prior-learning-question {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Formulae slide specific styles */
.formulae-slide .formulae-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 25px;
}

/* Two-column layout */
.formulae-slide .formulae-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    width: 100%;
    align-items: start;
    padding: 0 20px;
}

.formulae-slide .formulae-column {
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.formulae-slide .formulae-column-title {
    font-family: "DINCondensedBold", "Arial Black", "Arial", sans-serif;
    font-size: 1.9rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: bold;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

.formulae-slide .formulae-column-content {
    font-size: 1.4rem;
    line-height: 1.9;
    color: white;
    width: 100%;
}

.formulae-slide .formulae-empty {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    font-size: 1.2rem;
    padding: 20px 0;
}

/* Responsive: stack columns on smaller screens */
@media (max-width: 1200px) {
    .formulae-slide .formulae-two-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Section titles (headings) */
.formulae-slide .formulae-section-title {
    font-family: "DINCondensedBold", "Arial Black", "Arial", sans-serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: bold;
}

.formulae-slide .formulae-section-title:first-child {
    margin-top: 0;
}

/* Formulae (mathematical expressions) */
.formulae-slide .formulae-formula {
    font-size: 1.6rem;
    color: white;
    margin: 12px 0;
    padding: 8px 0;
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
    line-height: 1.8;
}

/* Regular text */
.formulae-slide .formulae-text {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 10px 0;
    line-height: 1.7;
}

/* Subheadings (like "Step-by-Step Procedure") */
.formulae-slide .formulae-subheading {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 15px 0 10px 0;
    font-weight: 600;
    font-style: italic;
}

/* Lists */
.formulae-slide .formulae-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 20px 0;
}

.formulae-slide .formulae-item {
    font-size: 1.5rem;
    color: white;
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.8;
}

.formulae-slide .formulae-item::before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.8rem;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* Dark mode adjustments */
.dark-mode .formulae-slide .formulae-content {
    color: white;
}

.dark-mode .formulae-slide .formulae-section-title {
    color: var(--primary-color);
}

.dark-mode .formulae-slide .formulae-formula,
.dark-mode .formulae-slide .formulae-text,
.dark-mode .formulae-slide .formulae-item {
    color: white;
}

/* Light mode adjustments */
.light-mode .formulae-slide .formulae-content {
    color: var(--text-color);
}

.light-mode .formulae-slide .formulae-section-title {
    color: var(--primary-color);
}

.light-mode .formulae-slide .formulae-formula,
.light-mode .formulae-slide .formulae-text,
.light-mode .formulae-slide .formulae-item {
    color: var(--text-color);
}

/* Position question at the very top for I/We/You slides */
.i-do-slide .question-container,
.we-do-slide .question-container,
.formulae-slide .formulae-header,
.you-do-slide .question-container {
    margin-top: 0;
    margin-bottom: 20px;
}

/* Whiteboard embed container for I/We/You slides - hidden by default, shown via nav bar button */
.i-do-slide .whiteboard-embed-container,
.we-do-slide .whiteboard-embed-container,
.you-do-slide .whiteboard-embed-container {
    width: 95vw !important;
    height: 95vh !important;
    min-height: 95vh !important;
    max-height: 95vh !important;
    margin: 2.5vh auto !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    order: 2 !important; /* After question (order: 1) */
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    box-sizing: border-box !important;
}

/* Hidden by default until user clicks whiteboard button */
.i-do-slide .whiteboard-embed-container.whiteboard-hidden,
.we-do-slide .whiteboard-embed-container.whiteboard-hidden,
.you-do-slide .whiteboard-embed-container.whiteboard-hidden {
    display: none !important;
}

.i-do-slide .whiteboard-embed-container:not(.whiteboard-hidden),
.we-do-slide .whiteboard-embed-container:not(.whiteboard-hidden),
.you-do-slide .whiteboard-embed-container:not(.whiteboard-hidden) {
    display: block !important;
}

.i-do-slide .whiteboard-iframe,
.we-do-slide .whiteboard-iframe,
.you-do-slide .whiteboard-iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    display: block !important;
}

/* Inline question layout for I/We/You slides */
.question-container-inline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0 0 0 0 !important; /* No padding */
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important; /* No bottom margin - diagram directly below */
    text-align: left;
    width: 100%;
    max-width: calc(100% - 100px) !important; /* Leave room for icon on the right */
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
}

.slide-label {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
    flex-shrink: 0;
}

.question-text-inline {
    font-size: 3rem;
    line-height: 1.6;
    color: var(--text-color);
    text-align: left;
    flex: 1;
    padding-right: 20px !important; /* Add space before icon */
    max-width: calc(100% - 120px) !important; /* Ensure text doesn't overlap icon */
}

/* Diagram display container - positioned directly below question */
.diagram-display-container {
    width: 80% !important; /* 80% of remaining space */
    max-width: 80% !important;
    margin: 10px 0 0 0 !important; /* Minimal top margin - directly below question, no auto centering */
    display: block !important; /* Block display, not flex */
    padding: 0 !important; /* No padding */
    box-sizing: border-box;
    position: relative !important;
    z-index: 15 !important;
    flex-shrink: 0 !important;
    order: 3 !important; /* After question (order: 1) and whiteboard (order: 2) */
    min-height: 200px !important; /* Reserve space so 2d-shapes etc. align to same height */
    overflow: visible !important; /* Allow diagram to display */
    background: transparent !important; /* No background */
}

.diagram-display-container[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Specific styling for I/We/You/Formulae slides */
.i-do-slide .diagram-display-container,
.we-do-slide .diagram-display-container,
.you-do-slide .diagram-display-container,
.formulae-slide .diagram-display-container {
    width: 80% !important;
    max-width: 80% !important;
    margin: 10px 0 0 0 !important;
}

/* Diagram image styling - transparent, no card background. Fixed height so 2D shape SVGs scale to same size as other images. */
.slide-diagram {
    width: auto !important; /* Scale with aspect ratio */
    max-width: 100% !important;
    height: 200px !important; /* Same height for all (e.g. 2d-shapes, flags, road signs) */
    max-height: 200px !important;
    object-fit: contain !important; /* No distortion or cropping */
    object-position: top left !important; /* Align to top-left */
    display: block !important;
    margin: 0 !important; /* No auto centering */
    background: transparent !important; /* No white card */
    padding: 0 !important; /* No padding */
    border-radius: 0 !important; /* No rounded corners */
    box-shadow: none !important; /* No shadow/card effect */
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 16 !important;
}

/* Ensure diagrams are visible on I/We/You slides */
.i-do-slide .diagram-display-container,
.we-do-slide .diagram-display-container,
.you-do-slide .diagram-display-container,
.formulae-slide .diagram-display-container {
    margin-top: 10px !important; /* Minimal margin - directly below question */
    margin-bottom: 0 !important; /* No bottom margin */
    width: 80% !important; /* 80% of remaining space */
    max-width: 80% !important;
}

.i-do-slide .slide-diagram,
.we-do-slide .slide-diagram,
.you-do-slide .slide-diagram,
.formulae-slide .slide-diagram {
    width: auto !important;
    max-width: 100% !important;
    height: 200px !important; /* Same height for all diagrams (2d-shapes scale up without distortion) */
    max-height: 200px !important;
    object-fit: contain !important; /* No distortion or cropping */
    object-position: top left !important; /* Align to top-left */
    margin: 0 !important; /* No margins */
}

/* Dark mode: invert colors for SVG diagrams to make them light/white */
/* invert(1) converts dark colors to light, hue-rotate(180deg) restores hue relationships */
.dark-mode .slide-diagram {
    filter: invert(1) hue-rotate(180deg) brightness(1.1) contrast(1.1);
}

/* Dark mode: ensure question text remains visible (white on dark background) */
.dark-mode .question-text-inline,
.dark-mode .i-do-slide .question-text-inline,
.dark-mode .we-do-slide .question-text-inline,
.dark-mode .you-do-slide .question-text-inline {
    color: #ffffff !important;
}

/* Ensure question text uses correct color in light mode */
.light-mode .question-text-inline,
.light-mode .i-do-slide .question-text-inline,
.light-mode .we-do-slide .question-text-inline,
.light-mode .you-do-slide .question-text-inline {
    color: var(--text-color) !important;
}

.dark-mode .slide-label {
    color: var(--primary-color);
}

/* Position White Rose logo in top right for I/We/You slides */
.i-do-slide .slide-title-icon-right,
.we-do-slide .slide-title-icon-right,
.you-do-slide .slide-title-icon-right {
    position: fixed; /* Fixed to viewport for consistent positioning */
    top: 0.6cm !important; /* 0.6cm from top of screen */
    right: 1cm !important; /* 1cm from right edge of screen */
    z-index: 20; /* Ensure it's above question text */
    flex-shrink: 0 !important; /* Don't shrink */
    white-space: nowrap !important; /* Prevent wrapping */
}

/* Align slide title container below question for I/We/You slides */
.i-do-slide .slide-title-container,
.we-do-slide .slide-title-container,
.you-do-slide .slide-title-container {
    margin-top: 0;
    margin-bottom: 20px;
}

/* Hide steps container completely on I/We/You slides */
.i-do-slide .steps-container,
.we-do-slide .steps-container,
.you-do-slide .steps-container {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.question-container {
    background: rgb(255, 255, 255) !important;
    background-color: rgb(255, 255, 255) !important;
    background-image: none !important;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 50px; /* Increased from 30px */
    margin: 30px auto 0 auto; /* Remove bottom margin to reduce gap */
    text-align: center;
    max-width: 90%;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 1 !important;
    position: relative;
    z-index: 20 !important; /* Above logo (z-index: 2) */
}

.question-text {
    font-size: 3rem; /* Increased from 1.8rem */
    line-height: 1.6;
    color: var(--text-color);
    text-align: center;
}

.steps-container {
    background: rgb(255, 255, 255) !important;
    background-color: rgb(255, 255, 255) !important;
    background-image: none !important;
    border-radius: 12px;
    padding: 0;
    margin: 0 auto;
    color: var(--text-color);
    max-width: 90%;
    width: 100%;
    text-align: left;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 1 !important;
    position: relative;
    z-index: 20 !important; /* Above logo (z-index: 2) */
    /* Hide by default, shown via nav bar button */
    display: none;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.steps-container.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
    animation: slideDown 0.3s ease;
    padding: 30px;
    margin: 20px auto 0 auto; /* Top margin for spacing */
}

.steps-navigation.hidden,
.steps-toggle-btn.hidden {
    display: none;
}

.steps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Hide show steps button completely - removed feature */
.steps-toggle-btn {
    display: none !important;
}

/* Keep steps header visible but without the button */
.steps-header {
    justify-content: flex-start;
}

.steps-controls {
    display: none !important;
}

.steps-container h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 2rem; /* Increased from 1.5rem */
}

.steps-controls {
    display: flex;
    gap: 10px;
}

.steps-toggle-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
}

.steps-toggle-btn:hover {
    background: #e0a015;
}

.steps-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.step-nav-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
}

.step-nav-btn:hover:not(:disabled) {
    background: #a00a0d;
}

.step-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.step-counter {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
}

.steps-list {
    margin: 0;
    padding-left: 0;
    counter-reset: step-counter;
    min-height: 200px; /* Reserve space for steps */
}

.steps-list li {
    margin-bottom: 20px; /* Increased from 15px */
    font-size: 1.5rem; /* Increased from 1.2rem */
    line-height: 1.8; /* Increased from 1.6 */
    transition: opacity 0.3s ease, transform 0.3s ease;
    list-style: none;
    counter-increment: step-counter;
    position: relative;
    padding-left: 50px;
}

.step-item {
    list-style: none;
    counter-increment: step-counter;
    position: relative;
    padding-left: 50px;
}

.step-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
}

.step-item.hidden {
    display: none;
}

.step-item.active {
    display: block;
    animation: slideInStep 0.3s ease;
}

.step-content {
    font-size: 1.5rem;
    color: var(--text-color);
    padding: 15px 20px;
    background: rgba(255, 255, 255, 1);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    line-height: 1.6;
    margin: 10px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.loading-steps {
    text-align: center;
    padding: 40px;
    color: white;
    font-size: 1.5rem;
}

/* Teaching notes/Steps to Success removed - completely hidden */
.teaching-notes-container {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

.teaching-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.teaching-notes-header h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.teaching-notes-toggle-btn {
    background: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.teaching-notes-toggle-btn:hover {
    background: #e0a015;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.teaching-notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.teaching-notes-list.hidden {
    display: none;
}

.teaching-note-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.teaching-note-item:last-child {
    margin-bottom: 0;
}

.teaching-note-item i {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-top: 2px;
    flex-shrink: 0;
}

@keyframes slideInStep {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-item {
    list-style: none;
    counter-increment: step-counter;
    position: relative;
    padding-left: 40px;
}

.step-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-item.hidden {
    display: none;
}

.step-item.active {
    display: list-item;
    animation: slideInStep 0.3s ease;
}

.step-calculation {
    font-weight: 600;
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.step-explanation {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 8px;
    padding: 10px 15px;
    border-left: 3px solid var(--secondary-color);
    background: rgba(250, 183, 25, 0.1);
    border-radius: 6px;
}

@keyframes slideInStep {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* TLAC Slide */
.tlac-slide .resource-embed-container {
    height: calc(100vh - 120px);
}

/* Independent Task Slide */
.independent-task-slide {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    color: white;
    text-align: center;
    justify-content: flex-start !important; /* Start at top */
    align-items: flex-start !important; /* Align to left */
    padding-top: 20px !important; /* Add top padding */
}

/* When it's a projector slide, positioned to the right of vocab box */
.slide-content.independent-task-slide.projector-slide {
    max-width: calc(100vw - 200px) !important;
    width: calc(100vw - 200px) !important;
    margin-left: 200px !important; /* Position to the right of vocab box */
    margin-right: auto !important; /* Center the slide content */
    padding: 20px !important;
    padding-top: 20px !important; /* Ensure top padding */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important; /* Align to left, not center */
    justify-content: flex-start !important; /* Start at top */
    position: relative;
    z-index: 1; /* Lower than vocab box */
}

.independent-task-slide .slide-title {
    text-align: center;
    font-size: 3rem; /* Restored to original size */
    margin-bottom: 10px;
    position: relative;
    z-index: 2; /* Above projector container */
    width: 100%;
}

.instructions-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    margin: 20px auto;
    color: var(--text-color);
    max-height: 70vh;
    overflow-y: auto;
    max-width: min(900px, calc(100vw - 240px)); /* Account for vocab box + padding */
    width: 100%;
    text-align: left;
}

/* Full-width container when written-instructions independent task has PDF attachment */
.instructions-container:has(.instructions-attachment-pdf) {
    max-width: 100%;
    width: 100%;
    max-height: none;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
}
.instructions-container:has(.instructions-attachment-pdf) .instructions-text {
    padding-left: 30px;
    padding-right: 30px;
}

.instructions-text {
    font-size: 1.3rem;
    line-height: 1.8;
    /* Prose line-height only: maths spans (.sqrt-radicand, .algebraic-frac) set their own metrics */
    white-space: pre-wrap;
}

/* Independent task instructions: pre-wrap + 1.8 line-height skewed overline on .sqrt-radicand */
.instructions-text .sqrt-radicand {
    line-height: 1.15 !important;
    vertical-align: 0.18em !important;
    padding-top: 0.08em !important;
}

/* Large slide title can misalign √ + vinculum relative to body text */
.independent-task-slide .slide-title .sqrt-radicand {
    line-height: 1.2 !important;
    vertical-align: 0.22em !important;
}

/* PDF or image attachment on written-instructions independent task */
.instructions-attachment {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

/* PDF preview full width when independent task has written instructions + PDF */
.instructions-attachment-pdf {
    border-radius: 0;
}
.instructions-attachment-pdf .instructions-pdf-iframe {
    width: 100%;
    height: 75vh;
    min-height: 400px;
    border: none;
}
.instructions-attachment-image {
    display: flex;
    justify-content: center;
}
.instructions-attachment-img {
    max-width: 100%;
    max-height: 50vh;
    height: auto;
    object-fit: contain;
}

/* Independent Task Timer - moved to nav bar, keeping styles for overlay only */

/* Whiteboard container for independent task slides */
.independent-task-slide .whiteboard-embed-container {
    width: 95vw !important;
    height: 95vh !important;
    min-height: 95vh !important;
    max-height: 95vh !important;
    margin: 2.5vh auto !important;
    max-width: 95vw !important;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    order: 3;
    position: relative;
    left: auto;
    right: auto;
    margin-left: auto;
    margin-right: auto;
}

.independent-task-slide .whiteboard-embed-container.whiteboard-hidden {
    display: none !important;
}

.independent-task-slide .whiteboard-embed-container:not(.whiteboard-hidden) {
    display: block !important;
}

.independent-task-slide .whiteboard-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Times Up Overlay */
.independent-task-times-up-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.independent-task-times-up-content {
    background: white;
    padding: 60px 80px;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.independent-task-times-up-content h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.independent-task-times-up-content h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 40px;
}

.independent-task-times-up-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.independent-task-dismiss-hint {
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Projector Mode iframe (for embedded textbook) */
.projector-iframe {
    width: 100%;
    height: calc(100vh - 120px);
    border: none;
    background: white;
}

/* Plenary Slide */
.plenary-slide {
    max-width: 90%;
    margin: 0 auto;
    width: 100%;
}

.discuss-iframe {
    width: 100%;
    height: calc(100vh - 120px);
    border: none;
    background: transparent;
}

/* Exit Ticket Slide */
.exit-ticket-slide {
    max-width: 90%;
    margin: 0 auto;
}

.exit-ticket-slide .resource-embed-container {
    height: calc(100vh - 120px);
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
}

/* Homework Answers Slide */
.homework-answers-slide {
    max-width: 90%;
    margin: 0 auto;
}

.homework-answers-slide .resource-embed-container {
    height: calc(100vh - 200px); /* Account for vocab box and title */
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    overflow-y: auto;
}

/* Home Learning Slide */
.home-learning-slide .homework-pdf-container {
    width: 100%;
    max-width: 90%;
    height: calc(100vh - 200px); /* Account for vocab box and title */
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.home-learning-slide .homework-pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.home-learning-slide {
    max-width: 90%;
    margin: 0 auto;
    color: white;
    text-align: center;
    width: 100%;
}

.home-learning-slide .slide-title {
    text-align: center;
}

.home-learning-notice {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    text-align: center;
    max-width: min(900px, calc(100vw - 240px)); /* Account for vocab box + padding */
    width: 100%;
}

.home-learning-notice p {
    font-size: 1.3rem;
    margin: 0;
    color: white;
}

.home-learning-slide .homework-pdf-container {
    height: calc(100vh - 200px);
    overflow: hidden; /* PDF handles its own scrolling */
    margin: 0 auto;
    max-width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.home-learning-slide .homework-pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Projector Settings Modal */
.projector-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.projector-settings-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: auto;
}

.projector-settings-content h2 {
    font-family: "DINCondensedBold", "Arial Black", "Arial", sans-serif;
    color: var(--primary-color);
    font-size: 2rem;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 
        -2px -2px 0 white,
        2px -2px 0 white,
        -2px 2px 0 white,
        2px 2px 0 white,
        -2px 0 0 white,
        2px 0 0 white,
        0 -2px 0 white,
        0 2px 0 white,
        -3px -3px 0 white,
        3px -3px 0 white,
        -3px 3px 0 white,
        3px 3px 0 white,
        -3px 0 0 white,
        3px 0 0 white,
        0 -3px 0 white,
        0 3px 0 white,
        4px 4px 8px rgba(0, 0, 0, 0.7);
}

.projector-settings-content p {
    color: #666;
    margin: 0 0 30px 0;
    font-size: 1rem;
}

.settings-group {
    margin-bottom: 25px;
    text-align: left;
}

.settings-group label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.settings-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.settings-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.settings-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-settings {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-skip {
    background: #6c757d;
    color: white;
}

.btn-skip:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-start {
    background: linear-gradient(135deg, var(--primary-color), #8B0000);
    color: white;
    box-shadow: 0 4px 12px rgba(201, 12, 15, 0.3);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 12, 15, 0.4);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lesson title at top of vocab box */
.vocab-lesson-title {
    font-family: "DINCondensedBold", "Arial Black", "Arial", sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #000000; /* Black for light mode */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: none; /* No border */
    text-shadow: none; /* No text shadow */
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Dark mode: white text */
.dark-mode .vocab-lesson-title {
    color: #ffffff; /* White for dark mode */
}

/* Page title in vocab box */
.vocab-page-title {
    font-family: "DINCondensedBold", "Arial Black", "Arial", sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    text-shadow: 
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black,
        -1px 0 0 black,
        1px 0 0 black,
        0 -1px 0 black,
        0 1px 0 black;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Page subtitle in vocab box (for TLAC) */
.vocab-page-subtitle {
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Key Vocabulary Box - Left Sidebar - Now on ALL slides */
.key-vocab-box {
    position: fixed;
    left: 0;
    top: 0; /* Start from top since no KNOW/REMEMBER bar */
    width: 200px;
    height: 100vh; /* Full height */
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-right: 3px solid var(--primary-color);
    padding: 20px 15px;
    z-index: 100; /* Higher than slide content to ensure it's always on top */
    overflow-y: auto;
    overflow-x: visible;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
    display: flex !important; /* Changed to flex for bottom alignment */
    flex-direction: column; /* Stack content vertically */
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Ensure vocab content takes available space, pushing controls to bottom */
.key-vocab-box > *:not(.vocab-task-controls):not(.vocab-clock-container) {
    flex-shrink: 0;
}

.vocab-task-controls {
    margin-top: auto; /* Push to bottom */
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vocab-clock-container {
    margin-top: auto; /* Push to bottom */
    padding-top: 15px;
    padding-bottom: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.vocab-clock {
    font-family: "DINCondensedBold", "Arial Black", "Arial", sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black,
        1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.vocab-control-btn {
    width: 100%;
    padding: 12px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "DINCondensedBold", "Arial Black", "Arial", sans-serif;
}

.vocab-control-btn:hover {
    background: #8B0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.vocab-control-btn.active,
button.vocab-control-btn.active,
#vocabAutoScrollBtn.active {
    background: #FAB719 !important;
    background-color: #FAB719 !important;
    color: #000 !important;
    font-weight: bold;
}

.vocab-control-btn.active:hover,
button.vocab-control-btn.active:hover,
#vocabAutoScrollBtn.active:hover {
    background: #e0a517 !important;
    background-color: #e0a517 !important;
    color: #000 !important;
}

.vocab-control-btn i {
    font-size: 1rem;
}

.vocab-control-btn span {
    font-size: 0.9rem;
}

.vocab-header {
    font-family: "DINCondensedBold", "Arial Black", "Arial", sans-serif;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 
        -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white,
        -1px 0 0 white,
        1px 0 0 white,
        0 -1px 0 white,
        0 1px 0 white,
        -2px -2px 0 white,
        2px -2px 0 white,
        -2px 2px 0 white,
        2px 2px 0 white,
        -2px 0 0 white,
        2px 0 0 white,
        0 -2px 0 white,
        0 2px 0 white,
        2px 2px 4px rgba(0, 0, 0, 0.5);
}

.vocab-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vocab-list li {
    color: white;
    font-size: 0.95rem;
    padding: 8px 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--secondary-color);
    border-radius: 4px;
    line-height: 1.4;
    transition: all 0.2s ease;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-shadow: 
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black,
        -1px 0 0 black,
        1px 0 0 black,
        0 -1px 0 black,
        0 1px 0 black,
        1px 1px 2px rgba(0, 0, 0, 0.5);
}

.vocab-list li:hover {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: var(--primary-color);
    transform: translateX(3px);
}

/* Adjust slide content to account for vocab box - NOW ON ALL SLIDES */
.slide-content {
    margin-left: 200px !important;
    width: calc(100% - 200px) !important;
}

/* I/We/You slides - ensure they start at the very top */
.i-do-slide,
.we-do-slide,
.you-do-slide {
    margin-top: 0 !important;
    padding-top: 30px !important; /* Keep top padding for spacing */
    justify-content: flex-start !important; /* Align to top, not center */
    align-items: flex-start !important; /* Align to left */
}

/* White Rose Logo - Top Right Corner */
/* White Rose logo is now in static header - removed from slide content */

/* Responsive */
@media (max-width: 768px) {
    .know-remember-bar {
        flex-direction: column;
        gap: 10px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .slide-content {
        padding-top: 100px !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    
    .key-vocab-box {
        position: relative;
        width: 100%;
        height: auto;
        max-height: 200px;
        top: 0;
        margin-bottom: 20px;
        border-right: none;
        border-bottom: 3px solid var(--primary-color);
    }
    
    .question-text {
        font-size: 1.4rem;
    }
    
    .steps-container {
        padding: 15px;
    }
    
    .steps-list li {
        font-size: 1rem;
    }
}

/* Tablet view (769px–1024px): narrower vocab sidebar to match viewer.css */
@media (min-width: 769px) and (max-width: 1024px) {
    .key-vocab-box {
        width: 160px;
        padding: 16px 12px;
    }
    
    .vocab-header {
        font-size: 0.95rem;
    }
    
    .vocab-list {
        font-size: 0.9rem;
    }
    
    .vocab-control-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    /* Match viewer.css tablet sidebar (160px) so slide content aligns */
    .slide-content {
        margin-left: 160px !important;
        width: calc(100% - 160px) !important;
    }
    
    .slide-content.independent-task-slide.projector-slide {
        max-width: calc(100vw - 160px) !important;
        width: calc(100vw - 160px) !important;
        margin-left: 160px !important;
    }
    
    .instructions-container {
        max-width: min(900px, calc(100vw - 200px)); /* 160px sidebar + 40px padding */
    }
    
    .home-learning-notice {
        max-width: min(900px, calc(100vw - 200px));
    }
}

/* Light Mode Styles for Lesson Plan */
.light-mode .key-vocab-box {
    background: rgba(255, 255, 255, 0.95);
    border-right: 2px solid rgba(201, 12, 15, 0.3);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.light-mode .vocab-know-remember .know-item,
.light-mode .vocab-know-remember .remember-item {
    color: var(--text-color);
    text-shadow: 
        -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white,
        -1px 0 0 white,
        1px 0 0 white,
        0 -1px 0 white,
        0 1px 0 white,
        1px 1px 2px rgba(255, 255, 255, 0.7);
}

.light-mode .vocab-page-title {
    color: var(--secondary-color);
    text-shadow: 
        -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white,
        -1px 0 0 white,
        1px 0 0 white,
        0 -1px 0 white,
        0 1px 0 white;
}

.light-mode .vocab-page-subtitle {
    color: var(--text-color);
    border-bottom-color: rgba(201, 12, 15, 0.2);
    text-shadow: 
        -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white;
}

.light-mode .vocab-header {
    color: var(--primary-color);
    text-shadow: 
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black,
        -1px 0 0 black,
        1px 0 0 black,
        0 -1px 0 black,
        0 1px 0 black,
        -2px -2px 0 black,
        2px -2px 0 black,
        -2px 2px 0 black,
        2px 2px 0 black,
        -2px 0 0 black,
        2px 0 0 black,
        0 -2px 0 black,
        0 2px 0 black,
        2px 2px 4px rgba(255, 255, 255, 0.5);
}

.light-mode .vocab-list {
    color: var(--text-color);
}

.light-mode .vocab-list li {
    color: var(--text-color);
    text-shadow: 
        -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white,
        -1px 0 0 white,
        1px 0 0 white,
        0 -1px 0 white,
        0 1px 0 white,
        1px 1px 2px rgba(255, 255, 255, 0.7);
}

.light-mode .vocab-item {
    background: rgba(201, 12, 15, 0.05);
    border-left: 3px solid var(--primary-color);
    color: var(--text-color);
}

.light-mode .question-container {
    background: rgb(255, 255, 255) !important;
    background-color: rgb(255, 255, 255) !important;
    background-image: none !important;
    opacity: 1 !important;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.light-mode .question-text {
    color: var(--text-color);
}

.light-mode .steps-container {
    background: rgb(255, 255, 255) !important;
    background-color: rgb(255, 255, 255) !important;
    background-image: none !important;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 1 !important;
}

.light-mode .step-item {
    background: rgba(0, 0, 0, 0.03);
    border-left: 4px solid var(--primary-color);
    color: var(--text-color);
}

.light-mode .step-calculation {
    color: var(--text-color);
}

.light-mode .step-explanation {
    color: rgba(29, 29, 27, 0.8);
}

.light-mode .teaching-notes-container {
    background: rgba(255, 255, 255, 1);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.light-mode .teaching-notes-header h3 {
    color: var(--text-color);
}

.light-mode .teaching-note-item {
    background: rgba(0, 0, 0, 0.03);
    border-left: 4px solid var(--secondary-color);
    color: var(--text-color);
}

.light-mode .teaching-notes-toggle-btn {
    background: var(--secondary-color);
    color: var(--text-color);
}

.light-mode .teaching-notes-toggle-btn:hover {
    background: #e0a015;
}

.light-mode .slide-title {
    color: var(--primary-color);
    text-shadow: none;
}

.light-mode .i-do-slide .slide-title,
.light-mode .we-do-slide .slide-title,
.light-mode .you-do-slide .slide-title {
    color: var(--primary-color);
    text-shadow: none;
}

.light-mode .white-rose-logo {
    filter: none;
}

.light-mode .starter-icon,
.light-mode .tlac-icon {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Dark Mode Styles - ensure white backgrounds are dark */
.dark-mode .question-container {
    background: rgb(255, 255, 255) !important;
    background-color: rgb(255, 255, 255) !important;
    background-image: none !important;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 1 !important;
}

.dark-mode .steps-container {
    background: rgba(255, 255, 255, 1);
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.dark-mode .step-item {
    background: rgba(255, 255, 255, 0.95);
}

.dark-mode .teaching-note-item {
    background: rgba(255, 255, 255, 0.95);
}

/* Icons are now in static header - removed from slide content */
