/* Import Design Tokens */
@import url('design-tokens.css');

/* Blue Merle Classroom Tools - Updated Design System */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-700) 50%, var(--color-secondary-600) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: var(--space-5);
    position: relative;
}

/* Modern gradient overlay for depth */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(109, 129, 150, 0.3), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(198, 131, 70, 0.2), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

header {
    text-align: center;
    color: var(--color-white);
    margin-bottom: var(--space-5);
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.6s ease;
}

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

header h1 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-1);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tight);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: var(--text-base);
    opacity: var(--opacity-95);
    font-weight: var(--font-normal);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-5);
    max-width: var(--container-2xl);
    margin: 0 auto;
    height: calc(100vh - 140px);
    position: relative;
    z-index: 1;
}

.tool-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    overflow-y: auto;
    padding-right: var(--space-2-5);
    height: 100%;
}

.nav-category {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    border: var(--border-width-1) solid rgba(255, 255, 255, 0.2);
}

.category-label {
    color: var(--color-white);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    padding-bottom: var(--space-1-5);
    border-bottom: var(--border-width-2) solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.category-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-1-5);
}

.nav-btn {
    width: 100%;
    padding: var(--space-2-5) var(--space-3-5);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: var(--border-width-1) solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-base);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: var(--transition-base);
    box-shadow: var(--shadow-elevation-2);
    color: var(--color-charcoal);
    text-align: left;
}

.nav-btn:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-elevation-3);
    background: var(--color-white);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-700) 100%);
    color: var(--color-white);
    border-color: transparent;
    box-shadow: var(--shadow-elevation-3);
    transform: translateX(4px);
}

main {
    overflow-y: hidden;
    height: 100%;
    padding-right: var(--space-2-5);
}

.tool-section {
    display: none;
    background: #FFFFFF;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-elevation-4);
    border: var(--border-width-1) solid var(--color-neutral-200);
    animation: fadeInUp 0.5s ease;
    height: fit-content;
    overflow: auto;
}

/* Enable scrolling for Skills Spotlight */
#skills-spotlight.tool-section {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    max-height: calc(100vh - 140px) !important;
}

#skills-spotlight.tool-section.active {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    max-height: calc(100vh - 140px) !important;
}

#skills-spotlight .tool-content {
    overflow: visible !important;
    max-height: none !important;
}

/* Enable scrolling for specific tool categories */
#picture-day,
#riddle-day,
#discussion-day,
#daily-mechanics,
#spelling-test,
#word-day,
#writing-starter,
#discussion-board,
#brainstorm,
#polls,
#story-spark,
#sensescape,
#word-search,
#crossword,
#matchy-match,
#cloze-activity,
#youtube-worksheet,
#text-simplifier,
#passage-worksheet,
#question-generator,
#drafting-feedback,
#exit-ticket {
    overflow-y: auto;
    max-height: calc(100vh - 180px);
}

/* Scrollbar styling for scrollable tools */
#picture-day::-webkit-scrollbar,
#riddle-day::-webkit-scrollbar,
#discussion-day::-webkit-scrollbar,
#daily-mechanics::-webkit-scrollbar,
#spelling-test::-webkit-scrollbar,
#word-day::-webkit-scrollbar,
#writing-starter::-webkit-scrollbar,
#discussion-board::-webkit-scrollbar,
#brainstorm::-webkit-scrollbar,
#polls::-webkit-scrollbar,
#story-spark::-webkit-scrollbar,
#sensescape::-webkit-scrollbar,
#word-search::-webkit-scrollbar,
#crossword::-webkit-scrollbar,
#matchy-match::-webkit-scrollbar,
#cloze-activity::-webkit-scrollbar,
#youtube-worksheet::-webkit-scrollbar,
#text-simplifier::-webkit-scrollbar,
#passage-worksheet::-webkit-scrollbar,
#question-generator::-webkit-scrollbar,
#drafting-feedback::-webkit-scrollbar,
#exit-ticket::-webkit-scrollbar {
    width: 8px;
}

#picture-day::-webkit-scrollbar-track,
#riddle-day::-webkit-scrollbar-track,
#discussion-day::-webkit-scrollbar-track,
#daily-mechanics::-webkit-scrollbar-track,
#spelling-test::-webkit-scrollbar-track,
#word-day::-webkit-scrollbar-track,
#writing-starter::-webkit-scrollbar-track,
#discussion-board::-webkit-scrollbar-track,
#brainstorm::-webkit-scrollbar-track,
#polls::-webkit-scrollbar-track,
#story-spark::-webkit-scrollbar-track,
#sensescape::-webkit-scrollbar-track,
#word-search::-webkit-scrollbar-track,
#crossword::-webkit-scrollbar-track,
#matchy-match::-webkit-scrollbar-track,
#cloze-activity::-webkit-scrollbar-track,
#youtube-worksheet::-webkit-scrollbar-track,
#text-simplifier::-webkit-scrollbar-track,
#passage-worksheet::-webkit-scrollbar-track,
#question-generator::-webkit-scrollbar-track,
#drafting-feedback::-webkit-scrollbar-track,
#exit-ticket::-webkit-scrollbar-track {
    background: rgba(109, 129, 150, 0.1);
    border-radius: var(--radius-base);
}

#picture-day::-webkit-scrollbar-thumb,
#riddle-day::-webkit-scrollbar-thumb,
#discussion-day::-webkit-scrollbar-thumb,
#daily-mechanics::-webkit-scrollbar-thumb,
#spelling-test::-webkit-scrollbar-thumb,
#word-day::-webkit-scrollbar-thumb,
#writing-starter::-webkit-scrollbar-thumb,
#discussion-board::-webkit-scrollbar-thumb,
#brainstorm::-webkit-scrollbar-thumb,
#polls::-webkit-scrollbar-thumb,
#story-spark::-webkit-scrollbar-thumb,
#sensescape::-webkit-scrollbar-thumb,
#word-search::-webkit-scrollbar-thumb,
#crossword::-webkit-scrollbar-thumb,
#matchy-match::-webkit-scrollbar-thumb,
#cloze-activity::-webkit-scrollbar-thumb,
#youtube-worksheet::-webkit-scrollbar-thumb,
#text-simplifier::-webkit-scrollbar-thumb,
#passage-worksheet::-webkit-scrollbar-thumb,
#question-generator::-webkit-scrollbar-thumb,
#drafting-feedback::-webkit-scrollbar-thumb,
#exit-ticket::-webkit-scrollbar-thumb {
    background: rgba(109, 129, 150, 0.3);
    border-radius: var(--radius-base);
}

