* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Icon Button Style (matches mono smallButton) */
#help-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 36px;
    height: 36px;
    background: transparent;
    color: #B0B0B0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    z-index: 100;
    transition: all 0.15s;
}

#help-btn:hover {
    background: #3A3A3A;
    color: #FFFFFF;
}

#coffee-btn {
    position: fixed;
    top: 15px;
    left: 60px;
    width: 36px;
    height: 36px;
    background: transparent;
    color: #B0B0B0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    z-index: 100;
    transition: all 0.15s;
}

#coffee-btn:hover {
    background: #3A3A3A;
    color: #FFFFFF;
}

/* Settings Button - hidden by default, shown on mobile */
#settings-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 105px;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    color: #B0B0B0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: all 0.15s;
    align-items: center;
    justify-content: center;
}

#settings-btn svg {
    width: 20px;
    height: 20px;
}

#settings-btn:hover {
    background: #3A3A3A;
    color: #FFFFFF;
}

/* Stats Button - hidden by default, shown on mobile */
#stats-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 150px;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    color: #B0B0B0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: all 0.15s;
    align-items: center;
    justify-content: center;
}

#stats-btn svg {
    width: 20px;
    height: 20px;
}

#stats-btn:hover {
    background: #3A3A3A;
    color: #FFFFFF;
}

/* Settings Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #252525;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #404040;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #FFFFFF;
}

.modal-close {
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    color: #B0B0B0;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: #3A3A3A;
    color: #FFFFFF;
}

.modal-body {
    padding: 15px 20px;
}

.modal-body .setting-group {
    padding: 10px 0;
    border-bottom: 1px solid #353535;
}

.modal-body .setting-group:last-child {
    border-bottom: none;
}

/* Mobile stat items */
.mobile-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #353535;
}

.mobile-stat-item:last-of-type {
    border-bottom: none;
}

.mobile-stat-label {
    font-size: 14px;
    color: #B0B0B0;
}

.mobile-stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #FFFFFF;
}

.modal-action-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: #353535;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.modal-action-btn:hover {
    background: #454545;
}

body.light-theme .mobile-stat-item {
    border-bottom-color: #e0e0e0;
}

body.light-theme .mobile-stat-label {
    color: #666;
}

body.light-theme .mobile-stat-value {
    color: #333;
}

body.light-theme .modal-action-btn {
    background: #e0e0e0;
    color: #333;
}

body.light-theme .modal-action-btn:hover {
    background: #d0d0d0;
}

/* Theme Button Style (matches mono smallButton) */
#theme-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: transparent;
    color: #B0B0B0;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.15s;
    font-family: 'Segoe UI Symbol', 'Arial', sans-serif;
    -webkit-text-fill-color: currentColor;
}

#theme-btn:hover {
    background: #3A3A3A;
    color: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #252525;
    color: #FFFFFF;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#app {
    width: 100%;
    max-width: 1300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Main Layout */
#main-layout {
    display: flex;
    gap: 15px;
}

#center-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Side Panels Container */
#side-panels {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

/* Small Button Style (matches mono smallButton) */
#clear-stats-btn {
    font-size: 14px;
    padding: 6px 10px;
    background: transparent;
    color: #B0B0B0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

#clear-stats-btn:hover {
    background: #3A3A3A;
    color: #FFFFFF;
}

/* Misses Panel */
#misses-panel,
#slowest-panel {
    width: 150px;
    padding: 12px;
}

.panel-title {
    font-size: 14px;
    font-weight: bold;
    color: #B0B0B0;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.panel-empty {
    font-size: 13px;
    color: #606060;
    font-style: italic;
}

.miss-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 14px;
    color: #B0B0B0;
    border-bottom: 1px solid #404040;
}

.miss-item:last-child {
    border-bottom: none;
}

.miss-count {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: bold;
}

.time-badge {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: bold;
}

/* Settings Panel */
#settings-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    padding: 15px;
}

.setting-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-group label {
    font-size: 14px;
    color: #B0B0B0;
}

select {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background: #353535;
    color: #FFFFFF;
    font-size: 14px;
    cursor: pointer;
}

select:hover {
    background: #3A3A3A;
}

/* General Button Style (matches mono generalButton) */
button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #FFFFFF;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

button:hover {
    background: #3A3A3A;
}

button:active {
    background: #3A3A3A;
}

/* Toggle Switch */
.toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 36px;
    height: 20px;
    background: #505050;
    border-radius: 10px;
    position: relative;
    transition: background 0.2s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
}

.toggle input:checked + .toggle-slider {
    background: #808080;
}

.toggle input:checked + .toggle-slider::after {
    transform: translateX(16px);
}

.toggle-label {
    font-size: 14px;
    color: #B0B0B0;
}

