

:root {
    
    --color-fretboard-wood-light: #f8f4e3;
    --color-fretboard-wood-dark: #4a3728;
    --color-fretboard-fret: #C0C0C0;
    --color-fretboard-string-light: #d4d4d4;
    --color-fretboard-string-dark: #aaa;
    --color-fretboard-marker-light: #e6e6e6;
    --color-fretboard-marker-dark: #555;
    --color-notation-position-light: rgb(127 127 127 / 50%);
    --color-notation-position-dark: rgb(127 127 127 / 75%);
    --color-music-dot-normal: #2CDB57;
    --color-music-dot-highlight: #3737FF;
    --color-music-dot-border-light: #000;
    --color-music-dot-border-dark: #fff;

--notation-bg-color: var(--bg-color);
    --notation-text-color: var(--text-color);
    --notation-border-color: var(--light-border);
    --notation-highlight-color: var(--focus-color);

--notation-position-bg: var(--color-notation-position-light);
    --notation-position-width: var(--spacing-sm);

--notation-chord-thumb-text: var(--text-color);
    --notation-chord-thumb-highlight-text: var(--focus-color);
    --notation-chord-thumb-highlight-bg: rgb(0 123 255 / 20%);

--notation-hotspot-bg: var(--color-danger);
    --notation-hotspot-border: var(--color-danger);
    --notation-hotspot-shadow: rgb(0 0 0 / 60%);

--notation-transition-time: var(--transition-speed);
}

[data-theme="dark"] [data-page-type="notation-page"] {
    --notation-bg-color: var(--bg-color);
    --notation-text-color: var(--text-color);
    --notation-border-color: var(--light-border);
    --notation-highlight-color: var(--focus-color);

--notation-position-bg: var(--color-notation-position-dark);

--notation-chord-thumb-text: var(--text-color);
    --notation-chord-thumb-highlight-text: var(--focus-color);
    --notation-chord-thumb-highlight-bg: rgb(255 255 255 / 15%);

--notation-hotspot-bg: var(--color-danger);
    --notation-hotspot-border: var(--color-danger);
    --notation-hotspot-shadow: rgb(0 0 0 / 80%);
}

[data-page-type="notation-page"] {
    color: var(--notation-text-color);
    background-color: var(--notation-bg-color);
    transition: color var(--notation-transition-time) ease,
        background-color var(--notation-transition-time) ease;
}

[data-page-type="notation-page"] #main-container {
    color: var(--notation-text-color);
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

[data-page-type="notation-page"] #metroAndThumbContainer {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    margin: var(--spacing-xs) 0;
    min-height: clamp(45px, 8vw, 60px);
    width: 100%;
    overflow-x: auto;
}

[data-page-type="notation-page"] #metronome-container {
    flex: 0 0 auto;
    margin-right: 0;
}

[data-page-type="notation-page"] #chord-thumbs {
    display: flex;
    flex-direction: column;
    margin: 0 0 0 var(--spacing-sm);
    padding: 0;
    align-self: flex-end;
    flex: 1;
    min-height: 0;
}

[data-page-type="notation-page"] .chord-thumb-row {
    display: inline-flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    margin-bottom: var(--spacing-xs);

min-height: clamp(30px, 6vw, 40px);
}

[data-page-type="notation-page"] #chord-thumbs>div {
    position: relative;
    min-width: clamp(25px, 5vw, 35px);
    margin-right: var(--spacing-xs);
    display: inline-block;
    text-align: left;
    background-color: transparent;
    transition: background-color var(--notation-transition-time) ease,
        color var(--notation-transition-time) ease;
}

[data-page-type="notation-page"] #chord-thumbs>div[data-clickable="true"] {
    cursor: pointer;
}

[data-page-type="notation-page"] #chord-thumbs>div:not([data-highlighted]) {
    background-color: transparent;
}

[data-page-type="notation-page"] #chord-thumbs>div[data-highlighted] {
    background-color: var(--notation-chord-thumb-highlight-bg);
}

.chord-thumb-name {
    color: var(--notation-chord-thumb-text);

font-size: clamp(10px, 2.5vw, 12px);
    white-space: nowrap;
    transition: color 0.3s ease;
    text-align: left;
    
    padding-left: 2px;
}

.chord-thumb-name.chord-name-active {
    font-weight: bold;
    color: var(--notation-chord-thumb-highlight-text);
}

.chord-thumb-number {
    color: var(--color-danger);
    font-size: var(--font-size-xs);
    position: absolute;
    top: 2px;
    left: 2px;
    line-height: 1;
}

.notation-main-content {

width: 90%;
}

@media (width >= 960px) {
    .notation-main-content {
        width: 60%;
    }
}

[data-page-type="notation-page"] #chord-thumbs::-webkit-scrollbar,
[data-page-type="notation-page"] .chord-thumb-row::-webkit-scrollbar {
    height: 4px;
}

[data-page-type="notation-page"] #chord-thumbs::-webkit-scrollbar-thumb,
[data-page-type="notation-page"] .chord-thumb-row::-webkit-scrollbar-thumb {
    background-color: var(--notation-border-color);
    border-radius: var(--border-radius-sm);
}

[data-page-type="notation-page"] #notationDiv {
    position: relative;
    margin: var(--spacing-sm) 0;
    max-width: 100%;
    overflow-x: auto;
    background-color: var(--notation-bg-color);
    opacity: 1;
    image-rendering: auto;
}

[data-page-type="notation-page"] #measureSlotsDiv {
    background-color: var(--notation-bg-color);
    opacity: 1;
    max-width: 100%;
    position: relative;
}

[data-page-type="notation-page"] [id^="measure-container-"] {
    background-color: var(--notation-bg-color);
    opacity: 1;
    position: relative;
}

.notation-blank-measure {
    background-color: var(--notation-bg-color);
}

.notation-display-image {
    
    background-color: #fff;
    opacity: 0.9;
}