#picture-day::-webkit-scrollbar-thumb:hover,
#riddle-day::-webkit-scrollbar-thumb:hover,
#discussion-day::-webkit-scrollbar-thumb:hover,
#daily-mechanics::-webkit-scrollbar-thumb:hover,
#spelling-test::-webkit-scrollbar-thumb:hover,
#word-day::-webkit-scrollbar-thumb:hover,
#writing-starter::-webkit-scrollbar-thumb:hover,
#discussion-board::-webkit-scrollbar-thumb:hover,
#brainstorm::-webkit-scrollbar-thumb:hover,
#polls::-webkit-scrollbar-thumb:hover,
#story-spark::-webkit-scrollbar-thumb:hover,
#sensescape::-webkit-scrollbar-thumb:hover,
#word-search::-webkit-scrollbar-thumb:hover,
#crossword::-webkit-scrollbar-thumb:hover,
#matchy-match::-webkit-scrollbar-thumb:hover,
#cloze-activity::-webkit-scrollbar-thumb:hover,
#youtube-worksheet::-webkit-scrollbar-thumb:hover,
#text-simplifier::-webkit-scrollbar-thumb:hover,
#passage-worksheet::-webkit-scrollbar-thumb:hover,
#question-generator::-webkit-scrollbar-thumb:hover,
#drafting-feedback::-webkit-scrollbar-thumb:hover,
#exit-ticket::-webkit-scrollbar-thumb:hover {
    background: rgba(109, 129, 150, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-section.active {
    display: block;
}

.tool-section h2 {
    color: var(--color-charcoal);
    margin-bottom: var(--space-6);
    text-align: center;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tight);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    position: relative;
}

.tool-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* Buttons */
.controls {
    display: flex;
    gap: var(--space-2-5);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: var(--btn-padding-y) var(--btn-padding-x);
    border: none;
    border-radius: var(--btn-border-radius);
    cursor: pointer;
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    transition: var(--btn-transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-success-500) 0%, var(--color-success-700) 100%);
    color: var(--color-white);
    /* Blooket-style layered shadow */
    box-shadow: 0 4px 0 0 rgba(56, 142, 60, 0.8), 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 0 0 rgba(56, 142, 60, 0.8), 0 8px 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--color-success-700) 0%, var(--color-success-800) 100%);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 0 rgba(56, 142, 60, 0.8), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-error-500) 0%, var(--color-error-700) 100%);
    color: var(--color-white);
    /* Blooket-style layered shadow */
    box-shadow: 0 4px 0 0 rgba(198, 40, 40, 0.8), 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 0 0 rgba(198, 40, 40, 0.8), 0 8px 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--color-error-700) 0%, var(--color-error-800) 100%);
}

.btn-secondary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 0 rgba(198, 40, 40, 0.8), 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Icon Button */
.btn-icon {
    padding: var(--space-1-5) var(--space-3);
    background: var(--color-primary-500);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-base);
    cursor: pointer;
    font-size: var(--text-lg);
    transition: var(--transition-base);
}

.btn-icon:hover {
    background: var(--color-primary-600);
    transform: scale(1.05);
}

/* Premium Button */
.btn-premium {
    padding: var(--space-3) var(--space-10);
    border: none;
    border-radius: var(--radius-base);
    cursor: pointer;
    font-size: var(--text-base);
    transition: var(--transition-base);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--color-white);
    font-weight: var(--font-semibold);
    /* Blooket-style layered shadow - matches btn-premium-active */
    box-shadow: 0 4px 0 0 rgba(5, 150, 105, 0.8), 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 0 0 rgba(5, 150, 105, 0.8), 0 8px 24px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Random Name Generator */
.name-picker-mode-selector {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.name-mode-btn {
    padding: var(--space-2) var(--space-4);
    background: var(--color-neutral-50);
    border: var(--border-width-2) solid var(--color-neutral-200);
    border-radius: var(--radius-base);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: var(--transition-base);
    color: var(--color-neutral-600);
}

.name-mode-btn:hover {
    background: var(--color-neutral-100);
    border-color: var(--color-neutral-300);
    transform: translateY(-1px);
}

.name-mode-btn.active {
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-700) 100%);
    color: var(--color-white);
    border-color: transparent;
    box-shadow: var(--shadow-elevation-2);
}

#nameList {
    width: 100%;
    padding: var(--space-4);
    border: var(--border-width-2) solid var(--color-neutral-200);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    resize: vertical;
    transition: var(--transition-base);
}

#nameList:focus {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: var(--input-focus-ring);
}

.result-display {
    font-size: 5rem;
    font-weight: var(--font-bold);
    text-align: center;
    color: #FFFFFF;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
    border-radius: 24px;
    background: linear-gradient(135deg, #C68346 0%, #d69a5d 100%);
    transform: translateY(0px);
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 0 40px rgba(198, 131, 70, 0.8),
        0 0 80px rgba(198, 131, 70, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.4);
    animation: pulseGlow 2s ease-in-out infinite;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.result-display.show {
    opacity: 1;
    visibility: visible;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow:
            0 0 40px rgba(198, 131, 70, 0.8),
            0 0 80px rgba(198, 131, 70, 0.6),
            0 10px 30px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow:
            0 0 60px rgba(198, 131, 70, 1),
            0 0 120px rgba(198, 131, 70, 0.8),
            0 15px 40px rgba(0, 0, 0, 0.5);
    }
}

.name-picker-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-6);
    align-items: start;
    margin-top: var(--space-5);
}

.name-list-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.name-display-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    margin-top: 0;
    position: relative;
}

