
:root {
    --deep-ocean: #0A1929;
    --ocean-dark: #071423;
    --ocean-blue: #1E3A5F;
    --navy-blue: #0D2847;
    --crisp-blue: #2D5AA0;
    --highlight-blue: #3A7BC8;
    --electric-blue: #00BFFF;
    --seafoam: #2EC4B6;
    --crisp-white: #FFFFFF;
    --off-white: #F0F8FF;
    --light-gray: #E6F0FF;
    --medium-gray: #8FA3BF;
    --dark-gray: #4A5F7A;
    --shadow-blue: rgba(10, 25, 41, 0.8);
    --glow-blue: rgba(45, 90, 160, 0.4);
    
    --transition-crisp: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --shadow-crisp: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-deep: 0 4px 20px rgba(0, 0, 0, 0.6);
    --shadow-float: 0 8px 32px rgba(0, 0, 0, 0.8);
    --border-crisp: 2px solid var(--crisp-blue);
    --border-light: 1px solid rgba(45, 90, 160, 0.3);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        linear-gradient(135deg, var(--deep-ocean) 0%, var(--ocean-dark) 100%),
        url('/theory/chords/backg.png');
    background-repeat: repeat;
    background-size: 500px;
    background-blend-mode: overlay;
    color: var(--crisp-white);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(10, 25, 41, 0.1) 2px,
            rgba(10, 25, 41, 0.1) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(10, 25, 41, 0.1) 2px,
            rgba(10, 25, 41, 0.1) 4px
        );
    pointer-events: none;
    z-index: 1;
}

.chords-main {
    padding-top: 80px;
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

/* Hero Section */
.chords-hero {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--ocean-blue) 100%);
    padding: 4rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: var(--border-crisp);
    box-shadow: var(--shadow-deep);
    z-index: 2;
}

.chords-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            transparent 0%, 
            rgba(45, 90, 160, 0.1) 50%, 
            transparent 100%);
}

.chords-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--crisp-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

.chords-hero p {
    font-size: 1.2rem;
    color: var(--off-white);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

/* Controls Section */
.chords-controls {
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.control-group {
    background: linear-gradient(145deg, var(--navy-blue), var(--ocean-blue));
    border: var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        var(--shadow-crisp);
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.control-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--electric-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.control-group:hover::before {
    opacity: 1;
}

.control-group:hover {
    border-color: var(--crisp-blue);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 8px 32px rgba(45, 90, 160, 0.4);
    transform: translateY(-2px);
}

.control-group h3 {
    color: var(--crisp-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
}

/* Search & Input - FIXED Z-INDEX */
.chord-search-container {
    position: relative;
}

#chord-search {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(10, 25, 41, 0.8);
    border: var(--border-light);
    border-radius: var(--radius-md);
    color: var(--crisp-white);
    font-size: 1rem;
    transition: var(--transition-crisp);
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

#chord-search:focus {
    outline: none;
    border: var(--border-crisp);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(45, 90, 160, 0.3);
    background: rgba(14, 32, 52, 0.9);
}

/* FIXED: Search suggestions z-index */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: linear-gradient(145deg, var(--navy-blue), var(--ocean-blue));
    border: var(--border-crisp);
    border-radius: var(--radius-md);
    z-index: 9999 !important; /* High z-index to ensure it's on top */
    display: none;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-float);
    backdrop-filter: blur(20px);
    animation: slideDown 0.2s ease-out;
}

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

.suggestion-item {
    padding: 1rem 1.5rem;
    color: var(--off-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-crisp);
    border-bottom: 1px solid rgba(45, 90, 160, 0.2);
    position: relative;
    z-index: 9999;
}

.suggestion-item:hover {
    background: rgba(45, 90, 160, 0.3);
    color: var(--crisp-white);
    padding-left: 2rem;
}

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

.suggestion-item strong {
    font-weight: 700;
    color: var(--crisp-white);
}

.suggestion-item small {
    font-size: 0.85rem;
    color: var(--seafoam);
    opacity: 0.8;
}

.suggestion-type {
    font-size: 0.8rem;
    background: rgba(45, 90, 160, 0.4);
    color: var(--crisp-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 1px solid rgba(45, 90, 160, 0.6);
}

.no-suggestions {
    padding: 2rem;
    color: var(--medium-gray);
    text-align: center;
    font-style: italic;
    font-size: 0.9rem;
}

/* Chord Display */
.chord-display {
    padding: 3rem 0;
    position: relative;
    z-index: 2;
}

.chord-main-display {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* Chord Visual Section */
.chord-visual-section {
    background: linear-gradient(145deg, var(--navy-blue), var(--ocean-blue));
    border: var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-deep);
    position: relative;
    overflow: hidden;
}

.chord-visual-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, transparent, rgba(46, 196, 182, 0.1), transparent);
    transform: translate(50%, -50%);
}