.fretboard-zoom-controls {
    margin-top: var(--spacing-sm);
    text-align: center;
}

[data-page-type="notation-page"] #measureSlotsDiv>div>div {
    position: relative;
    opacity: 1;
    image-rendering: auto;
}

[data-theme="dark"] [data-page-type="notation-page"] #notationDiv img:not([data-native-dark="true"], [data-no-invert="true"]) {
    filter: invert(0.9) hue-rotate(180deg) brightness(0.9) contrast(1.2);
    
    background-color: #fff;
    opacity: 1;
}

[data-theme="dark"] [data-page-type="notation-page"] #measureSlotsDiv {
    background-color: var(--notation-bg-color);
}

[data-theme="dark"] [data-page-type="notation-page"] #measureSlotsDiv [id^="measure-container-"] {
    background-color: var(--notation-bg-color);
}

[data-theme="dark"] [data-page-type="notation-page"] {
    background-color: var(--notation-bg-color);
}

[data-theme="dark"] [data-page-type="notation-page"] img:not([data-native-dark="true"], [data-no-invert="true"]) {
    
    background-color: #fff;
    filter: invert(0.9) hue-rotate(180deg) brightness(0.9) contrast(1.2);
}

[data-theme="dark"] [data-page-type="notation-page"] #notationDiv {
    background-color: var(--notation-bg-color);
}

[data-theme="dark"] [data-page-type="notation-page"] #measureSlotsDiv {
    background-color: var(--notation-bg-color);
}

[data-theme="dark"] [data-page-type="notation-page"] #metroAndThumbContainer {
    background-color: var(--notation-bg-color);
}

[data-page-type="notation-page"] #notationPositionDiv {
    position: absolute;
    width: var(--notation-position-width);
    background-color: var(--notation-position-bg);
    z-index: var(--z-overlay);
    opacity: 1;
    transition: left 0.1s ease, top 0.1s ease, height 0.1s ease;
    border-radius: var(--border-radius-sm);
    pointer-events: none;
    display: block;
}

[data-page-type="notation-page"] button:focus-visible,
[data-page-type="notation-page"] #chord-thumbs>span:focus-visible {
    outline: 2px solid var(--notation-highlight-color);
    outline-offset: 2px;
}

.notation-error {
    padding: var(--spacing-md);
    margin: var(--spacing-md);
    background-color: var(--color-danger-light);
    border: 1px solid var(--color-danger);
    border-radius: var(--border-radius-sm);
    color: var(--color-danger);
}

.notation-error h3 {
    margin-top: 0;
    color: var(--color-danger);
}

@media (width <= 400px) {
    [data-page-type="notation-page"] #notationDiv,
    [data-page-type="notation-page"] #measureSlotsDiv,
    [data-page-type="notation-page"] [id^="measure-container-"] {
        margin: 0;
        padding: 0;
    }

    [data-page-type="notation-page"] #metroAndThumbContainer {
        min-height: 40px;
    }

    [data-page-type="notation-page"] .chord-thumb-row {
        min-height: 25px;
    }
}

:root {

--button-height: clamp(50px, 4vw, 80px);
    --button-font-size: clamp(14px, 2.5vw, 16px);

--container-max-width: 800px;
}

.game-button {
    
    height: var(--button-height); 
    font-size: var(--button-font-size); 
}

.game-button--correct {
    background-color: var(--color-success) !important;

color: #fff !important;
    animation: game-button-pulse-correct 0.3s ease;
}

.game-button--incorrect {
    background-color: var(--color-danger) !important;

color: #fff !important;
    animation: game-button-pulse-incorrect 0.3s ease;
}

.game-button--disabled {
    opacity: 0.7 !important;
    pointer-events: none;
}

.note-button {
    font-family: monospace;

letter-spacing: 0.5px;
}

.number-button {
    font-weight: 600;

}

.labeled-button {
    font-size: calc(var(--button-font-size) * 0.9);

text-align: center;
}

.game-button-container {
    max-width: var(--container-max-width);
    width: 100%;
    margin: var(--spacing-lg) auto;
}

.note-buttons-container {
    max-width: var(--container-max-width);
    width: auto;
    margin: 0;
    min-width: 400px;
    min-height: 120px;
}

.note-keys {
    width: 100%;
    min-width: 400px;

display: flex;
    flex-direction: column;
    align-items: center;

}

.note-buttons-accidental-row {
    position: relative;
    height: var(--button-height);
    margin-bottom: var(--spacing-md);
    width: 100%;
    min-width: 400px;
    max-width: var(--container-max-width);

}

.note-buttons-natural-row {
    position: relative;
    height: var(--button-height);
    width: 100%;
    min-width: 400px;
    max-width: var(--container-max-width);

}

.number-buttons-container {
    max-width: var(--container-max-width);
    width: auto;
    margin: var(--spacing-lg) auto;
    min-width: 400px;
}

.number-buttons-row {
    position: relative;
    height: var(--button-height);
    width: 100%;
    min-width: 400px;
}

.labeled-buttons-container {
    max-width: var(--container-max-width);
    width: auto;
    margin: var(--spacing-lg) auto;
    min-width: 400px;
}

.labeled-buttons-top-row {
    position: relative;
    height: var(--button-height);
    margin-bottom: var(--spacing-sm);
    width: 100%;
    min-width: 400px;
}

.labeled-buttons-bottom-row {
    position: relative;
    height: var(--button-height);
    margin-bottom: 0;
    width: 100%;
    min-width: 400px;
}

@media (width <= 768px) {
    :root {
        --button-font-size: 14px;
        --button-height: clamp(40px, 3.5vw, 60px);
    }

.note-buttons-container,
    .note-keys,
    .note-buttons-accidental-row,
    .note-buttons-natural-row {
        min-width: 320px;
    }

    .note-keys {
        
        margin-top: -0.5rem;
    }
}