/* Wheel Canvas */
.wheel-canvas {
    display: block;
    margin: var(--space-4) auto;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-elevation-4);
}

/* Celebration Animation */
.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-modal);
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color-primary-500);
    top: -10px;
    opacity: 0;
}

.confetti:nth-child(1) {
    left: 10%;
    background: var(--color-primary-500);
    animation: confetti-fall 3s ease-out;
}

.confetti:nth-child(2) {
    left: 20%;
    background: var(--color-secondary-500);
    animation: confetti-fall 3s ease-out 0.2s;
}

.confetti:nth-child(3) {
    left: 30%;
    background: var(--color-info-500);
    animation: confetti-fall 3s ease-out 0.4s;
}

.confetti:nth-child(4) {
    left: 40%;
    background: var(--color-success-500);
    animation: confetti-fall 3s ease-out 0.6s;
}

.confetti:nth-child(5) {
    left: 60%;
    background: var(--color-error-500);
    animation: confetti-fall 3s ease-out 0.3s;
}

.confetti:nth-child(6) {
    left: 70%;
    background: var(--color-warning-500);
    animation: confetti-fall 3s ease-out 0.5s;
}

.confetti:nth-child(7) {
    left: 80%;
    background: var(--color-info-400);
    animation: confetti-fall 3s ease-out 0.1s;
}

.confetti:nth-child(8) {
    left: 90%;
    background: var(--color-primary-700);
    animation: confetti-fall 3s ease-out 0.7s;
}

@keyframes confetti-fall {
    0% {
        top: -10px;
        opacity: 1;
        transform: rotate(0deg);
    }
    100% {
        top: 100vh;
        opacity: 0;
        transform: rotate(720deg);
    }
}

/* Timer Styles */
.timer-compact-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-5);
    align-items: start;
}

.timer-left-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.timer-right-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-2-5);
}

.timer-mode-selector {
    display: flex;
    gap: var(--space-2);
    justify-content: stretch;
}

.timer-mode-btn {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    background: var(--color-neutral-50);
    border: var(--border-width-2) solid var(--color-neutral-300);
    border-radius: var(--radius-base);
    cursor: pointer;
    transition: var(--transition-base);
    font-size: var(--text-sm);
}

.timer-mode-btn:hover {
    background: var(--color-neutral-100);
}

.timer-mode-btn.active {
    background: var(--color-primary-500);
    color: var(--color-white);
    border-color: var(--color-primary-500);
}

.time-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2-5);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-5);
}

.time-inputs input {
    width: 80px;
    padding: var(--space-2-5);
    font-size: 1em;
    text-align: center;
    border: var(--border-width-2) solid var(--color-neutral-300);
    border-radius: var(--radius-base);
}

.timer-container-compact {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-elevation-4);
}

.timer-container-compact[data-theme="none"] {
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-700) 100%);
}

/* Timer video styling - normal mode */
.timer-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.timer-display-compact {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    text-align: center;
    color: var(--color-white);
    padding: var(--space-6);
    text-shadow:
        0 0 30px rgba(0, 0, 0, 1),
        0 0 50px rgba(0, 0, 0, 0.9),
        0 0 70px rgba(0, 0, 0, 0.8),
        4px 4px 12px rgba(0, 0, 0, 1);
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(2px);
    position: relative;
    z-index: 1;
}

/* Settings */
.setting-group-compact {
    display: flex;
    flex-direction: column;
    gap: var(--space-1-5);
}

.setting-group-compact label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-neutral-600);
}

.controls-compact {
    display: flex;
    flex-direction: column;
    gap: var(--space-1-5);
}

.controls-compact button {
    width: 100%;
    padding: var(--space-2-5);
    font-size: var(--text-sm);
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Custom Scrollbar */
.tool-nav::-webkit-scrollbar,
main::-webkit-scrollbar {
    width: 8px;
}

.tool-nav::-webkit-scrollbar-track,
main::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-base);
}

.tool-nav::-webkit-scrollbar-thumb,
main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-base);
}

.tool-nav::-webkit-scrollbar-thumb:hover,
main::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 240px 1fr;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: var(--text-2xl);
    }

    .app-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .tool-nav {
        height: auto;
        max-height: 200px;
        margin-bottom: var(--space-5);
    }

    main {
        height: auto;
    }

    .tool-section {
        padding: var(--space-5);
    }

    .name-picker-layout {
        grid-template-columns: 1fr;
    }

    .timer-compact-layout {
        grid-template-columns: 1fr;
    }

    /* Responsive tip modal */
    .tip-modal-content {
        flex-direction: column;
        max-width: 95%;
        padding: var(--space-6);
    }

    .tip-video {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .tip-modal-content h3 {
        font-size: var(--text-xl);
    }

    .tip-modal-content p {
        font-size: var(--text-base);
    }
}

/* NOTE: Many additional component styles from original styles.css should be preserved below this line */
/* Including: Word Search, Crossword, Brain Breaks, Spelling Test, Daily Mechanics, etc. */
/* This is a foundational design system update - merge with existing component styles as needed */

/* ========== STOPWATCH STYLES ========== */
.timer-display {
    font-size: 6rem;
    font-weight: var(--font-bold);
    text-align: center;
    color: var(--color-charcoal);
    padding: var(--space-8);
    text-shadow:
        0 0 20px rgba(0, 0, 0, 0.15),
        2px 2px 8px rgba(0, 0, 0, 0.2),
        4px 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(109, 129, 150, 0.1) 0%, rgba(198, 131, 70, 0.1) 100%);
    border-radius: var(--radius-2xl);
    margin-bottom: var(--space-6);
    letter-spacing: var(--tracking-tight);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== COIN FLIP STYLES ========== */
.coin-display {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    margin: var(--space-6) 0;
}

.coin {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: var(--font-bold);
    color: var(--color-charcoal);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 5px 15px rgba(255, 255, 255, 0.3),
        inset 0 -5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s ease;
    border: 8px solid #DAA520;
}

.coin.flip {
    animation: flipCoin 0.6s ease-in-out;
}