.chord-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: var(--border-light);
    position: relative;
    z-index: 2;
}

.chord-header h2 {
    font-size: 2rem;
    color: var(--crisp-white);
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Chord Content Grid */
.chord-content-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

/* Diagram Container */
.chord-diagram-container {
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chord-diagram-container canvas {
    background: var(--off-white);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-float);
    transition: var(--transition-spring);
    border: var(--border-crisp);
}

.chord-diagram-container canvas:hover {
    transform: scale(1.03);
    box-shadow: 
        var(--shadow-float),
        0 0 30px var(--glow-blue);
}

.no-diagram {
    padding: 3rem;
    text-align: center;
    color: var(--medium-gray);
    font-style: italic;
    background: rgba(10, 25, 41, 0.6);
    border-radius: var(--radius-md);
    border: 2px dashed var(--crisp-blue);
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* Chord Info Container */
.chord-info-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.chord-notes h3,
.chord-intervals h3,
.audio-player h3 {
    color: var(--crisp-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notes-list,
.intervals-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Note & Interval Badges - Crisp Design */
.note-badge {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(145deg, var(--ocean-blue), var(--crisp-blue));
    border: var(--border-light);
    border-radius: var(--radius-md);
    color: var(--crisp-white);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-crisp);
}

.note-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1), transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.note-badge:hover::before {
    transform: translateX(100%);
}

.note-badge:hover {
    background: linear-gradient(145deg, var(--crisp-blue), var(--highlight-blue));
    border-color: var(--electric-blue);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(45, 90, 160, 0.6),
        0 0 0 1px rgba(0, 191, 255, 0.3);
}

.note-badge.note-playing {
    background: linear-gradient(145deg, var(--seafoam), #00BFFF);
    border-color: var(--electric-blue);
    color: var(--deep-ocean);
    box-shadow: 
        0 0 25px rgba(46, 196, 182, 0.8),
        0 8px 25px rgba(45, 90, 160, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 0 25px rgba(46, 196, 182, 0.8),
            0 8px 25px rgba(45, 90, 160, 0.6);
    }
    50% {
        box-shadow: 
            0 0 35px rgba(46, 196, 182, 1),
            0 8px 30px rgba(45, 90, 160, 0.8);
    }
}

.interval-badge {
    padding: 0.6rem 1.25rem;
    background: linear-gradient(145deg, var(--navy-blue), rgba(45, 90, 160, 0.8));
    border: 1px solid rgba(45, 90, 160, 0.5);
    border-radius: var(--radius-md);
    color: var(--light-gray);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-crisp);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.interval-badge:hover {
    background: linear-gradient(145deg, rgba(45, 90, 160, 0.9), rgba(58, 123, 200, 0.8));
    border-color: var(--crisp-blue);
    color: var(--crisp-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 160, 0.4);
}

.interval-badge.interval-playing {
    background: linear-gradient(145deg, var(--electric-blue), var(--seafoam));
    border-color: var(--electric-blue);
    color: var(--deep-ocean);
    font-weight: 700;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.6);
}

/* Audio Player */
.audio-player .audio-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-spring);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    box-shadow: var(--shadow-deep);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(145deg, var(--crisp-blue), var(--highlight-blue));
    color: var(--crisp-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(145deg, var(--highlight-blue), var(--electric-blue));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        var(--shadow-float),
        0 0 25px rgba(45, 90, 160, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: linear-gradient(145deg, var(--navy-blue), var(--ocean-blue));
    color: var(--crisp-white);
    border: 2px solid rgba(45, 90, 160, 0.5);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(145deg, var(--ocean-blue), var(--crisp-blue));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        var(--shadow-float),
        0 0 20px rgba(45, 90, 160, 0.4);
    border-color: var(--crisp-blue);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.audio-settings {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(10, 25, 41, 0.7);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: var(--border-light);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.audio-settings .volume-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.audio-settings .volume-control i {
    color: var(--electric-blue);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 2px rgba(0, 191, 255, 0.5));
}

#volume {
    flex: 1;
    height: 6px;
    background: linear-gradient(to right, var(--navy-blue), var(--ocean-blue));
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(145deg, var(--electric-blue), var(--seafoam));
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--crisp-white);
    box-shadow: 
        0 0 10px rgba(0, 191, 255, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.5);
    transition: var(--transition-crisp);
}

#volume::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 
        0 0 15px rgba(0, 191, 255, 1),
        0 3px 12px rgba(0, 0, 0, 0.6);
}