@media (width <= 480px) {
    :root {
        --button-font-size: 12px;
        --button-height: clamp(35px, 3vw, 50px);
    }

    .note-buttons-container,
    .note-keys,
    .note-buttons-accidental-row,
    .note-buttons-natural-row {
        min-width: 280px;
    }
}

:root {
    
    --fretboard-bg-color: var(--color-fretboard-wood-light);
    --fretboard-fretboard-color: var(--color-fretboard-wood-dark);
    --fretboard-fret-color: var(--color-fretboard-fret);
    --fretboard-string-color: var(--color-fretboard-string-light);
    --fretboard-marker-color: var(--color-fretboard-marker-light);
    --fretboard-text-color: var(--text-color);

--fretboard-dot-normal-color: var(--color-music-dot-normal);
    --fretboard-dot-highlight-color: var(--color-music-dot-highlight);
    --fretboard-dot-border-color: var(--color-music-dot-border-light);

--fretboard-correct-color: var(--color-success);
    --fretboard-incorrect-color: var(--color-danger);

--game-control-height: 40px;
    --game-control-margin: 10px;
    --game-score-font-weight: bold;
    --game-message-min-height: 20px;
}

[data-theme="dark"] {
    
    --color-fretboard-wood-light: #2c2c2c;
    --color-fretboard-wood-dark: #1a1a1a;
    --color-fretboard-fret: #888;

--fretboard-bg-color: var(--color-fretboard-wood-light);
    --fretboard-fretboard-color: var(--color-fretboard-wood-dark);
    --fretboard-fret-color: var(--color-fretboard-fret);
    --fretboard-string-color: var(--color-fretboard-string-dark);
    --fretboard-marker-color: var(--color-fretboard-marker-dark);

--fretboard-text-color: #333;

--fretboard-dot-normal-color: var(--color-music-dot-normal);
    --fretboard-dot-highlight-color: var(--color-music-dot-highlight);
    --fretboard-dot-border-color: var(--color-music-dot-border-dark);

--fretboard-correct-color: var(--color-success);
    --fretboard-incorrect-color: var(--color-danger);
}

[data-page-type="fretboard-page"] {
    color: var(--fretboard-text-color);
    transition: color 0.3s ease;
}

.fretboard-svg {
    background-color: var(--fretboard-bg-color);

transition: background-color 0.3s ease, width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#fretboard-container {
    position: relative;
}

#gameControlDiv {
    position: relative;
    margin-top: var(--game-control-margin);
    height: var(--game-control-height);
}

#remainingDiv {
    position: absolute;
    left: 10px;
    top: 0;
}

#replayDiv {
    position: absolute;
    left: 150px;
    top: 5px;
    font-weight: var(--game-score-font-weight);
    color: var(--fretboard-incorrect-color);
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.fretboard-error,
.skills-page-error {
    padding: var(--spacing-md);
    margin: var(--spacing-md);
    background-color: var(--color-error-bg, #fee);
    border: 1px solid var(--color-error-border, #faa);
    border-radius: var(--border-radius);
    color: var(--color-error-text, #c00);
}

#scoreDiv {
    position: absolute;
    left: 35px;
    top: 20px;
    font-weight: var(--game-score-font-weight);
}

#scoreMessageDiv {
    position: relative;
    left: 10px;
    top: 0;
    min-height: var(--game-message-min-height);
    transition: color 0.3s ease;
}

@media (width >= 800px) {
    #scoreMessageDiv {
        width: 60%;
    }
}

@media (width <= 799px) {
    #scoreMessageDiv {
        width: 90%;
    }
}

#scoreMessageDiv.score-correct {
    color: var(--fretboard-correct-color);
}

#scoreMessageDiv.score-incorrect {
    color: var(--fretboard-incorrect-color);
}

[data-page-type="fretboard-page"] .note-button.feedback-correct,
[data-page-type="fretboard-page"] .labeled-button.feedback-correct,
[data-page-type="fretboard-page"] .number-button.feedback-correct {
    background-color: var(--fretboard-correct-color) !important;
}

[data-page-type="fretboard-page"] .note-button.feedback-incorrect,
[data-page-type="fretboard-page"] .labeled-button.feedback-incorrect,
[data-page-type="fretboard-page"] .number-button.feedback-incorrect {
    background-color: var(--fretboard-incorrect-color) !important;
}