@keyframes flipCoin {
    0%, 100% { transform: rotateY(0); }
    50% { transform: rotateY(1800deg); }
}

/* ========== FULLSCREEN STYLES ========== */
.fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a202c;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px;
    padding-top: 80px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 0;
    min-height: 100vh;
}

.fullscreen-container .timer-display,
.fullscreen-container #stopwatchDisplay {
    font-size: 12rem;
    color: var(--color-white);
    text-shadow:
        0 0 30px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(0, 0, 0, 0.4),
        4px 4px 20px rgba(0, 0, 0, 0.6);
}

.fullscreen-container .coin {
    width: 400px;
    height: 400px;
    font-size: 6rem;
}

.fullscreen-exit-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #C68346, #d69a5d);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.fullscreen-exit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #d69a5d, #e4b077);
}

.fullscreen-exit-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* ========== TIMER FULLSCREEN MODE ========== */
#timer.fullscreen-mode {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #1a202c;
    z-index: 10000;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-radius: 0;
    margin: 0;
    overflow-y: auto;
}

#timer.fullscreen-mode h2 {
    display: none;
}

#timer.fullscreen-mode .timer-compact-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

#timer.fullscreen-mode .timer-left-panel {
    display: none;
}

#timer.fullscreen-mode .timer-right-panel {
    width: 100%;
    max-width: 900px;
}

#timer.fullscreen-mode .timer-container-compact {
    min-height: 500px;
    width: 100%;
}

#timer.fullscreen-mode .timer-display-compact {
    font-size: 12rem;
    padding: var(--space-10);
    text-shadow:
        0 0 40px rgba(0, 0, 0, 1),
        0 0 60px rgba(0, 0, 0, 0.9),
        0 0 80px rgba(0, 0, 0, 0.8),
        6px 6px 20px rgba(0, 0, 0, 1);
}

#timer.fullscreen-mode .timer-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#timer.fullscreen-mode .detention-warning {
    font-size: 4rem;
}

#timer.fullscreen-mode .detention-noise-bar {
    width: 100%;
    max-width: 800px;
}

/* Fullscreen timer controls (no longer needed - buttons created dynamically) */

/* ========== FULLSCREEN TOOL-SPECIFIC STYLES ========== */
.fullscreen-container .result-display {
    font-size: 8rem;
    color: var(--color-white);
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.fullscreen-container .word-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.fullscreen-container .word-title {
    font-size: 6rem;
    color: var(--color-white);
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.fullscreen-container .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-2xl);
    backdrop-filter: blur(10px);
}

.fullscreen-container .btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

.fullscreen-container .word-syllables {
    font-size: var(--text-2xl);
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-medium);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    margin: 0;
}

.fullscreen-container .word-phonetic {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: var(--space-6);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.fullscreen-container .word-definition {
    font-size: var(--text-xl);
    color: var(--color-charcoal);
    line-height: 1.8;
    padding: var(--space-4);
    background: rgba(109, 129, 150, 0.05);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary-500);
}

.fullscreen-container .writing-starter-display,
.fullscreen-container .riddle-display,
.fullscreen-container .discussion-display {
    max-width: 90%;
    color: var(--color-white);
}

.fullscreen-container .starter-prompt,
.fullscreen-container #riddleQuestion,
.fullscreen-container #discussionStatement {
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* ========== MATCHY MATCH FIX ========== */
.matchy-worksheet {
    background: var(--color-white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevation-2);
}

.matchy-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    margin: var(--space-6) 0;
}

.matchy-column h4 {
    color: var(--color-primary-600);
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    font-weight: var(--font-bold);
}

.matchy-list {
    list-style-position: inside;
    padding-left: 0;
}

.matchy-list li {
    padding: var(--space-3);
    margin-bottom: var(--space-2);
    background: var(--color-neutral-50);
    border-radius: var(--radius-base);
    border: var(--border-width-1) solid var(--color-neutral-200);
    font-size: var(--text-base);
    line-height: 1.6;
}

.matchy-list li.highlighted {
    background: linear-gradient(135deg, rgba(109, 129, 150, 0.2) 0%, rgba(198, 131, 70, 0.2) 100%);
    border-color: var(--color-primary-500);
    font-weight: var(--font-semibold);
}

.matchy-answer-key,
.matchy-answer-sidebyside {
    margin-top: var(--space-6);
    padding: var(--space-5);
    background: rgba(109, 129, 150, 0.1);
    border-radius: var(--radius-lg);
    border: var(--border-width-2) solid var(--color-primary-500);
}

.matchy-answer-key h4,
.matchy-answer-sidebyside h4 {
    color: var(--color-primary-700);
    margin-bottom: var(--space-4);
    font-size: var(--text-xl);
}

#matchySideBySideList {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.matched-pair {
    padding: var(--space-3);
    background: var(--color-white);
    border-radius: var(--radius-base);
    border-left: 4px solid var(--color-success-500);
    font-size: var(--text-base);
}

.matched-pair strong {
    color: var(--color-primary-700);
}

/* ========== ADDITIONAL TOOL ENHANCEMENTS ========== */
.word-search-display,
.crossword-display,
.cloze-display {
    background: var(--color-white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevation-2);
}

.word-search-grid,
.crossword-grid {
    display: inline-grid;
    gap: 2px;
    margin: var(--space-4) 0;
}

.word-cell,
.crossword-cell {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--border-width-1) solid var(--color-neutral-300);
    background: var(--color-white);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    cursor: pointer;
    transition: var(--transition-base);
}

.word-cell:hover,
.crossword-cell:hover {
    background: rgba(109, 129, 150, 0.1);
}

.word-cell.found {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, rgba(76, 175, 80, 0.5) 100%);
    color: var(--color-white);
}

/* ========== NOISE METER ENHANCEMENTS ========== */
#noiseMeterDisplay {
    padding: var(--space-8);
    background: linear-gradient(135deg, rgba(109, 129, 150, 0.1) 0%, rgba(198, 131, 70, 0.1) 100%);
    border-radius: var(--radius-2xl);
    text-align: center;
}