#sound-select {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(145deg, var(--navy-blue), var(--ocean-blue));
    border: var(--border-light);
    border-radius: var(--radius-md);
    color: var(--crisp-white);
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 140px;
    transition: var(--transition-crisp);
    font-weight: 600;
    box-shadow: var(--shadow-crisp);
}

#sound-select:focus {
    border: var(--border-crisp);
    box-shadow: 
        var(--shadow-crisp),
        0 0 0 3px rgba(45, 90, 160, 0.3);
    background: linear-gradient(145deg, var(--ocean-blue), var(--crisp-blue));
}

/* Related Chords */
.related-chords-section {
    background: linear-gradient(145deg, var(--navy-blue), var(--ocean-blue));
    border: var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-deep);
    position: relative;
    overflow: hidden;
}

.related-chords-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(46, 196, 182, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.related-chords-section h3 {
    color: var(--crisp-white);
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.related-chords-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.related-category h4 {
    color: var(--seafoam);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.related-chords-list,
.progression-list,
.next-chords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.related-chord-btn,
.next-chord-btn {
    padding: 0.6rem 1.25rem;
    background: linear-gradient(145deg, rgba(45, 90, 160, 0.3), rgba(30, 58, 95, 0.4));
    border: 1px solid rgba(45, 90, 160, 0.4);
    border-radius: var(--radius-md);
    color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition-crisp);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.related-chord-btn:hover,
.next-chord-btn:hover {
    background: linear-gradient(145deg, rgba(45, 90, 160, 0.6), rgba(58, 123, 200, 0.5));
    border-color: var(--crisp-blue);
    color: var(--crisp-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 160, 0.4);
}

.progression-item {
    padding: 1rem 1.25rem;
    background: rgba(10, 25, 41, 0.6);
    border: 1px solid rgba(45, 90, 160, 0.3);
    border-radius: var(--radius-md);
    color: var(--medium-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: var(--transition-crisp);
    backdrop-filter: blur(5px);
}

.progression-item:hover {
    background: rgba(45, 90, 160, 0.2);
    color: var(--light-gray);
    border-color: rgba(45, 90, 160, 0.5);
}

/* Chord Explorer */
.chord-explorer {
    padding: 3rem 0;
    position: relative;
    z-index: 2;
}

.chord-explorer h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--crisp-white);
    margin-bottom: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.explorer-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(145deg, var(--navy-blue), var(--ocean-blue));
    border: var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-deep);
    position: relative;
    overflow: hidden;
}

.explorer-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--electric-blue), 
        var(--seafoam), 
        var(--electric-blue), 
        transparent);
}

.explorer-control-group h3 {
    color: var(--crisp-white);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

/* Root Note Selector */
.root-note-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.root-note-btn {
    min-width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(45, 90, 160, 0.2), rgba(30, 58, 95, 0.3));
    border: 1px solid rgba(45, 90, 160, 0.4);
    border-radius: var(--radius-md);
    color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition-spring);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-crisp);
}