/* Score Strip */
#score-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 12px;
}

.score-item {
    display: flex;
    gap: 8px;
}

.score-item .label {
    color: #B0B0B0;
}

#correct-count {
    color: #FFFFFF;
    font-weight: bold;
}

#wrong-count {
    color: #FFFFFF;
    font-weight: bold;
}

#accuracy {
    color: #FFFFFF;
    font-weight: bold;
}

#streak {
    color: #FFFFFF;
    font-weight: bold;
}

/* General Button Style applied to New Session */
#new-session-btn {
    padding: 6px 12px;
    font-size: 14px;
    background: transparent;
    color: #B0B0B0;
}

#new-session-btn:hover {
    background: #3A3A3A;
    color: #FFFFFF;
}

/* Staff Container */
#staff-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: transparent;
    border-radius: 8px;
    min-height: 180px;
    position: relative;
}

/* VexFlow SVG theming - dark theme (white notes) */
#staff svg path,
#staff svg rect {
    stroke: #FFFFFF;
    fill: #FFFFFF;
}

#staff svg text {
    fill: #FFFFFF;
}

#staff-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 5px;
    min-height: 30px;
}

#timer {
    font-size: 20px;
    font-weight: bold;
    color: #B0B0B0;
}

#start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 8px;
}

#start-overlay.hidden {
    display: none;
}

/* Pause Button Style (matches mono smallButton) */
#pause-toggle-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pause-toggle-btn svg {
    width: 20px;
    height: 20px;
}

#pause-toggle-btn:hover {
    background: #3A3A3A;
}

#pause-toggle-btn:active {
    background: #454545;
}

#pause-toggle-btn.hidden {
    display: none;
}

/* Play Button (follows mono smallButton style) */
#start-btn {
    width: 80px;
    height: 80px;
    padding: 0;
    background: transparent;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#start-btn svg {
    width: 40px;
    height: 40px;
    margin-left: 3px;
}

#start-btn:hover {
    background: #3A3A3A;
}

#start-btn:active {
    background: #454545;
}

#staff {
    width: 100%;
    display: flex;
    justify-content: center;
}

#note-label {
    font-size: 24px;
    font-weight: bold;
    color: #FFFFFF;
    visibility: hidden;
}

#note-label.visible {
    visibility: visible;
}

/* Feedback Overlay */
#feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    font-weight: bold;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

#feedback.correct {
    color: #4CAF50;
    opacity: 1;
}

#feedback.wrong {
    color: #F44336;
    opacity: 1;
}

#feedback.hidden {
    opacity: 0;
}

/* Keyboard Container */
#keyboard-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

#keyboard {
    display: flex;
    position: relative;
    height: 180px;
}

/* Piano Keys */
.white-key {
    width: 50px;
    height: 180px;
    background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
    border: 1px solid #999;
    border-radius: 0 0 5px 5px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: background 0.1s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 8px;
}

.white-key:hover {
    background: linear-gradient(to bottom, #fff, #f0f0f0);
}

.white-key:active, .white-key.pressed {
    background: linear-gradient(to bottom, #ddd, #ccc);
}

.white-key.correct {
    background: linear-gradient(to bottom, #4CAF50, #388E3C) !important;
}

.white-key.wrong {
    background: linear-gradient(to bottom, #F44336, #D32F2F) !important;
}

.black-key {
    width: 30px;
    height: 110px;
    background: linear-gradient(to bottom, #333, #111);
    border-radius: 0 0 4px 4px;
    cursor: pointer;
    position: absolute;
    z-index: 2;
    transition: background 0.1s;
}

.black-key:hover {
    background: linear-gradient(to bottom, #444, #222);
}

.black-key:active, .black-key.pressed {
    background: linear-gradient(to bottom, #222, #000);
    height: 105px;
}

.black-key.correct {
    background: linear-gradient(to bottom, #388E3C, #2E7D32) !important;
}

.black-key.wrong {
    background: linear-gradient(to bottom, #D32F2F, #C62828) !important;
}

.key-label {
    font-size: 11px;
    color: #666;
    user-select: none;
}

.black-key .key-label {
    color: #888;
    position: absolute;
    bottom: 5px;
    width: 100%;
    text-align: center;
}

/* Keyboard Hints */
#keyboard-hints {
    text-align: center;
    font-size: 12px;
    color: #666;
    padding: 8px;
}

/* Responsive */
@media (max-width: 800px) {
    .white-key {
        width: 40px;
        height: 150px;
    }

    .black-key {
        width: 25px;
        height: 90px;
    }

    #settings-panel {
        justify-content: center;
    }
}

/* Mobile styles */
@media (max-width: 600px) {
    body {
        align-items: flex-start;
    }

    #app {
        padding: 10px;
        gap: 10px;
    }

    /* Hide side panels on mobile */
    #side-panels {
        display: none;
    }

    /* Stack layout vertically */
    #main-layout {
        flex-direction: column;
        gap: 10px;
    }

    /* Settings panel - horizontal scroll */
    #settings-panel {
        padding: 10px;
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .setting-group {
        flex-shrink: 0;
    }

    /* Score strip */
    #score-strip {
        flex-wrap: wrap;
        gap: 10px 20px;
        padding: 10px;
    }

    /* Staff container */
    #staff-container {
        padding: 15px 10px;
        min-height: 150px;
    }

    #start-btn {
        width: 60px;
        height: 60px;
    }

    #start-btn svg {
        width: 28px;
        height: 28px;
    }

    #note-label {
        font-size: 18px;
    }

    #timer {
        font-size: 16px;
    }

    /* Keyboard - smaller keys for mobile */
    #keyboard-container {
        padding: 10px 5px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #keyboard {
        height: 120px;
    }

    .white-key {
        width: 32px;
        height: 120px;
        padding-bottom: 5px;
    }

    .black-key {
        width: 22px;
        height: 72px;
    }

    .key-label {
        font-size: 9px;
    }

    /* Hide keyboard hints on mobile */
    #keyboard-hints {
        display: none;
    }

    /* Fixed buttons - adjust positions */
    #help-btn {
        top: 10px;
        left: 10px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    #coffee-btn {
        top: 10px;
        left: 50px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    #theme-btn {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    /* Pause button */
    #pause-toggle-btn {
        width: 32px;
        height: 32px;
    }

    #pause-toggle-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Rotate Phone Overlay - hidden by default */