.noise-level {
    width: 100%;
    max-width: 600px;
    height: 60px;
    background: var(--color-neutral-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: var(--space-6) auto;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.noise-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #FFC107 50%, #F44336 100%);
    transition: width 0.1s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

#noiseValue {
    font-size: 3rem;
    font-weight: var(--font-bold);
    color: var(--color-charcoal);
    margin: var(--space-4) 0;
}

#noiseStatus {
    font-size: 1.5rem;
    font-weight: var(--font-semibold);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    display: inline-block;
}

/* ========== DYNAMIC HIGHLIGHT COLORS FOR MATCHY MATCH ========== */
.highlight-0 { background: rgba(255, 107, 107, 0.3) !important; border-color: #FF6B6B !important; }
.highlight-1 { background: rgba(78, 205, 196, 0.3) !important; border-color: #4ECDC4 !important; }
.highlight-2 { background: rgba(255, 195, 113, 0.3) !important; border-color: #FFC371 !important; }
.highlight-3 { background: rgba(162, 155, 254, 0.3) !important; border-color: #A29BFE !important; }
.highlight-4 { background: rgba(253, 203, 110, 0.3) !important; border-color: #FDCB6E !important; }
.highlight-5 { background: rgba(116, 185, 255, 0.3) !important; border-color: #74B9FF !important; }
.highlight-6 { background: rgba(253, 121, 168, 0.3) !important; border-color: #FD79A8 !important; }
.highlight-7 { background: rgba(85, 239, 196, 0.3) !important; border-color: #55EFC4 !important; }
.highlight-8 { background: rgba(129, 236, 236, 0.3) !important; border-color: #81ECEC !important; }
.highlight-9 { background: rgba(250, 177, 160, 0.3) !important; border-color: #FAB1A0 !important; }

/* ========== BRAIN BREAKS ENHANCEMENTS ========== */
.brain-break-selector {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}

.break-option {
    padding: var(--space-2) var(--space-4);
    background: var(--color-neutral-50);
    border: var(--border-width-2) solid var(--color-neutral-200);
    border-radius: var(--radius-base);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: var(--transition-base);
    color: var(--color-neutral-600);
}

.break-option:hover {
    background: var(--color-neutral-100);
    border-color: var(--color-primary-500);
    transform: translateY(-1px);
}

.break-option.active {
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-700) 100%);
    color: var(--color-white);
    border-color: transparent;
}

.break-activity {
    display: none;
}

.break-activity.active {
    display: block;
}

/* ========== WRITING STARTER ENHANCEMENTS ========== */
.writing-starter-display {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.starter-card {
    background: linear-gradient(135deg, rgba(109, 129, 150, 0.1) 0%, rgba(198, 131, 70, 0.1) 100%);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-elevation-2);
    text-align: center;
    max-width: 800px;
}

.starter-type {
    font-size: var(--text-lg);
    color: var(--color-primary-700);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.starter-prompt {
    font-size: var(--text-2xl);
    color: var(--color-charcoal);
    line-height: 1.6;
    font-weight: var(--font-medium);
}

/* ========== RIDDLE AND DISCUSSION ENHANCEMENTS ========== */
.riddle-display,
.discussion-display {
    padding: var(--space-8);
    background: linear-gradient(135deg, rgba(109, 129, 150, 0.05) 0%, rgba(198, 131, 70, 0.05) 100%);
    border-radius: var(--radius-2xl);
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#riddleQuestion,
#discussionStatement {
    font-size: var(--text-2xl);
    color: var(--color-charcoal);
    font-weight: var(--font-semibold);
    line-height: 1.5;
    margin-bottom: var(--space-6);
}

.riddle-answer {
    font-size: var(--text-xl);
    color: var(--color-success-700);
    font-weight: var(--font-semibold);
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: rgba(76, 175, 80, 0.1);
    border-radius: var(--radius-lg);
    border: var(--border-width-2) solid var(--color-success-500);
}

/* ========== WORD OF THE DAY ENHANCEMENTS ========== */
.word-title {
    font-size: 4rem;
    color: var(--color-primary-700);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    text-transform: lowercase;
}

.word-phonetic {
    font-size: var(--text-lg);
    color: var(--color-neutral-600);
    font-style: italic;
    margin-bottom: var(--space-6);
}

.word-definition {
    font-size: var(--text-xl);
    color: var(--color-charcoal);
    line-height: 1.8;
    padding: var(--space-4);
    background: rgba(109, 129, 150, 0.05);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary-500);
}


/* ========== LASSO'S TEACHER TIPS ========== */
.tip-btn {
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--color-charcoal);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 0 rgba(218, 165, 32, 0.8), 0 6px 12px rgba(0, 0, 0, 0.15);
}

.tip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 0 rgba(218, 165, 32, 0.8), 0 8px 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
}

.tip-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 0 0 rgba(218, 165, 32, 0.8), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tip-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    animation: fadeIn 0.3s ease;
}

.tip-modal.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tip-modal-content {
    background: linear-gradient(135deg, #FFFFFF 0%, #F7FAFC 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    max-width: 900px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 4px solid #C68346;
    animation: slideUp 0.3s ease;
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
}

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

.tip-modal-content h3 {
    color: #C68346 !important;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.tip-modal-content p {
    color: #2d3748 !important;
    font-size: var(--text-lg);
    line-height: 1.8;
    margin: 0;
}

/* Simon Says Countdown inside command display */
.simon-countdown {
    font-size: 5em;
    font-weight: bold;
    color: #FF9800;
    text-align: center;
    width: 100%;
    display: block;
}

#simonCommandText {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.command-display {
    min-height: 150px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Simon Says Visual Indicators */
.command-display.simon-says {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
}

.command-display.no-simon {
    background: linear-gradient(135deg, #f44336, #FF9800);
    color: white;
}

.command-display.hard-mode {
    background: #4a5568;
    color: white;
}

/* Exit Fullscreen Button */
.exit-fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.exit-fullscreen-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

/* Fullscreen mode styles */
#simon-says-break:fullscreen,
#simon-says-break:-webkit-full-screen,
#simon-says-break:-moz-full-screen {
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

#simon-says-break:fullscreen h3,
#simon-says-break:-webkit-full-screen h3,
#simon-says-break:-moz-full-screen h3 {
    display: none;
}

#simon-says-break:fullscreen .command-display,
#simon-says-break:-webkit-full-screen .command-display,
#simon-says-break:-moz-full-screen .command-display {
    font-size: 15vw !important;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px !important;
    text-align: center !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    min-height: auto !important;
}

#simon-says-break:fullscreen .simon-countdown,
#simon-says-break:-webkit-full-screen .simon-countdown,
#simon-says-break:-moz-full-screen .simon-countdown {
    font-size: 25vw !important;
    color: #FF9800 !important;
    font-weight: bold !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    margin: 0 !important;
    line-height: 1 !important;
}

#simon-says-break:fullscreen #simonCommandText,
#simon-says-break:-webkit-full-screen #simonCommandText,
#simon-says-break:-moz-full-screen #simonCommandText {
    font-size: 10vw !important;
    font-weight: bold !important;
    color: white !important;
    line-height: 1.2 !important;
}

#simon-says-break:fullscreen .controls,
#simon-says-break:-webkit-full-screen .controls,
#simon-says-break:-moz-full-screen .controls {
    display: flex !important;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

#simon-says-break:fullscreen .controls button,
#simon-says-break:-webkit-full-screen .controls button,
#simon-says-break:-moz-full-screen .controls button {
    font-size: 1.2em;
    padding: 15px 30px;
}

#simon-says-break:fullscreen #simonFullscreen,
#simon-says-break:-webkit-full-screen #simonFullscreen,
#simon-says-break:-moz-full-screen #simonFullscreen {
    display: none;
}

/* ========== DESK YOGA STYLING (SIMON SAYS PATTERN) ========== */

/* Desk Yoga Settings */
.yoga-settings {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.yoga-settings .setting-group {
    flex: 1;
    min-width: 200px;
}

.yoga-settings label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    display: block;
    margin-bottom: 8px;
}

.yoga-settings select {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    background: white;
}

/* Disabled button states for Desk Yoga only */
#desk-yoga-break .btn-primary:disabled,
#desk-yoga-break .btn-secondary:disabled,
#desk-yoga-break button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #a0aec0 !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none;
}