.root-note-btn:hover {
    background: linear-gradient(145deg, rgba(45, 90, 160, 0.4), rgba(58, 123, 200, 0.3));
    border-color: var(--crisp-blue);
    color: var(--crisp-white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(45, 90, 160, 0.4);
}

.root-note-btn.active {
    background: linear-gradient(145deg, var(--crisp-blue), var(--highlight-blue));
    border-color: var(--electric-blue);
    color: var(--crisp-white);
    box-shadow: 
        0 8px 25px rgba(45, 90, 160, 0.6),
        0 0 0 1px rgba(0, 191, 255, 0.3);
}

/* Chord Type Filters */
.chord-type-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.type-filter-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(145deg, rgba(45, 90, 160, 0.2), rgba(30, 58, 95, 0.3));
    border: 1px solid rgba(45, 90, 160, 0.4);
    border-radius: var(--radius-md);
    color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition-spring);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-crisp);
}

.type-filter-btn:hover {
    background: linear-gradient(145deg, rgba(45, 90, 160, 0.4), rgba(58, 123, 200, 0.3));
    border-color: var(--crisp-blue);
    color: var(--crisp-white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(45, 90, 160, 0.4);
}

.type-filter-btn.active {
    background: linear-gradient(145deg, var(--crisp-blue), var(--highlight-blue));
    border-color: var(--electric-blue);
    color: var(--crisp-white);
    box-shadow: 
        0 8px 25px rgba(45, 90, 160, 0.6),
        0 0 0 1px rgba(0, 191, 255, 0.3);
}

/* Accidentals Selector */
.simplified-accidentals-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.accidentals-mode-toggle {
    display: flex;
    gap: 0.5rem;
}

.accidental-mode-btn {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(145deg, rgba(45, 90, 160, 0.2), rgba(30, 58, 95, 0.3));
    border: 1px solid rgba(45, 90, 160, 0.4);
    border-radius: var(--radius-md);
    color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition-crisp);
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 60px;
    box-shadow: var(--shadow-crisp);
}

.accidental-mode-btn:hover {
    background: linear-gradient(145deg, rgba(45, 90, 160, 0.4), rgba(58, 123, 200, 0.3));
    border-color: var(--crisp-blue);
    color: var(--crisp-white);
}

.accidental-mode-btn.active {
    background: linear-gradient(145deg, var(--seafoam), var(--electric-blue));
    border-color: var(--electric-blue);
    color: var(--deep-ocean);
    font-weight: 800;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
}

/* Explorer Grid */
.chord-explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    position: relative;
    z-index: 2;
}

.explorer-chord-card {
    background: linear-gradient(145deg, var(--navy-blue), var(--ocean-blue));
    border: 1px solid rgba(45, 90, 160, 0.4);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-spring);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
}

.explorer-chord-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--electric-blue), var(--seafoam), var(--electric-blue));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.explorer-chord-card:hover::before {
    transform: translateX(0);
}

.explorer-chord-card:hover {
    border-color: var(--crisp-blue);
    transform: translateY(-6px) scale(1.03);
    box-shadow: 
        var(--shadow-float),
        0 0 30px var(--glow-blue);
}

.explorer-chord-name {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--crisp-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.explorer-chord-type {
    font-size: 0.85rem;
    color: var(--seafoam);
    text-transform: uppercase;
    background: rgba(46, 196, 182, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(46, 196, 182, 0.3);
}

.no-chords-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--medium-gray);
    font-style: italic;
    background: rgba(10, 25, 41, 0.6);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--crisp-blue);
    backdrop-filter: blur(5px);
}

/* Explorer Info */
.explorer-info {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(30, 58, 95, 0.6), rgba(45, 90, 160, 0.4));
    border-radius: var(--radius-lg);
    border: var(--border-light);
    box-shadow: var(--shadow-crisp);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.explorer-info p {
    color: var(--off-white);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Pagination */
.explorer-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.pagination-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(145deg, rgba(45, 90, 160, 0.2), rgba(30, 58, 95, 0.3));
    border: 1px solid rgba(45, 90, 160, 0.4);
    border-radius: var(--radius-md);
    color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition-crisp);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 46px;
    justify-content: center;
    box-shadow: var(--shadow-crisp);
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, rgba(45, 90, 160, 0.4), rgba(58, 123, 200, 0.3));
    border-color: var(--crisp-blue);
    color: var(--crisp-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 90, 160, 0.4);
}

