@import url("https://fonts.googleapis.com/css2?family=Cascadia+Mono:wght@400;500;700&display=swap");
body {
    font-family: "Cascadia Mono", sans-serif !important;
}
/* Custom scrollbar for search results */
.results-container::-webkit-scrollbar {
    width: 6px;
}
.results-container::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 3px;
}
.results-container::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 3px;
}
.results-container::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}
/* Ensure dropdown doesn't exceed viewport on mobile */
@media (max-width: 768px) {
    .results-container {
        max-width: calc(100vw - 2rem);
        left: -1rem;
        right: -1rem;
    }
}

/* Chord Styles */
pre {
    font-family: "Cascadia Mono", "Courier New", monospace !important;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Specific styling for chord area */
#chord-area {
    font-family: "Cascadia Mono", "Courier New", monospace !important;
    /* Ensure backdrop blur affects chord area */
    backdrop-filter: inherit;
    -webkit-backdrop-filter: inherit;
}

/* Override pre tag font inside chord area */
#chord-area pre {
    font-family: "Cascadia Mono", "Courier New", monospace !important;
    /* Ensure backdrop blur affects pre elements */
    backdrop-filter: inherit;
    -webkit-backdrop-filter: inherit;
}

/* Override any nested font styling in chord content */
#chord-area * {
    font-family: "Cascadia Mono", "Courier New", monospace !important;
    /* Ensure backdrop blur affects all nested elements */
    backdrop-filter: inherit;
    -webkit-backdrop-filter: inherit;
}

/* Override external CSS file styling */
.chord-container {
    font-family: "Cascadia Mono", "Courier New", monospace !important;
}

.chord-link {
    font-family: "Cascadia Mono", "Courier New", monospace !important;
}

.lyrics-content {
    font-family: "Cascadia Mono", "Courier New", monospace !important;
}

.chord {
    font-weight: 700;
    color: #e5e7eb;
}

/* Chord span tooltip elements */
.chord-span {
    /* Ensure backdrop blur affects chord span tooltips */
    backdrop-filter: inherit !important;
    -webkit-backdrop-filter: inherit !important;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: #4b5563;
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    margin-top: -6px;
    width: 16px;
    height: 16px;
    background: #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
}

/* Chord Tooltip Styles */
.chord-link {
    outline: none;
    cursor: help;
    position: relative;
    text-decoration: none;
    color: #dc2626;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 0 2px rgba(220, 38, 38, 0.3);
    /* Ensure backdrop blur affects chord links */
    backdrop-filter: inherit;
    -webkit-backdrop-filter: inherit;
}

.chord-link:hover {
    color: #ef4444;
    text-shadow: 0 0 4px rgba(239, 68, 68, 0.5);
}

.chord-link span {
    margin-left: -999em;
    position: absolute;
    color: #000;
    /* Ensure backdrop blur affects tooltip spans */
    backdrop-filter: inherit;
    -webkit-backdrop-filter: inherit;
}

.chord-link:hover span {
    position: absolute;
    left: 1em;
    top: 2em;
    z-index: 999;
    margin-left: 0;
    width: 70px;
    height: 88px;
    border-radius: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    animation: chordGlow 0.3s ease-in-out;
    /* Ensure backdrop blur affects visible tooltips */
    backdrop-filter: inherit;
    -webkit-backdrop-filter: inherit;
}

@keyframes chordGlow {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }
}

/* Specific chord backgrounds */
.chord-A { background: url("/img/chords/A-chord.jpg"); }
.chord-B { background: url("/img/chords/B.1.gif"); }
.chord-C { background: url("/img/chords/C-chord.jpg"); }
.chord-D { background: url("/img/chords/d-chord.jpg"); }
.chord-E { background: url("/img/chords/E-Chord.jpg"); }
.chord-F { background: url("/img/chords/F-chord.jpg"); }
.chord-G { background: url("/img/chords/G-chord.jpg"); }
.chord-Bm { background: url("/img/chords/b-minor-chord01.gif"); }
.chord-Cm { background: url("/img/chords/c-minor-chord01.gif"); }
.chord-Dm { background: url("/img/chords/d-minor-chord01.gif"); }
.chord-Em { background: url("/img/chords/e-minor-chord01.gif"); }
.chord-Fm { background: url("/img/chords/f-minor-chord01.gif"); }
.chord-Gm { background: url("/img/chords/g-minor-chord01.gif"); }
.chord-Am { background: url("/img/chords/Am-chord.gif"); }
.chord-Bb { background: url("/img/chords/Bb-chord.jpg"); }
.chord-Ccis { background: url("/img/chords/C_.png"); }
.chord-Dcis { background: url("/img/chords/D-CIS.jpg"); }
.chord-Fcis { background: url("/img/chords/Fcis-chord.jpg"); }
.chord-Gcis { background: url("/img/chords/gciss.jpg"); }
.chord-Acis { background: url("/img/chords/Acis-chord.jpg"); }
.chord-Bbm { background: url("/img/chords/bbm-chord.jpg"); }
.chord-Ccism { background: url("/img/chords/Ccism-chord.jpg"); }
.chord-Dcism { background: url("/img/chords/D_m.png"); }
.chord-Fcism { background: url("/img/chords/F_m.png"); }
.chord-Gcism { background: url("/img/chords/G_m.png"); }
.chord-Acism { background: url("/img/chords/Acism-chord.png"); }
.chord-A7 { background: url("/img/chords/general.jpg"); }
.chord-B7 { background: url("/img/chords/Btujuh-Basic.png"); }
.chord-C7 { background: url("/img/chords/Ctujuh-Chord.jpg"); }
.chord-D7 { background: url("/img/chords/Dtujuh-Basic.png"); }
.chord-E7 { background: url("/img/chords/Etujuh-Chord.jpg"); }
.chord-F7 { background: url("/img/chords/Ftujuh-Chord.jpg"); }
.chord-G7 { background: url("/img/chords/Gtujuh-Chord.jpg"); }
.chord-GB { background: url("/img/chords/GB-Chord.jpg"); }

/* Responsive chord tooltips */
@media (max-width: 768px) {
    .chord-container {
        font-size: 14px;
        padding: 16px;
    }
    .chord-link:hover span {
        width: 60px;
        height: 75px;
    }
}

/* Mobile breadcrumb improvements */
@media (max-width: 480px) {
    .breadcrumb-mobile-compact {
        font-size: 12px;
    }
    .breadcrumb-mobile-compact .truncate {
        max-width: 80px !important;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .breadcrumb-mobile-compact .truncate {
        max-width: 60px !important;
    }
}

/* Search Modal Styles */
#search-modal {
    backdrop-filter: blur(4px);
}

#search-modal .results-container {
    scrollbar-width: thin;
    scrollbar-color: #4b5563 #1f2937;
}

#search-modal .results-container::-webkit-scrollbar {
    width: 6px;
}

#search-modal .results-container::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 3px;
}

#search-modal .results-container::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 3px;
}

#search-modal .results-container::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Search Modal Responsive */
@media (max-width: 640px) {
    #search-modal .max-w-2xl {
        max-width: 95vw !important;
        margin: 0 2.5vw;
    }

    #search-modal .results-container {
        max-height: 60vh !important;
    }
}