#rotate-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #252525;
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    overflow: hidden;
}

.rotate-icon {
    font-size: 64px;
    color: #B0B0B0;
    flex-shrink: 0;
    line-height: 1;
}

.rotate-text {
    font-size: 18px;
    color: #B0B0B0;
    text-align: center;
    padding: 0 20px;
}

/* Show rotate overlay on mobile portrait only */
@media (max-width: 600px) and (orientation: portrait) {
    #rotate-overlay {
        display: flex;
    }

    #app,
    #help-btn,
    #coffee-btn,
    #theme-btn {
        display: none !important;
    }
}

/* Mobile landscape - fit entire page to screen, no scrolling */
/* Using 700px to account for various mobile devices and browser UI */
@media (max-height: 700px) and (orientation: landscape) {
    html, body {
        overflow: hidden;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile browsers */
        max-height: 100vh;
        max-height: 100dvh;
    }

    body {
        align-items: stretch;
    }

    #app {
        padding: 0;
        gap: 0;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        overflow: hidden;
        justify-content: flex-start;
    }

    /* Hide side panels, settings panel, and score strip in mobile landscape */
    #side-panels,
    #settings-panel,
    #score-strip {
        display: none;
    }

    /* Left side buttons (vertical): settings, stats */
    #settings-btn {
        display: flex;
        top: 8px;
        left: 8px;
        width: 36px;
        height: 36px;
    }

    #settings-btn svg {
        width: 20px;
        height: 20px;
    }

    #stats-btn {
        display: flex;
        top: 52px;
        left: 8px;
        width: 36px;
        height: 36px;
    }

    #stats-btn svg {
        width: 20px;
        height: 20px;
    }

    #main-layout {
        flex: 0 0 auto;
        gap: 0;
        overflow: visible;
    }

    #center-content {
        gap: 0;
        overflow: visible;
    }

    #score-strip {
        padding: 0;
        gap: 10px;
    }

    #staff-container {
        padding: 5px 0 15px 0;
        flex: 0 0 auto;
        overflow: visible;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    #staff-footer {
        display: none;
    }

    #keyboard-container {
        padding: 0 10px;
        overflow: visible;
        flex: 0 0 auto;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        width: 100%;
    }

    #keyboard {
        height: 80px;
    }

    /* Size keys to fit: 21 white keys must fit viewport */
    .white-key {
        width: calc((100vw - 20px) / 21);
        height: 100%;
        padding-bottom: 2px;
    }

    .black-key {
        width: calc((100vw - 20px) / 35);
        height: 60%;
    }

    .key-label {
        font-size: 7px;
    }

    /* Right side buttons (vertical): help, coffee, theme */
    #help-btn,
    #coffee-btn,
    #theme-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        left: auto;
        right: 8px;
    }

    #help-btn {
        top: 8px;
    }

    #coffee-btn {
        top: 52px;
    }

    #theme-btn {
        top: 96px;
    }

    #keyboard-hints {
        display: none;
    }

    #start-btn {
        width: 40px;
        height: 40px;
    }

    #start-btn svg {
        width: 20px;
        height: 20px;
    }

    #pause-toggle-btn {
        position: fixed;
        width: 36px;
        height: 36px;
        top: 96px;
        left: 8px;
        right: auto;
    }

    #pause-toggle-btn svg {
        width: 20px;
        height: 20px;
    }

    #timer {
        font-size: 12px;
    }

    #note-label {
        font-size: 14px;
    }

    .setting-group label {
        font-size: 11px;
    }

    select {
        padding: 3px 6px;
        font-size: 11px;
    }

    .toggle-slider {
        width: 28px;
        height: 16px;
    }

    .toggle-slider::after {
        width: 10px;
        height: 10px;
    }

    .toggle input:checked + .toggle-slider::after {
        transform: translateX(12px);
    }

    .toggle-label {
        font-size: 11px;
    }

    .score-item {
        font-size: 12px;
        gap: 4px;
    }

    #new-session-btn {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* Light theme rotate overlay */