.pagination-btn.active {
    background: linear-gradient(145deg, var(--crisp-blue), var(--highlight-blue));
    border-color: var(--electric-blue);
    color: var(--crisp-white);
    box-shadow: 
        0 4px 15px rgba(45, 90, 160, 0.6),
        0 0 0 1px rgba(0, 191, 255, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Controls & Navigation */
.chord-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.chord-controls select {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(145deg, rgba(45, 90, 160, 0.2), rgba(30, 58, 95, 0.3));
    border: 1px solid rgba(45, 90, 160, 0.4);
    border-radius: var(--radius-md);
    color: var(--light-gray);
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 150px;
    transition: var(--transition-crisp);
    font-weight: 600;
    box-shadow: var(--shadow-crisp);
}

.chord-controls select:focus {
    border: var(--border-crisp);
    box-shadow: 
        var(--shadow-crisp),
        0 0 0 3px rgba(45, 90, 160, 0.3);
    color: var(--crisp-white);
    background: linear-gradient(145deg, rgba(45, 90, 160, 0.4), rgba(58, 123, 200, 0.3));
}

.chord-position-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chord-position-control span {
    color: var(--light-gray);
    font-size: 0.9rem;
    font-weight: 600;
}

.position-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pos-nav-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(45, 90, 160, 0.2), rgba(30, 58, 95, 0.3));
    border: 1px solid rgba(45, 90, 160, 0.4);
    border-radius: var(--radius-md);
    color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition-crisp);
    box-shadow: var(--shadow-crisp);
}

.pos-nav-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, rgba(45, 90, 160, 0.4), rgba(58, 123, 200, 0.3));
    border-color: var(--crisp-blue);
    color: var(--crisp-white);
    transform: translateY(-2px);
}

.pos-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}

/* CONSISTENT NAVIGATION STYLES (Same as index.html) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: var(--border-light);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h1 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--electric-blue), var(--seafoam));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--light-gray)!important;
    text-decoration: none!important;
    font-weight: 600!important;
    font-size: 1rem!important;
    transition: var(--transition-crisp)!important;
    position: relative!important;
    padding: 0.5rem 0!important;
}

.nav-link::after {
    content: ''!important;
    position: absolute!important;
    bottom: 0!important;
    left: 0!important;
    width: 0!important;
    height: 2px!important;
    background: linear-gradient(90deg, var(--electric-blue), var(--seafoam))!important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1)!important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--crisp-white)!important;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%!important;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--crisp-white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .chord-main-display {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .related-chords-section {
        order: -1;
    }
}

@media (max-width: 992px) {
    .explorer-controls {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .chord-explorer-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .chords-hero {
        padding: 3rem 1rem;
    }
    
    .chord-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .chord-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .chord-diagram-container {
        min-width: auto;
    }
    
    .audio-settings {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .chord-explorer-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }
    
    /* Responsive nav for chords */
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--navy-blue), var(--ocean-blue));
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: var(--border-light);
        box-shadow: var(--shadow-deep);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }
    
    .root-note-btn,
    .type-filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .chords-hero h1 {
        font-size: 2rem;
    }
    
    .chords-hero p {
        font-size: 1rem;
    }
    
    .chord-visual-section,
    .related-chords-section {
        padding: 1.5rem;
    }
    
    .chord-header h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .explorer-controls {
        padding: 1.5rem;
    }
    
    .chord-explorer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
    
    .pagination-controls {
        gap: 0.5rem;
    }
    
    .pagination-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-width: 40px;
    }
    
    .accidental-mode-btn {
        min-width: 50px;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 400px) {
    .chord-explorer-grid {
        grid-template-columns: 1fr;
    }
    
    .notes-list,
    .intervals-list {
        gap: 0.5rem;
    }
    
    .note-badge {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .root-note-btn {
        min-width: 42px;
        height: 42px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(145deg, var(--navy-blue), var(--ocean-blue));
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, var(--crisp-blue), var(--highlight-blue));
    border-radius: var(--radius-sm);
    border: 2px solid var(--navy-blue);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, var(--highlight-blue), var(--electric-blue));
}

/* Focus States */
:focus-visible {
    outline: 2px solid var(--electric-blue);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.3);
}

/* Smooth transitions for all interactive elements */
a, button, input, select, .note-badge, .interval-badge, 
.explorer-chord-card, .related-chord-btn, .root-note-btn,
.type-filter-btn, .pagination-btn, .pos-nav-btn {
    transition: var(--transition-crisp);
}