#desk-yoga-break .btn-primary:disabled:hover,
#desk-yoga-break .btn-secondary:disabled:hover,
#desk-yoga-break button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Yoga pose text - centered like Simon Says command text */
#yogaPoseText {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

/* Desk Yoga Fullscreen Mode */
#desk-yoga-break:fullscreen,
#desk-yoga-break:-webkit-full-screen,
#desk-yoga-break:-moz-full-screen {
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

#desk-yoga-break:fullscreen h3,
#desk-yoga-break:-webkit-full-screen h3,
#desk-yoga-break:-moz-full-screen h3 {
    display: none;
}

#desk-yoga-break:fullscreen #yogaPoseDisplay,
#desk-yoga-break:-webkit-full-screen #yogaPoseDisplay,
#desk-yoga-break:-moz-full-screen #yogaPoseDisplay {
    font-size: 15vw !important;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 40px !important;
    text-align: center !important;
    gap: 20px !important;
}

#desk-yoga-break:fullscreen #yogaCountdown,
#desk-yoga-break:-webkit-full-screen #yogaCountdown,
#desk-yoga-break:-moz-full-screen #yogaCountdown {
    font-size: 25vw !important;
    color: #FF9800 !important;
    font-weight: bold !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    margin: 0 !important;
    line-height: 1 !important;
}

#desk-yoga-break:fullscreen #yogaPoseText,
#desk-yoga-break:-webkit-full-screen #yogaPoseText,
#desk-yoga-break:-moz-full-screen #yogaPoseText {
    font-size: 10vw !important;
    font-weight: bold !important;
    color: white !important;
    line-height: 1.2 !important;
}

/* Action header shown above countdown during hold timer */
#desk-yoga-break:fullscreen #yogaActionHeader,
#desk-yoga-break:-webkit-full-screen #yogaActionHeader,
#desk-yoga-break:-moz-full-screen #yogaActionHeader {
    font-size: 6vw !important;
    font-weight: 600 !important;
    color: #90caf9 !important;
    text-align: center !important;
    width: 100% !important;
    order: -1 !important; /* Put it at the top */
    line-height: 1.2 !important;
}

#yogaActionHeader {
    font-size: 1em;
    font-weight: 600;
    color: #64b5f6;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
    display: none;
}

#desk-yoga-break:fullscreen .controls,
#desk-yoga-break:-webkit-full-screen .controls,
#desk-yoga-break:-moz-full-screen .controls {
    display: flex !important;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

#desk-yoga-break:fullscreen .controls button,
#desk-yoga-break:-webkit-full-screen .controls button,
#desk-yoga-break:-moz-full-screen .controls button {
    font-size: 1.2em;
    padding: 15px 30px;
}

#desk-yoga-break:fullscreen #yogaFullscreen,
#desk-yoga-break:-webkit-full-screen #yogaFullscreen,
#desk-yoga-break:-moz-full-screen #yogaFullscreen {
    display: none;
}

/* Force light mode colors for tip modals even in dark mode */
body.dark-mode .tip-modal-content h3 {
    color: #C68346 !important;
}

body.dark-mode .tip-modal-content p {
    color: #2d3748 !important;
}

.tip-close-btn {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: transparent;
    border: none;
    font-size: var(--text-2xl);
    color: var(--color-neutral-400);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.tip-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-charcoal);
    transform: rotate(90deg);
}

.tip-video {
    flex-shrink: 0;
    width: 300px;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(198, 131, 70, 0.3);
}

.tip-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* ========== DAILY WARM-UPS DATE SYSTEM ========== */

/* Calendar Modal Overlay */
.daily-calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.daily-calendar-modal.hidden {
    display: none;
}

/* Calendar Modal Content */
.daily-calendar-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.3s ease;
}

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

.daily-calendar-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: rgba(109, 129, 150, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    cursor: pointer;
    color: var(--color-primary-700);
    transition: var(--transition-base);
}