[data-page-type="fretboard-page"] .number-buttons-container,
[data-page-type="fretboard-page"] .labeled-buttons-container {
    border-radius: var(--border-radius-sm);
    box-shadow: 2px 2px 6px rgb(0 0 0 / 60%);
    background-color: var(--fretboard-bg-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;

}

@keyframes game-button-pulse-correct {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 3px rgb(40 167 69 / 40%);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes game-button-pulse-incorrect {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.02) rotate(-1deg);
    }

    75% {
        transform: scale(1.02) rotate(1deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

@media (width <= 400px) {
    .number-buttons-row,
    .labeled-buttons-top-row,
    .labeled-buttons-bottom-row {
        
    }

    .game-button {
        flex: 1 0 auto;

}
}

.notation-admin-container {
    margin: var(--spacing-sm) 0; 
    max-width: 100%;
    width: auto;
    position: relative; 
}

.notation-admin-image {
    max-width: 100%;
    width: auto;
    height: auto;
    opacity: 0.9;
}

.notation-flex-container {
    display: flex;
    justify-content: left;
    width: 100%;
    position: relative;
    margin: 0 auto;
}

.notation-hotspot-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
}

.notation-hotspot {
    position: absolute;
    left: var(--hotspot-left, 0);
    top: var(--hotspot-top, 0);
    width: max(5px, 0.625vw);
    height: max(5px, 0.625vw);
    border-radius: max(5px, 0.625vw);
    background-color: var(--notation-hotspot-bg, red);
    border: 2px solid var(--notation-hotspot-border, red);
    box-shadow: 2px 2px 6px var(--notation-hotspot-shadow, rgb(0 0 0 / 60%));
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.notation-hotspot:hover,
.notation-hotspot:focus-visible {
    transform: translate(-50%, -50%) scale(1.2);
}

.notation-hotspot:focus-visible {
    box-shadow: 0 0 0 3px var(--notation-highlight-color, #007bff);
    outline: none;
}

.notation-measure-slot {
    transition: background-position 0.2s ease;
}

.notation-measure-slot--playing {
    transition: none;
}

.notation-container-positioned {
    position: relative;
}

.notation-image-responsive {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    opacity: 1;
    image-rendering: auto;
}

.notation-admin-position-div {
    position: absolute;
    width: 12px;
    background-color: var(--color-neutral);
    opacity: 0.4;
}

.notation-admin-position-bar {
    position: absolute;
    width: 12px;
    background-color: var(--color-neutral);
    opacity: 0.4;
}

.notation-admin-highlighted-cell {
    position: absolute;
    
    background-color: #90ee90; 
}

.metronome {
    --metronome-text-color: var(--notation-text-color, var(--text-color));
    --metronome-highlight-color: var(--notation-highlight-color, var(--focus-color));
    --metronome-bg-color: var(--notation-bg-color, var(--bg-color));
    --metronome-border-color: var(--notation-border-color, var(--light-border));
    --metronome-spacing: var(--spacing-sm);
    --metronome-transition: var(--transition-speed) ease;
    
    position: relative;
    font-family: system-ui, sans-serif;
    color: var(--metronome-text-color);
    background-color: var(--metronome-bg-color);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--metronome-border-color);
    box-shadow: 0 2px 4px rgb(0 0 0 / 5%);
    width: auto;
    cursor: pointer;
    transition: background-color var(--metronome-transition),
                color var(--metronome-transition),
                border-color var(--metronome-transition),
                box-shadow var(--metronome-transition);
}

.metronome-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
    padding: var(--metronome-spacing);
    transition: transform var(--metronome-transition);
    width: clamp(70px, 15vw, 90px);
    min-width: 70px;
    max-width: 90px;
}

.metronome-container:hover {
    transform: scale(1.02);
}

.metronome-shoe-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    position: relative;
}

.metronome-shoe {
    width: auto;
    height: 100%;
    max-height: 40px;
    object-fit: contain;
    transition: opacity var(--metronome-transition);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
}

.metronome-shoe[data-state="hidden"] {
    opacity: 0;
    pointer-events: none;
}

.metronome-text {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--metronome-transition);
}

.metronome-beat {
    font-size: var(--font-size-md);
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
    font-variant-numeric: tabular-nums;
}

.metronome-measure {
    font-size: var(--font-size-sm);
    font-family: 'Roboto Mono', monospace;
    font-variant-numeric: tabular-nums;
}

.metronome-tempo {
    font-size: var(--font-size-xs);
    color: var(--metronome-highlight-color);
    margin-top: var(--spacing-xs);
}

.metronome-loop {
    font-size: var(--font-size-xs);
    opacity: 0.9;
}

.metronome-small .metronome-container {
    width: clamp(60px, 12vw, 70px);
    min-width: 60px;
    max-width: 70px;
    padding: var(--spacing-xs);
}

.metronome-small .metronome-shoe-container {
    height: clamp(25px, 6vw, 30px);
}

.metronome-small .metronome-shoe {
    max-height: clamp(25px, 6vw, 30px);
}

.metronome-small .metronome-beat {
    font-size: var(--font-size-sm);
}

.metronome-small .metronome-measure {
    font-size: var(--font-size-xs);
}

.metronome-small .metronome-loop {
    font-size: var(--font-size-xs);
}

.metronome-small .metronome-tempo {
    font-size: var(--font-size-xs);
}

.metronome:focus-visible {
    outline: 2px solid var(--metronome-highlight-color);
    outline-offset: 2px;
}

.metronome[data-playing="true"] .metronome-beat {
    animation: none !important;
}

.fretboard-game-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, 
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.fretboard-game-breadcrumb {
    
    margin-bottom: 1rem;
    
    padding: 0.75rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    line-height: 1.4;
    color: var(--color-neutral);
}

.fretboard-game-breadcrumb a {
    color: var(--focus-color);
    text-decoration: none;
}

.fretboard-game-breadcrumb a:hover {
    text-decoration: underline;
}

.fretboard-game-header {
    
    margin-bottom: 1rem;
}

.fretboard-game-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    
    margin: 0 0 0.5rem;
    color: var(--text-color);
}

[data-theme="dark"] .fretboard-game-container {
    
}

@media (width <= 576px) {
    .fretboard-game-title {
        
        font-size: 1.1rem;
    }
}

:root {
    
    --hotspot-bg-color: var(--bg-color);
    --hotspot-text-color: var(--text-color);
    --hotspot-heading-color: var(--text-color);
    --hotspot-border-color: var(--light-border);
    --hotspot-link-color: var(--link-color);
    --hotspot-link-hover-color: var(--button-primary-hover);

--hotspot-image-bg: var(--bg-color);
    --hotspot-image-border: var(--light-border);

--hotspot-container-shadow: 0 2px 10px rgb(0 0 0 / 5%);

--hotspot-transition-time: var(--transition-speed);
}

[data-theme="dark"] [data-page-type="hotspot-page"] {
    --hotspot-bg-color: var(--bg-color);
    --hotspot-text-color: var(--text-color);
    --hotspot-heading-color: var(--text-color);
    --hotspot-border-color: var(--light-border);
    --hotspot-link-color: var(--link-color);
    --hotspot-link-hover-color: var(--button-primary-hover);

--hotspot-image-bg: #fff; 
    --hotspot-image-border: var(--light-border);

--hotspot-container-shadow: 0 2px 10px rgb(0 0 0 / 20%);
}