/* Glass morphism effect */
.glass {
    background: rgba(10, 25, 41, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Loading shimmer */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.loading-shimmer {
    background: linear-gradient(
        90deg,
        var(--navy-blue) 25%,
        var(--ocean-blue) 50%,
        var(--navy-blue) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Add this to the search suggestions section - FIXED POSITIONING */
.search-input-wrapper {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: linear-gradient(145deg, var(--navy-blue), var(--ocean-blue));
    border: var(--border-crisp);
    border-radius: var(--radius-md);
    z-index: 10000 !important; /* Even higher z-index */
    display: none;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-float);
    backdrop-filter: blur(20px);
    animation: slideDown 0.2s ease-out;
    /* Ensure it's above everything */
    position: fixed; /* Changed to fixed for better positioning */
    width: auto; /* Auto width */
    min-width: 300px; /* Minimum width */
}

/* Remove any overflow:hidden from parent containers */
.chord-search-container,
.control-group {
    overflow: visible !important;
}

/* Make sure the hero section doesn't clip the suggestions */
.chords-hero {
    overflow: visible !important;
    position: relative;
    z-index: 3;
}

/* Ensure the controls section doesn't clip */
.chords-controls {
    overflow: visible !important;
    position: relative;
    z-index: 3;
}

/* Add to the existing chords.css file */

/* Search & Input - FIXED Z-INDEX */
.chord-search-container {
    position: relative;
}

#chord-search {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(10, 25, 41, 0.8);
    border: var(--border-light);
    border-radius: var(--radius-md);
    color: var(--crisp-white);
    font-size: 1rem;
    transition: var(--transition-crisp);
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

#chord-search:focus {
    outline: none;
    border: var(--border-crisp);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(45, 90, 160, 0.3);
    background: rgba(14, 32, 52, 0.9);
}

/* FIXED: Search suggestions with proper positioning */
.search-input-wrapper {
    position: relative;
}

.search-suggestions {
    position: fixed !important; /* Changed to fixed */
    background: linear-gradient(145deg, var(--navy-blue), var(--ocean-blue));
    border: var(--border-crisp);
    border-radius: var(--radius-md);
    z-index: 999999 !important; /* Very high z-index */
    display: none;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-float);
    backdrop-filter: blur(20px);
    animation: slideDown 0.2s ease-out;
    width: 100%; /* Will be set by JS */
}

/* Make sure parent containers don't clip */
.chord-search-container,
.control-group,
.chords-controls,
.chords-hero {
    overflow: visible !important;
    position: relative;
    z-index: 10;
}

/* Ensure the search container is above other content */
.chords-controls {
    z-index: 100;
}

.suggestion-item {
    padding: 1rem 1.5rem;
    color: var(--off-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-crisp);
    border-bottom: 1px solid rgba(45, 90, 160, 0.2);
    position: relative;
    z-index: 999999;
}

.suggestion-item:hover {
    background: rgba(45, 90, 160, 0.3);
    color: var(--crisp-white);
    padding-left: 2rem;
}

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

.suggestion-item strong {
    font-weight: 700;
    color: var(--crisp-white);
}

.suggestion-item small {
    font-size: 0.85rem;
    color: var(--seafoam);
    opacity: 0.8;
}

.suggestion-type {
    font-size: 0.8rem;
    background: rgba(45, 90, 160, 0.4);
    color: var(--crisp-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 1px solid rgba(45, 90, 160, 0.6);
}

.no-suggestions {
    padding: 2rem;
    color: var(--medium-gray);
    text-align: center;
    font-style: italic;
    font-size: 0.9rem;
}

/* Hero Section with Video Background (Same size as before) */
.theory-hero {
    position: relative;
    height: auto;
    min-height: 400px;
    padding: 4rem 0;
    text-align: center;
    overflow: hidden;
    border-bottom: var(--border-crisp);
    box-shadow: var(--shadow-deep);
    margin-bottom: 3rem;
}

/* Video Background Container */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
}

/* Overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(10, 25, 41, 0.85) 0%, 
        rgba(29, 58, 95, 0.7) 50%, 
        rgba(10, 25, 41, 0.85) 100%
    );
    z-index: 2;
}

.theory-hero {
    position: relative;
    height: auto;
    min-height: 150px!important;
    padding: 2rem 0;
    text-align: center;
    overflow: hidden;
    border-bottom: var(--border-crisp);
    box-shadow: var(--shadow-deep);
    margin-bottom: 3rem;
}

/* Hero content on top of video */
.theory-hero > .container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    padding: 0 2rem;
}