.daily-calendar-close:hover {
    background: rgba(109, 129, 150, 0.2);
    transform: rotate(90deg);
}

.daily-calendar-content h3 {
    color: var(--color-primary-700);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
    text-align: center;
}

.calendar-subtitle {
    text-align: center;
    color: var(--color-neutral-600);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
}

/* Month Navigation */
.calendar-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
    gap: var(--space-3);
}

.month-nav-btn {
    background: white;
    border: var(--border-width-2) solid var(--color-primary-300);
    border-radius: var(--radius-base);
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
    cursor: pointer;
    transition: var(--transition-base);
    color: var(--color-primary-700);
    display: flex;
    align-items: center;
    justify-content: center;
}

.month-nav-btn:hover {
    background: rgba(109, 129, 150, 0.1);
    transform: scale(1.05);
}

.calendar-month-display {
    flex: 1;
    text-align: center;
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-primary-700);
}

/* Weekday Labels */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.weekday-label {
    text-align: center;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-primary-600);
    padding: var(--space-2);
}

/* Calendar Days Grid */
.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-base);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: var(--transition-base);
    border: var(--border-width-2) solid transparent;
}

.calendar-day.other-month {
    color: var(--color-neutral-400);
    cursor: default;
}

.calendar-day.current-month {
    color: var(--color-charcoal);
    background: white;
    border-color: var(--color-neutral-200);
}

.calendar-day.current-month:hover {
    background: rgba(109, 129, 150, 0.1);
    border-color: var(--color-primary-400);
    transform: scale(1.05);
}

.calendar-day.today {
    background: linear-gradient(135deg, rgba(109, 129, 150, 0.15) 0%, rgba(198, 131, 70, 0.15) 100%);
    border-color: var(--color-primary-500);
    font-weight: var(--font-bold);
}

.calendar-day.selected {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
    color: white;
    font-weight: var(--font-bold);
    border-color: var(--color-primary-700);
}

.calendar-day.selected:hover {
    transform: scale(1.05);
}

/* Calendar Footer */
.calendar-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: var(--border-width-2) solid var(--color-neutral-200);
}

.btn-today {
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-base);
    background: white;
    border: var(--border-width-2) solid var(--color-primary-300);
    color: var(--color-primary-700);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-today:hover {
    background: rgba(109, 129, 150, 0.1);
    transform: translateY(-1px);
}

.premium-note {
    text-align: center;
    color: var(--color-copper);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

/* Date Header for Daily Warm-Ups */
.daily-date-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: linear-gradient(135deg, rgba(109, 129, 150, 0.05) 0%, rgba(198, 131, 70, 0.05) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    border: var(--border-width-2) solid rgba(109, 129, 150, 0.15);
}

.daily-date-display {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-primary-700);
}

.calendar-picker-btn,
.today-btn {
    padding: var(--space-2) var(--space-3);
    border: var(--border-width-2) solid var(--color-primary-300);
    border-radius: var(--radius-base);
    background: white;
    color: var(--color-primary-700);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: var(--transition-base);
}

.calendar-picker-btn:hover,
.today-btn:hover {
    background: rgba(109, 129, 150, 0.1);
    transform: translateY(-1px);
}

.calendar-picker-btn {
    font-size: var(--text-base);
}

/* Past date indicator */
.daily-date-display.past-date {
    color: var(--color-copper);
    font-style: italic;
}

body.dark-mode .daily-date-display.past-date {
    color: var(--color-copper);
}

/* Dark Mode Support */
body.dark-mode .daily-calendar-content {
    background: var(--color-charcoal);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

body.dark-mode .daily-calendar-content h3 {
    color: var(--color-copper);
}

body.dark-mode .calendar-subtitle {
    color: var(--color-neutral-400);
}

body.dark-mode .calendar-month-display {
    color: var(--color-copper);
}

body.dark-mode .month-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(109, 129, 150, 0.3);
    color: var(--color-copper);
}

body.dark-mode .weekday-label {
    color: var(--color-copper);
}

body.dark-mode .calendar-day.current-month {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(109, 129, 150, 0.3);
    color: white;
}

body.dark-mode .calendar-day.current-month:hover {
    background: rgba(109, 129, 150, 0.2);
}

body.dark-mode .calendar-day.today {
    background: linear-gradient(135deg, rgba(109, 129, 150, 0.25) 0%, rgba(198, 131, 70, 0.25) 100%);
    border-color: var(--color-copper);
}

body.dark-mode .calendar-footer {
    border-color: rgba(109, 129, 150, 0.3);
}

body.dark-mode .btn-today {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(109, 129, 150, 0.3);
    color: var(--color-copper);
}

body.dark-mode .daily-date-header {
    background: linear-gradient(135deg, rgba(109, 129, 150, 0.15) 0%, rgba(198, 131, 70, 0.15) 100%);
    border-color: rgba(109, 129, 150, 0.25);
}

body.dark-mode .daily-date-display {
    color: var(--color-copper);
}

body.dark-mode .calendar-picker-btn,
body.dark-mode .today-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(109, 129, 150, 0.3);
    color: var(--color-copper);
}

/* ========== SPELLING TEST CUSTOM WORDS ========== */
.custom-word-input {
    margin: var(--space-5) 0;
    padding: var(--space-5);
    background: rgba(109, 129, 150, 0.05);
    border-radius: var(--radius-lg);
    border: var(--border-width-2) solid var(--color-neutral-200);
}

.custom-word-input h3 {
    color: var(--color-primary-700);
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    font-weight: var(--font-bold);
}

.custom-words-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.custom-words-grid input {
    padding: var(--space-3);
    border: var(--border-width-2) solid var(--color-neutral-300);
    border-radius: var(--radius-base);
    font-size: var(--text-base);
    transition: var(--transition-base);
}

.custom-words-grid input:focus {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: var(--input-focus-ring);
}