[data-page-type="hotspot-page"] {
    color: var(--hotspot-text-color);
    background-color: var(--hotspot-bg-color);
    transition: color var(--hotspot-transition-time) ease,
                background-color var(--hotspot-transition-time) ease;
}

.hotspot-page-container {
    margin: var(--spacing-lg) auto;
    max-width: 800px;
    padding: var(--spacing-lg);
    background-color: var(--hotspot-bg-color);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--hotspot-border-color);
    box-shadow: var(--hotspot-container-shadow);
    transition: background-color var(--hotspot-transition-time) ease,
                color var(--hotspot-transition-time) ease,
                border-color var(--hotspot-transition-time) ease,
                box-shadow var(--hotspot-transition-time) ease;
}

.hotspot-page-title {
    color: var(--hotspot-heading-color);
    margin-top: 0;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--hotspot-border-color);
    transition: color var(--hotspot-transition-time) ease,
                border-color var(--hotspot-transition-time) ease;
    font-size: var(--font-size-lg);
}

.hotspot-page-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.hotspot-page-images {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.hotspot-page-image-wrapper {
    background-color: var(--hotspot-image-bg);
    border: 1px solid var(--hotspot-image-border);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    max-width: 100%;
    transition: border-color var(--hotspot-transition-time) ease;
}

.hotspot-page-image {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none !important; 
}

img[data-no-invert="true"] {
    filter: none !important;
}

.image-error-message {
    padding: var(--spacing-lg);
    color: var(--color-danger);
    text-align: center;
}

.hotspot-page-text {
    color: var(--hotspot-text-color);
    line-height: 1.6;
    transition: color var(--hotspot-transition-time) ease;
}

.hotspot-page-text ul,
.hotspot-page-text ol {
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.hotspot-page-text li {
    margin-bottom: var(--spacing-xs);
}

.hotspot-page-text a {
    color: var(--hotspot-link-color);
    text-decoration: none;
    transition: color var(--hotspot-transition-time) ease;
}

.hotspot-page-text a:hover {
    text-decoration: underline;
    color: var(--hotspot-link-hover-color);
}

.hotspot-page-error {
    background-color: var(--color-danger-light);
    color: var(--color-danger);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-danger);
    margin: var(--spacing-lg) auto;
    max-width: 800px;
}

[data-theme="dark"] .hotspot-page-error {
    background-color: var(--color-danger-light);
    color: var(--color-danger);
    border-color: var(--color-danger);
}

@media (width <= 600px) {
    .hotspot-page-container {
        padding: var(--spacing-md);
        margin: var(--spacing-sm);
    }
    
    .hotspot-page-images {
        flex-direction: column;
        align-items: center;
    }
}

@media (width <= 768px) {
    .number-buttons-container,
    .labeled-buttons-container {
        --button-height: 2rem;
        --button-font-size: 0.8rem;
    }

    .number-button,
    .labeled-button {
        
        padding: 0.25rem 0.5rem;
    }
}

@media (width <= 576px) {
    .number-buttons-container,
    .labeled-buttons-container {
        --button-height: 1.8rem;
        --button-font-size: 0.7rem;
    }

    .number-button,
    .labeled-button {
        
        padding: 0.25rem;
    }
}

.btn-game {
    position: absolute;
    min-width: clamp(40px, 8vw, 80px);
    min-height: clamp(32px, 6vw, 44px);
    padding: var(--spacing-xs);
    font-size: clamp(12px, 2.5vw, 14px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: var(--border-radius-md);
    background: var(--button-primary);
    
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-game:hover {
    background: var(--button-primary-hover);
    transform: translateY(-1px);
}

.btn-game:active {
    transform: translateY(1px);
}

.btn-game:disabled {
    background: var(--button-disabled);
    cursor: not-allowed;
    transform: none;
}

@media (hover: none) and (pointer: coarse) {
    .btn-game {
        min-height: 44px; 
        min-width: 44px;
    }

    .btn-game:active {
        transform: scale(0.95);
        background: var(--button-primary-hover);
    }
}

[data-theme="dark"] img[data-fretboard-notation="true"] {
    filter: invert(0.9) hue-rotate(180deg) brightness(0.9) contrast(1.2) !important;
}

.skills-page-overall-row {
    margin: clamp(8px, 2vw, 10px) clamp(4px, 1vw, 5px) clamp(12px, 3vw, 15px);
    padding: clamp(6px, 1.5vw, 8px) clamp(12px, 3vw, 15px) clamp(10px, 2.5vw, 12px);
    border-radius: var(--border-radius-lg);
    background-color: var(--light-bg);
    border: 1px solid var(--light-border);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

[data-theme="dark"] .skills-page-overall-row {
    background-color: var(--header-bg);
    border-color: var(--light-border);
}

.skills-page-overall-title-row {
    font-weight: bold;
    font-size: clamp(var(--font-size-md), 2.5vw, 1.1rem);
}

.skills-page-overall-progress-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.skills-page-overall-progress-row .progress-bar {
    height: 20px;
    margin: 0;
    flex: 1;
    max-width: 200px;
    background-color: var(--bg-color);
}

.skills-page-score-text {
    margin: 0;
    min-width: 35px;
    font-size: var(--font-size-sm);
}

.skills-page-link {
    margin-right: calc(var(--spacing-sm) * 1.5);
}

.skills-table {

width: 100%;
}

[data-theme="dark"] .skills-table th {
    background-color: var(--header-bg);
    border-bottom-color: var(--light-border);
}

.skills-table th:hover {
    background-color: var(--toggle-bg);
}

[data-theme="dark"] .skills-table th:hover {
    background-color: var(--hover-bg);
}

.skills-table td {
    
    vertical-align: middle;
}

[data-theme="dark"] .skills-table td {
    border-bottom-color: var(--light-border);
}

.skill-title {
    cursor: pointer;
    color: var(--focus-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.skill-title:hover {
    color: var(--text-color);
}

.goal-star {
    
}

.goal-star-empty {
    
}

@media (width <= 600px) {      
    .skills-page-overall-title-row {
        font-size: var(--font-size-md);
    }
    
    .skills-page-overall-progress-row .progress-bar {
        width: 50%;
    }

.skills-table thead {
        display: none;
    }

.skills-table,
    .skills-table tbody {
        display: block;
        width: 100%;
    }

.skills-table tr {
        
    }
    
    [data-theme="dark"] .skills-table tr {
        box-shadow: 0 2px 4px rgb(255 255 255 / 10%);
    }

.skills-table td {
        border: none;
        padding: 0;
    }

.skills-table td:nth-child(2) {
        width: calc(100% - 50px); 
        order: 1;
        font-size: clamp(16px, 4vw, 18px);
        font-weight: bold;
        margin-bottom: clamp(8px, 2vw, 10px);
        padding-right: clamp(8px, 2vw, 10px);
    }

    .skills-table td:nth-child(4) {
        order: 2;
        width: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .skills-table td:nth-child(4) .goal-star {
        font-size: clamp(1.5rem, 4vw, 1.75rem);
    }

.skills-table td:nth-child(1) {
        order: 3;
        width: 65%;
        display: flex;
        align-items: center;
    }
    
    .skills-table td:nth-child(1) .progress-bar {
        width: calc(100% - 40px); 
        min-width: 100px;
    }
    
    .skills-table td:nth-child(1) .progress-text {
        margin-left: var(--spacing-xs);
        min-width: 30px;
        text-align: right;
    }
    
    .skills-table td:nth-child(3) {
        order: 4;
        width: 35%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    
    .skills-table td:nth-child(3) .skills-page-link {
        margin: 0;
        font-size: var(--font-size-sm);
    }
}

.testout-toggle-songlist {
    justify-content: flex-start; 
    padding: 0;
    margin: var(--spacing-sm) 0;

}

.testout-toggle-songlist .testout-toggle-label {
    font-size: var(--font-size-sm);
    opacity: 0.8; 
}   

.songlist-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius);
}

.songlist-table {
    
    width: 100%; 
    min-width: 600px; 
}

.sort-buttons {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.sort-buttons label:not(.control-label) {
    font-weight: 600;
    margin-right: var(--spacing-md);
    color: var(--text-color);
}

.sort-buttons button {
    background-color: var(--light-bg);
    border: 1px solid var(--light-border);
    padding: var(--spacing-sm) clamp(10px, 2.5vw, 12px);
    margin-right: clamp(8px, 2vw, 10px);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

[data-theme="dark"] .sort-buttons button {
    background-color: var(--header-bg);
    border-color: var(--light-border);
}

.sort-buttons button:hover {
    background-color: var(--toggle-bg);
}

[data-theme="dark"] .sort-buttons button:hover {
    background-color: var(--hover-bg);
}

.sort-buttons button.active {
    background-color: var(--focus-color);
    
    color: #fff;
    border-color: var(--focus-color);
}

.songlist-table th {
    
}

.songlist-table th[data-sort="artist"] {
    width: 4vw; 
}

[data-theme="dark"] .songlist-table th {
    background-color: var(--header-bg);
    border-bottom-color: var(--light-border);
}

.songlist-table th:hover {
    background-color: var(--toggle-bg);
}

[data-theme="dark"] .songlist-table th:hover {
    background-color: var(--color-neutral-dark);
}

.songlist-table td {
    
    vertical-align: middle;
}

[data-theme="dark"] .songlist-table td {
    border-bottom-color: var(--light-border);
}

.difficulty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    padding: 5px clamp(8px, 2vw, 10px);
    border-radius: var(--border-radius-lg);
    font-size: clamp(10px, 2vw, 12px);
    font-weight: bold;
    text-transform: uppercase;
}

.difficulty-easy {
    background-color: var(--color-success);
    
    color: #fff;
}

.difficulty-medium {
    background-color: var(--color-warning);
    
    color: #000;
}

.difficulty-hard {
    background-color: var(--color-danger);
    
    color: #fff;
}

.song-title {
    cursor: pointer;
    color: var(--focus-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.song-title:hover {
    color: var(--text-color);
}

.video-links {
    display: flex;
    gap: clamp(8px, 2vw, 10px);
    align-items: center;
    min-height: 22px;
}

@media (width <= 768px) {
    .songlist-table {
        font-size: var(--font-size-sm);
        table-layout: fixed;
        width: 100%;
    }

.songlist-table th,
    .songlist-table td {
        padding: var(--spacing-sm) var(--spacing-xs);
        vertical-align: top;
        min-width: 0;
    }

.songlist-table th[data-sort="artist"] {
        width: 12vw; 
    }

.songlist-table th:nth-child(1),
    .songlist-table td:nth-child(1) {
        width: 15vw;
        min-width: 80px;
    }

.songlist-table th:nth-child(6),
    .songlist-table td:nth-child(6) {
        width: 15vw;
        min-width: 70px;
    }

.video-links {
        flex-direction: column;
        gap: var(--spacing-xs);
        align-items: flex-start;
    }

.video-links a {
        font-size: var(--font-size-xs);
        line-height: 1.2;
    }

.songlist-table-wrapper {
        overflow-x: auto;
        border: 1px solid var(--light-border);
        border-radius: var(--border-radius);
    }

.songlist-table td:nth-child(2),
    .songlist-table td:nth-child(3) {
        overflow-wrap: break-word;
        white-space: normal;
        overflow: hidden;
        line-height: 1.2;
    }
}

@media (width <= 600px) {
    
    .songlist-table-wrapper {
        overflow-x: visible;
        border: none;
        border-radius: 0;
    }

.songlist-table thead {
        display: none;
    }

.songlist-table,
    .songlist-table tbody {
        display: block;
        width: 100%;
        min-width: 0; 
    }

.songlist-table tr {
        
        margin-bottom: clamp(16px, 4vw, 20px); 
    }
    
    [data-theme="dark"] .songlist-table tr {
        box-shadow: 0 2px 4px rgb(255 255 255 / 10%);
    }

.songlist-table td {
        border: none;
        padding: var(--spacing-xs) 0;
    }

.songlist-table td:nth-child(2) {
        width: 100%;
        order: 1;
        font-size: clamp(16px, 4vw, 18px);
        font-weight: bold;
        margin-bottom: var(--spacing-xs);
        
        padding-right: 40px; 
    }

.songlist-table td:nth-child(3) {
        width: 100%;
        order: 2;
        font-size: clamp(14px, 3.5vw, 16px);
        color: var(--text-color);
        margin-bottom: var(--spacing-sm);
    }

.songlist-table td:nth-child(4) {
        order: 3;
        padding-right: clamp(8px, 2vw, 10px);
        display: flex;
        align-items: center;
    }

.songlist-table td:nth-child(1) {
        order: 4;
        display: flex;
        align-items: center;
        flex: 1;
    }

.songlist-table .progress-bar {
        width: calc(100% - 40px); 
        min-width: 60px;
        height: 10px;
        margin: 0;
        display: inline-block;
        vertical-align: middle;
    }
    
    .songlist-table .progress-bar-fill {
        height: 10px;
    }
    
    .songlist-table .progress-text {
        margin-left: var(--spacing-xs);
        min-width: 30px;
        text-align: right;
    }

.songlist-table td:nth-child(6) {
        width: 100%;
        order: 5;
        margin-top: var(--spacing-sm);
    }

.songlist-table td:nth-child(5) {
        position: absolute;
        top: clamp(10px, 2.5vw, 12px);
        right: clamp(10px, 2.5vw, 12px);
        order: 0;
        padding: 0;
    }

    .songlist-table td:nth-child(5) .goal-star {
        font-size: clamp(1.5rem, 4vw, 1.75rem);
    }
}

.hotspot-footer {
    padding: var(--spacing-md) 0 0 0;
    margin-top: var(--spacing-md);
    border-top: 1px solid var(--light-border);
    text-align: center;
    flex-shrink: 0;
}

.play-options-body {
    padding: var(--spacing-xs);
}

.play-options-section {
    margin-bottom: var(--spacing-md);
}

.play-options-section:last-child {
    margin-bottom: 0;
}

.play-options-section label,
.play-options-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-color);
}

.play-options-radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xs);
}

.play-options-radio {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    margin-bottom: 0;
}

.play-options-radio input[type="radio"] {
    margin: 0;
    margin-right: var(--spacing-xs);
    vertical-align: middle;
    flex-shrink: 0;
}

.play-options-radio span {
    font-weight: normal;
    vertical-align: middle;
    line-height: 1.2;
}

.tempo-control {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.tempo-target-info {
    font-size: var(--font-size-xs);
    color: var(--list-marker-color);
    margin-top: var(--spacing-xs);
}

.play-options-checkbox {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    font-weight: normal;
    margin: var(--spacing-xxs) 0;
}

.play-options-checkbox input[type="checkbox"] {
    margin: 0;
    vertical-align: middle;
    flex-shrink: 0;
}

.play-options-checkbox span {
    font-weight: normal;
    vertical-align: middle;
    line-height: 1.2;
}

.play-options-loop-control {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
}

.play-options-loop-count {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.play-options-loop-count.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.play-options-loop-count input {
    width: 50px;
    
    padding: 6px var(--spacing-xs);
    text-align: center;
    margin: var(--spacing-xxs);

}

@media (width <= 480px) {
    .play-options-section label,
    .play-options-label {
        font-size: var(--font-size-sm);
    }
    
    .play-options-checkbox span,
    .play-options-radio span {
        font-size: var(--font-size-sm);
    }
}

.goals-header {
    
    margin: 0.5rem 0;
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    
    gap: 0.5rem;
}

.goals-title {
    font-size: var(--font-size-lg);
    font-weight: bold;
    color: var(--text-color);
    margin: 0;
}

.goals-link {
    color: var(--focus-color);
    text-decoration: none;
    
    margin-right: 0.75rem;
}

.goals-link:hover {
    text-decoration: underline;
}

.goals-settings {
    background-color: rgb(0 0 0 / 3%);
    border-radius: var(--border-radius-lg);
    
    padding: 1rem;
    
    margin-bottom: 1rem;
    border: 1px solid rgb(0 0 0 / 10%);
}

[data-theme="dark"] .goals-settings {
    background-color: rgb(255 255 255 / 5%);
    border-color: rgb(255 255 255 / 10%);
}

.goals-settings-title {
    font-weight: bold;
    
    margin-bottom: 0.5rem;
}

.goals-settings-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    
    margin-bottom: 0.5rem;
    
    gap: 0.5rem;
}

.goals-settings-label {
    
    margin-right: 0.5rem;
}

.goals-dropdown {
    
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgb(0 0 0 / 20%);
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
}

[data-theme="dark"] .goals-dropdown {
    border-color: rgb(255 255 255 / 20%);
}

.goals-checkbox {
    
    margin-right: 0.5rem;
    accent-color: var(--focus-color);
}

.goals-dashboard {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-color);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
    overflow: hidden;
}

[data-theme="dark"] .goals-dashboard {
    box-shadow: 0 4px 6px rgb(0 0 0 / 30%);
}

.goal-progress-overview {
    
    margin-bottom: 1rem;
    
    padding: 1rem;
    background-color: rgb(0 0 0 / 3%);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgb(0 0 0 / 10%);
}

[data-theme="dark"] .goal-progress-overview {
    background-color: rgb(255 255 255 / 5%);
    border-color: rgb(255 255 255 / 10%);
}

.goal-progress-bar-container {
    height: 24px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    
    margin: 0.5rem 0;
    display: flex;
    border: 1px solid rgb(0 0 0 / 10%);
}

[data-theme="dark"] .goal-progress-bar-container {
    border-color: rgb(255 255 255 / 10%);
}

.goal-progress-bar-container .goal-progress-segment {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    
    color: #fff;
    
    font-size: 0.8rem;
    font-weight: bold;
    transition: width 0.3s ease;
}

.goals-segment-green {
    background-color: var(--color-success);
}

.goals-segment-yellow {
    background-color: var(--color-warning);
    color: rgb(0 0 0 / 80%);
}

.goals-segment-red {
    background-color: var(--color-danger);
}

.goals-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgb(0 0 0 / 10%);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .goals-table {
    border-color: rgb(255 255 255 / 10%);
}

.goals-table thead th {
    text-align: left;
    padding: var(--spacing-md);
    background-color: rgb(0 0 0 / 3%);
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    
    font-size: 0.85em;
    border-bottom: 2px solid rgb(0 0 0 / 10%);
}

[data-theme="dark"] .goals-table thead th {
    background-color: rgb(255 255 255 / 5%);
    border-color: rgb(255 255 255 / 10%);
}

.goals-table tbody tr {
    border-bottom: 1px solid rgb(0 0 0 / 10%);
}

[data-theme="dark"] .goals-table tbody tr {
    border-color: rgb(255 255 255 / 10%);
}

.goals-table tbody tr:last-child {
    border-bottom: none;
}

.goals-table td {
    
    padding: 12px 15px;
}

.goals-table tr:hover {
    background-color: rgb(0 0 0 / 3%);
}

[data-theme="dark"] .goals-table tr:hover {
    background-color: rgb(255 255 255 / 3%);
}

.goals-title-link {
    color: var(--focus-color);
    text-decoration: none;
    cursor: pointer;
}

.goals-title-link:hover {
    text-decoration: underline;
}

.goals-status-indicator {
    display: flex;
    align-items: center;
    
    gap: 0.5rem;
}

.goals-action-link {
    color: var(--focus-color);
    text-decoration: none;
    cursor: pointer;
}

.goals-action-link:hover {
    text-decoration: underline;
}

.goal-details-panel {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgb(0 0 0 / 10%);
    
    padding: 1.5rem;
    
    margin-top: 1rem;
    border: 1px solid rgb(0 0 0 / 10%);
    position: relative;
}

[data-theme="dark"] .goal-details-panel {
    border-color: rgb(255 255 255 / 10%);
    box-shadow: 0 4px 15px rgb(0 0 0 / 30%);
}

.goal-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    margin-bottom: 1rem;
    gap: var(--spacing-xs);
}

.goal-details-title {
    font-size: var(--font-size-lg);
    font-weight: bold;
    margin: 0;
    
    padding-right: 2rem;
}

.goal-settings-form {
    
    margin-bottom: 1.5rem;
}

.goal-settings-row {
    display: flex;
    align-items: center;
    
    margin-bottom: 1rem;
    flex-wrap: wrap;
    
    gap: 0.5rem;
}

.goal-numeric-input {
    width: 80px;
    
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgb(0 0 0 / 20%);
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .goal-numeric-input {
    border-color: rgb(255 255 255 / 20%);
}

.chart-container {
    display: flex;
    flex-wrap: wrap;
    
    gap: 1rem;
    
    margin-top: 1rem;
    width: 100%;
    max-width: 800px;
    background-color: var(--chart-container-bg, var(--bg-color));
    color: var(--chart-container-text, var(--text-color));
    transition: background-color 0.3s ease;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
    padding: var(--spacing-sm);
}

.chart-wrapper {
    flex: 1 1 300px;
    min-height: 250px;
    border: 1px solid rgb(0 0 0 / 10%);
    border-radius: var(--border-radius-lg);
    
    padding: 0.5rem;
    background-color: var(--bg-color);
}

[data-theme="dark"] .chart-wrapper {
    border-color: rgb(255 255 255 / 10%);
}

.goals-button {
    
    padding: 0.5rem 1rem;
    background-color: var(--focus-color);
    
    color: #fff;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.goals-button:hover {
    opacity: 0.9;
}

.goals-button-secondary {
    background-color: transparent;
    border: 1px solid var(--focus-color);
    color: var(--focus-color);
}

.goals-button-secondary:hover {
    background-color: rgb(77 144 254 / 10%);
}

[data-theme="dark"] .goals-button-secondary:hover {
    background-color: rgb(93 159 255 / 10%);
}

.goals-button-danger {
    background-color: var(--color-danger);
}

.goals-actions {
    display: flex;
    justify-content: flex-end;
    
    gap: 0.5rem;
    
    margin-top: 1rem;
}

.goals-empty-message {
    
    padding: 2rem;
    text-align: center;
    color: var(--text-color);
    font-style: italic;
}

.goals-notifications {
    
    margin-top: 1rem;
    
    padding: 1rem;
    background-color: rgb(0 0 0 / 3%);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgb(0 0 0 / 10%);
}

[data-theme="dark"] .goals-notifications {
    background-color: rgb(255 255 255 / 5%);
    border-color: rgb(255 255 255 / 10%);
}

.goals-notifications-title {
    font-weight: bold;
    
    margin-bottom: 0.5rem;
}

.chart-empty-message {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-style: italic;
    font-size: var(--font-size-md);
    color: var(--text-color);
    opacity: 0.7;
    text-align: center;
    padding: var(--spacing-lg);
}

@media (width <= 768px) {
    .goals-table th:nth-child(2),
    .goals-table td:nth-child(2) {
        display: none;
    }

    .goals-settings-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .goal-settings-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (width <= 576px) {
    .goals-table th:nth-child(2),
    .goals-table td:nth-child(2),
    .goals-table th:nth-child(3),
    .goals-table td:nth-child(3) {
        display: none;
    }

    .goals-table td {
        
        padding: 10px;
    }

    .goal-details-title {
        
        font-size: 1rem;
    }
}