.theory-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--crisp-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

.theory-hero p {
    font-size: 1.2rem;
    color: var(--off-white);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

/* Hero buttons - same as before */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-spring);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--crisp-blue), var(--highlight-blue));
    color: var(--crisp-white);
    box-shadow: var(--shadow-deep);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--highlight-blue), var(--electric-blue));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--glow-blue);
}

.btn-secondary {
    background: transparent;
    color: var(--light-gray);
    border: var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--crisp-blue);
    color: var(--crisp-white);
    transform: translateY(-3px);
}

/* Responsive design for hero */
@media (max-width: 768px) {
    .theory-hero {
        padding: 3rem 0;
    }
    
    .theory-hero h1 {
        font-size: 2.5rem;
    }
    
    .theory-hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}


        /* Simplified Footer - Horizontal Links with Dots */
        .footer {
            background: var(--ocean-dark);
            padding: 1rem 0 1rem;
            border-top: var(--border-light);
            position: relative;
            z-index: 2;
        }
        
        .footer-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 1rem;
        }
        
        .footer-brand h3 {
            font-size: 1.2rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--electric-blue), var(--seafoam));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 0.25rem;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }
        
        .footer-brand p {
            color: var(--medium-gray);
            font-size: 0.85rem;
            margin-bottom: 0.5rem;
        }
        
        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            margin: 0.5rem 0;
        }
        
        .links-row {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.5rem;
            font-size: 0.9rem;
        }
        
        .links-row h4 {
            color: var(--light-gray);
            font-weight: 600;
            margin: 0;
            font-size: 0.9rem;
        }
        
        .links-row a {
            color: var(--electric-blue);
            text-decoration: none;
            transition: var(--transition-crisp);
        }
        
        .links-row a:hover {
            color: var(--seafoam);
            text-decoration: underline;
        }
        
        .dot-divider {
            color: var(--medium-gray);
            font-size: 0.8rem;
            opacity: 0.6;
        }
        
        .footer-copyright {
            margin-top: 0.5rem;
            padding-top: 0.75rem;
            border-top: 1px solid rgba(45, 90, 160, 0.2);
            color: var(--dark-gray);
            font-size: 0.8rem;
            width: 100%;
        }
        
        /* Responsive Footer */
        @media (max-width: 768px) {
            .footer {
                padding: 1.25rem 0 0.75rem;
            }
            
            .footer-brand h3 {
                font-size: 1.1rem;
            }
            
            .footer-brand p {
                font-size: 0.8rem;
            }
            
            .links-row {
                font-size: 0.85rem;
                gap: 0.4rem;
            }
            
            .links-row h4 {
                font-size: 0.85rem;
            }
            
            .dot-divider {
                font-size: 0.75rem;
            }
            
            .footer-copyright {
                font-size: 0.75rem;
                padding-top: 0.5rem;
            }
        }
        
        @media (max-width: 480px) {
            .links-row {
                flex-direction: column;
                gap: 0.25rem;
            }
            
            .links-row h4 {
                margin-bottom: 0.25rem;
            }
        }

        /* Fix Dropdown Menu Visibility - Black Text on White Background */
#layout-select,
#sound-select,
.chord-controls select {
    color: #ffffff !important;
    background-color: #FFFFFF !important;
  background-image: none !important;
}

/* Fix dropdown options visibility */
#layout-select option,
#sound-select option {
    color: #000000 !important;
    background-color: #FFFFFF !important;
}

/* Fix the chord controls select specifically */
.chord-controls select {
    color: #000000 !important;
    background: #FFFFFF !important;
    border: 1px solid #2D5AA0 !important;
}

/* Remove gradient backgrounds from selects */
#layout-select,
#sound-select {
    background: linear-gradient(to bottom, #FFFFFF, #F0F0F0) !important;
}

/* Ensure dropdown arrow is visible */
#layout-select,
#sound-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 30px !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232D5AA0'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 20px !important;
}