body.light-theme #rotate-overlay {
    background: #f5f5f5;
}

body.light-theme .rotate-text {
    color: #666;
}

body.light-theme .rotate-icon {
    color: #666;
}

body.light-theme #settings-btn {
    color: #666;
}

body.light-theme #settings-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
}

body.light-theme #stats-btn {
    color: #666;
}

body.light-theme #stats-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
}

body.light-theme .modal {
    background: rgba(0, 0, 0, 0.5);
}

body.light-theme .modal-content {
    background: #f5f5f5;
}

body.light-theme .modal-header {
    border-bottom-color: #d0d0d0;
}

body.light-theme .modal-title {
    color: #333;
}

body.light-theme .modal-close {
    color: #666;
}

body.light-theme .modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
}

body.light-theme .modal-body .setting-group {
    border-bottom-color: #e0e0e0;
}

/* Extra small screens */
@media (max-width: 400px) {
    .white-key {
        width: 28px;
        height: 100px;
    }

    .black-key {
        width: 18px;
        height: 60px;
    }

    #keyboard {
        height: 100px;
    }

    .key-label {
        font-size: 8px;
    }

    #score-strip {
        gap: 8px 15px;
        font-size: 13px;
    }

    .setting-group label {
        font-size: 12px;
    }

    select {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* Light Theme */
body.light-theme {
    background: #f5f5f5;
    color: #333;
}


body.light-theme select {
    background: #e0e0e0;
    color: #333;
}

body.light-theme select:hover {
    background: #d0d0d0;
}

/* Light theme buttons follow same transparent pattern */
body.light-theme button {
    background: transparent;
    color: #333;
}

body.light-theme button:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Light theme play button (Start) */
body.light-theme #start-btn {
    background: transparent;
    color: #333;
}

body.light-theme #start-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

body.light-theme #start-btn:active {
    background: rgba(0, 0, 0, 0.12);
}

body.light-theme .score-item .label {
    color: #666;
}

body.light-theme #keyboard-hints {
    color: #666;
}

body.light-theme .miss-item {
    border-bottom-color: #d0d0d0;
}

body.light-theme #clear-stats-btn {
    background: transparent;
    color: #666;
}

body.light-theme #clear-stats-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
}

body.light-theme #help-btn {
    background: transparent;
    color: #666;
}

body.light-theme #help-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
}

body.light-theme #theme-btn {
    background: transparent;
    color: #666;
}

body.light-theme #theme-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
}

body.light-theme #new-session-btn {
    background: transparent;
    color: #666;
}

body.light-theme #new-session-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
}

body.light-theme #correct-count,
body.light-theme #wrong-count,
body.light-theme #accuracy,
body.light-theme #streak {
    color: #333;
}

/* Light theme text colors */
body.light-theme .setting-group label {
    color: #555;
}

body.light-theme .toggle-label {
    color: #555;
}

body.light-theme .panel-title {
    color: #555;
}

body.light-theme .panel-empty {
    color: #888;
}

body.light-theme .miss-item {
    color: #666;
    border-bottom-color: #d0d0d0;
}

body.light-theme .miss-count,
body.light-theme .time-badge {
    color: #333;
}

/* Light theme VexFlow SVG (black notes) */
body.light-theme #staff svg path,
body.light-theme #staff svg rect {
    stroke: #333;
    fill: #333;
}

body.light-theme #staff svg text {
    fill: #333;
}

body.light-theme #note-label {
    color: #333;
}

body.light-theme #timer {
    color: #666;
}

body.light-theme #pause-toggle-btn {
    color: #333;
}

body.light-theme #pause-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Light theme toggle switches */
body.light-theme .toggle-slider {
    background: #d0d0d0;
}

body.light-theme .toggle-slider::after {
    background: #fff;
}

body.light-theme .toggle input:checked + .toggle-slider {
    background: #888;
}