/* Loading animation for custom words */
.loading-animation {
    text-align: center;
    padding: var(--space-5);
    margin-top: var(--space-4);
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto var(--space-3);
    border: 4px solid var(--color-neutral-200);
    border-top: 4px solid var(--color-primary-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.words-confirmed {
    text-align: center;
    padding: var(--space-4);
    margin-top: var(--space-4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: var(--border-width-2) solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    color: rgb(5, 150, 105);
    font-weight: var(--font-semibold);
}

/* ========== DRAFTING FEEDBACK STYLES ========== */

/* Drag and Drop Zone */
.file-upload-drop-zone {
    border: 3px dashed var(--color-primary-300);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    background: linear-gradient(135deg, rgba(109, 129, 150, 0.03) 0%, rgba(198, 131, 70, 0.03) 100%);
    cursor: pointer;
    transition: all var(--transition-base);
    margin: var(--space-4) 0;
}

.file-upload-drop-zone:hover {
    border-color: var(--color-primary-500);
    background: linear-gradient(135deg, rgba(109, 129, 150, 0.08) 0%, rgba(198, 131, 70, 0.08) 100%);
    transform: translateY(-2px);
}

.file-upload-drop-zone.drag-over {
    border-color: var(--color-accent-500);
    background: linear-gradient(135deg, rgba(198, 131, 70, 0.15) 0%, rgba(109, 129, 150, 0.15) 100%);
    border-style: solid;
}

.file-input-hidden {
    display: none;
}

.file-upload-icon {
    font-size: 4rem;
    margin-bottom: var(--space-3);
}

.file-upload-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
}

.file-upload-text div {
    font-size: var(--text-lg);
    color: var(--color-primary-700);
}

.select-file-btn {
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-700) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 0 0 rgba(72, 85, 102, 0.8), 0 6px 12px rgba(0, 0, 0, 0.15);
    margin-top: var(--space-2);
}

.select-file-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 0 0 rgba(72, 85, 102, 0.8), 0 8px 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--color-primary-700) 0%, var(--color-primary-800) 100%);
}

.select-file-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 0 rgba(72, 85, 102, 0.8), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.file-upload-instructions {
    color: var(--color-primary-600);
    margin-bottom: var(--space-3);
    font-size: var(--text-base);
}

/* Selected Files List */
.selected-files-list {
    margin: var(--space-4) 0;
    padding: var(--space-4);
    background: rgba(109, 129, 150, 0.05);
    border-radius: var(--radius-base);
    border: var(--border-width-2) solid var(--color-primary-200);
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3);
    margin-bottom: var(--space-2);
    background: white;
    border-radius: var(--radius-base);
    border: var(--border-width-1) solid var(--color-primary-200);
}

.file-item-name {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
    font-weight: var(--font-medium);
    color: var(--color-charcoal);
}

.file-item-remove {
    background: transparent;
    border: none;
    color: #EF4444;
    cursor: pointer;
    padding: var(--space-2);
    font-size: var(--text-lg);
    transition: transform var(--transition-fast);
}

.file-item-remove:hover {
    transform: scale(1.2);
}

/* Batch Progress */
.batch-progress {
    margin-top: var(--space-5);
    padding: var(--space-5);
    background: linear-gradient(135deg, rgba(109, 129, 150, 0.05) 0%, rgba(198, 131, 70, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: var(--border-width-2) solid var(--color-primary-200);
}

.batch-progress-header h4 {
    color: var(--color-primary-700);
    margin-bottom: var(--space-2);
}

.batch-progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(109, 129, 150, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: var(--space-3) 0;
}

.batch-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-secondary-500) 100%);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: var(--font-semibold);
}

.batch-progress-details {
    margin-top: var(--space-3);
}

.batch-progress-item {
    padding: var(--space-2);
    margin-bottom: var(--space-2);
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.batch-progress-item.success {
    background: rgba(16, 185, 129, 0.1);
    color: rgb(5, 150, 105);
}

.batch-progress-item.error {
    background: rgba(239, 68, 68, 0.1);
    color: rgb(153, 27, 27);
}

/* Batch Results */
.batch-feedback-summary {
    padding: var(--space-4);
}

.batch-summary-text {
    font-size: var(--text-lg);
    color: var(--color-primary-700);
    margin-bottom: var(--space-4);
}

.batch-results-list {
    display: grid;
    gap: var(--space-3);
}

.batch-result-item {
    padding: var(--space-4);
    background: white;
    border: var(--border-width-2) solid var(--color-primary-200);
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.batch-result-item-name {
    font-weight: var(--font-semibold);
    color: var(--color-charcoal);
}

.ai-action-btn-primary {
    background: linear-gradient(135deg, var(--color-secondary-500) 0%, var(--color-secondary-600) 100%) !important;
    color: white !important;
    font-weight: var(--font-bold);
}

.ai-action-btn-primary:hover {
    background: linear-gradient(135deg, var(--color-secondary-600) 0%, var(--color-secondary-500) 100%) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevation-3);
}

.drafting-feedback-output {
    line-height: 1.8;
}

.drafting-feedback-output h4 {
    color: var(--color-primary-700);
    font-size: var(--text-xl);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: var(--border-width-2) solid var(--color-primary-200);
    font-weight: var(--font-bold);
}

.drafting-feedback-output h4:first-child {
    margin-top: 0;
}

/* Error highlighting - red background with double brackets */
.error-highlight {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.25) 100%);
    color: #991b1b;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: var(--font-semibold);
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.1);
}

/* Feedback sections styling */
.drafting-feedback-output ul {
    list-style-position: inside;
    padding-left: var(--space-4);
    margin: var(--space-3) 0;
}

.drafting-feedback-output li {
    padding: var(--space-2) 0;
    margin-bottom: var(--space-2);
    color: var(--color-charcoal);
}

.drafting-feedback-output p {
    margin: var(--space-3) 0;
    padding: var(--space-3);
    background: rgba(109, 129, 150, 0.03);
    border-radius: var(--radius-base);
    border-left: 3px solid var(--color-primary-300);
}

/* Emoji section headers */
.drafting-feedback-output h4:has-text("🟢"),
.drafting-feedback-output h4:has-text("🟡"),
.drafting-feedback-output h4:has-text("🔵") {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