/* Focus state for better visibility */
#layout-select:focus,
#sound-select:focus,
.chord-controls select:focus {
    border-color: #00BFFF !important;
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.3) !important;
    outline: none !important;
}
/* Add to chords.css - Explorer Card Play Button Styles */
.explorer-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(45, 90, 160, 0.2);
}

.explorer-play-btn {
    width: 28px;
    height: 28px;
    background: linear-gradient(145deg, rgba(46, 196, 182, 0.2), rgba(0, 191, 255, 0.3));
    border: 1px solid rgba(46, 196, 182, 0.4);
    border-radius: 50%;
    color: var(--seafoam);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-crisp);
    font-size: 0.8rem;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.explorer-play-btn:hover {
    background: linear-gradient(145deg, rgba(46, 196, 182, 0.4), rgba(0, 191, 255, 0.5));
    border-color: var(--electric-blue);
    color: var(--electric-blue);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(46, 196, 182, 0.4);
}

.explorer-play-btn.playing {
    background: linear-gradient(145deg, var(--seafoam), var(--electric-blue));
    border-color: var(--electric-blue);
    color: var(--deep-ocean);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(46, 196, 182, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(46, 196, 182, 0);
    }
}
/* More compact explorer grid */
.chord-explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    position: relative;
    z-index: 2;
}

/* More compact explorer cards */
.explorer-chord-card {
    background: linear-gradient(145deg, var(--navy-blue), var(--ocean-blue));
    border: 1px solid rgba(45, 90, 160, 0.4);
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-spring);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-crisp);
    height: 150px;
    justify-content: center;
}

.explorer-chord-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--electric-blue), var(--seafoam), var(--electric-blue));
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.explorer-chord-card:hover::before {
    transform: translateX(0);
}

.explorer-chord-card:hover {
    border-color: var(--crisp-blue);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(45, 90, 160, 0.5),
        0 0 20px var(--glow-blue);
}

/* Smaller chord name */
.explorer-chord-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--crisp-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

/* Compact chord type badge */
.explorer-chord-type {
    font-size: 0.75rem;
    color: var(--seafoam);
    text-transform: uppercase;
    background: rgba(46, 196, 182, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(46, 196, 182, 0.3);
    margin-bottom: 0.5rem;
}

/* Compact footer */
.explorer-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(45, 90, 160, 0.2);
}

.explorer-card-footer small {
    font-size: 0.7rem;
    color: var(--medium-gray);
    font-weight: 600;
}

/* Smaller play button */
.explorer-play-btn {
    width: 24px;
    height: 24px;
    background: linear-gradient(145deg, rgba(46, 196, 182, 0.2), rgba(0, 191, 255, 0.3));
    border: 1px solid rgba(46, 196, 182, 0.4);
    border-radius: 50%;
    color: var(--seafoam);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-crisp);
    font-size: 0.7rem;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.explorer-play-btn:hover {
    background: linear-gradient(145deg, rgba(46, 196, 182, 0.4), rgba(0, 191, 255, 0.5));
    border-color: var(--electric-blue);
    color: var(--electric-blue);
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(46, 196, 182, 0.4);
}

.explorer-play-btn.playing {
    background: linear-gradient(145deg, var(--seafoam), var(--electric-blue));
    border-color: var(--electric-blue);
    color: var(--deep-ocean);
    animation: pulse 1s infinite;
}

/* Adjust for smaller screens */
@media (max-width: 992px) {
    .chord-explorer-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.875rem;
    }
    
    .explorer-chord-card {
        height: 110px;
        padding: 0.875rem;
    }
    
    .explorer-chord-name {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .chord-explorer-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .explorer-chord-card {
        height: 105px;
        padding: 0.75rem;
    }
    
    .explorer-chord-name {
        font-size: 1.3rem;
    }
    
    .explorer-chord-type {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 576px) {
    .chord-explorer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .explorer-chord-card {
        height: 100px;
        padding: 0.75rem;
    }
    
    .explorer-chord-name {
        font-size: 1.2rem;
    }
    
    .explorer-card-footer small {
        font-size: 0.65rem;
    }
    
    .explorer-play-btn {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }
}

@media (max-width: 400px) {
    .chord-explorer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

#layout-select {
    display:none!important;
}
