* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #0a0e17;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    overflow-x: hidden;
    color: #e0e0e0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(28, 58, 148, 0.15) 0%, rgba(0, 0, 0, 0) 20%),
        radial-gradient(circle at 90% 80%, rgba(76, 0, 255, 0.1) 0%, rgba(0, 0, 0, 0) 20%);
}

.container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}
.search-container {
    position: relative;
    margin-bottom: 10px;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(15, 20, 30, 0.6);
    border: 1px solid rgba(0, 195, 255, 0.3);
    border-radius: 3px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: rgba(0, 195, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.3);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 25, 35, 0.95);
    border: 1px solid rgba(0, 195, 255, 0.3);
    border-top: none;
    border-radius: 0 0 3px 3px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: rgba(0, 119, 255, 0.3);
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 119, 255, 0.5);
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0, 195, 255, 0.1);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: rgba(0, 119, 255, 0.3);
}

.suggestion-item .highlight {
    color: #00c3ff;
    font-weight: bold;
}

.xml-file-list {
    position: relative;
    min-height: 100px;
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid rgba(0, 195, 255, 0.2);
    border-radius: 3px;
    max-height: 200px;
    overflow-y: auto;
    padding: 5px;   
}
.xml-file-list .loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00c3ff;
    font-size: 16px;
    text-align: center;
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.file-loaded-notification {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 15, 25, 0.9);
    border: 2px solid rgba(0, 195, 255, 0.5);
    border-radius: 5px;
    padding: 10px 20px;
    color: #00c3ff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    z-index: 1100;
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.4);
    animation: notification-fade 3s ease-in-out;
    pointer-events: none;
    text-shadow: 0 0 5px rgba(0, 195, 255, 0.5);
    letter-spacing: 1px;
    width: 80%;
    max-width: 250px;
}

@keyframes notification-fade {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    10% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}
.notification-bar {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 15, 25, 0.9);
    border: 2px solid rgba(0, 195, 255, 0.5);
    border-radius: 5px;
    padding: 15px 30px;
    color: #00c3ff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    z-index: 1100;
    box-shadow: 0 0 30px rgba(0, 195, 255, 0.5);
    animation: notification-pulse 4s ease-in-out;
    pointer-events: none;
    text-shadow: 0 0 8px rgba(0, 195, 255, 0.6);
    letter-spacing: 1px;
    min-width: 300px;
}
.xml-file-list::-webkit-scrollbar {
    width: 6px;
}

.xml-file-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.xml-file-list::-webkit-scrollbar-thumb {
    background: rgba(0, 119, 255, 0.3);
    border-radius: 3px;
}

.xml-file-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 119, 255, 0.5);
}

.xml-file-item {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0, 195, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xml-file-item:last-child {
    border-bottom: none;
}

.xml-file-item:hover {
    background: rgba(0, 119, 255, 0.2);
}

.xml-file-item.selected {
    background: rgba(0, 119, 255, 0.3);
    border-left: 3px solid #00c3ff;
}

.xml-file-name {
    color: #e0e0e0;
    font-size: 14px;
    flex: 1;
}

.xml-file-size {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
}

.loading {
    color: #999;
    text-align: center;
    padding: 10px;
    font-style: italic;
}

.no-files {
    color: #999;
    text-align: center;
    padding: 10px;
}
.history-item {
    display: flex;
    align-items: center;
}

.history-icon {
    margin-right: 8px;
    color: #00c3ff;
    font-style: normal;
    opacity: 0.7;
}

.history-item:hover .history-icon {
    opacity: 1;
}
.piano-container {
    flex: 1;
    min-width: 0;
    margin-top: 330px;
    position: relative;
    border: 1px solid rgba(0, 195, 255, 0.2);
    border-radius: 5px;
    padding: 1.5rem;
    background: rgba(10, 14, 23, 0.7);
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.1), 
                inset 0 0 10px rgba(0, 195, 255, 0.05);
    margin-bottom: 30px;
    position: relative;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.controls-container {
    width: 300px;
    padding: 1.5rem;
    background: rgba(15, 20, 30, 0.8);
    border-radius: 5px;
    height: fit-content;
    border: 1px solid rgba(0, 195, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.1);
}

h1 {
    color: #00c3ff;
    margin-bottom: 2rem;
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 195, 255, 0.5);
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 195, 255, 0), rgba(0, 195, 255, 1), rgba(0, 195, 255, 0));
}

/* Shooting star styles */
.shooting-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    z-index: 1000;
}

.star-trail {
    position: absolute;
    top: 50%;
    right: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to left, transparent, white);
    transform: translateY(-50%);
    z-index: 999;
}

@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0) rotate(var(--angle));
        opacity: 1;
    }
    100% {
        transform: translateX(var(--distance)) translateY(var(--distance)) rotate(var(--angle));
        opacity: 0;
    }
}

@keyframes trail {
    0% {
        width: 50px;
        opacity: 1;
    }
    100% {
        width: 0;
        opacity: 0;
    }
}

/* Musical note styles */
.musical-note {
    position: absolute;
    font-size: 24px;
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    z-index: 1000;
    pointer-events: none;
}

/* Song control panel */
.song-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.song-button {
    padding: 15px 20px;
    font-size: 14px;
    color: white;
    background: linear-gradient(45deg, #0077ff, #00c3ff);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 119, 255, 0.3);
}

.song-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.song-button:hover::before {
    left: 100%;
}

.song-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 119, 255, 0.4);
}

.song-button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(0, 119, 255, 0.3);
}

.song-button.playing {
    background: linear-gradient(45deg, #ff0055, #ff7300);
    box-shadow: 0 5px 15px rgba(255, 0, 85, 0.3);
}

/* Existing piano styles */
.piano {
    background: #0f1520;
    padding: 2rem 1.5rem;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(0, 195, 255, 0.3);
}

.piano-keys {
    display: flex;
    position: relative;
    min-width: min-content;
}

.key {
    cursor: pointer;
    user-select: none;
    position: relative;
    text-transform: uppercase;
    transition: transform 0.1s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.key span.note-name {
    font-size: clamp(10px, 1.2vw, 14px);
    font-weight: bold;
    bottom: 20px;
    color: #666;
}

.key span.key-letter {
    font-size: clamp(8px, 1vw, 12px);
    bottom: 5px;
    color: #999;
}

.white {
    background: linear-gradient(to bottom, #ffffff, #e0e0e0);
    width: clamp(40px, 5vw, 70px);
    height: clamp(160px, 20vw, 230px);
    border-radius: 0 0 5px 5px;
    border: 1px solid #000;
    color: #333;
}

.black {
    background: linear-gradient(to bottom, #333333, #000000);
    width: clamp(25px, 3vw, 44px);
    height: clamp(100px, 12vw, 140px);
    border-radius: 0 0 3px 3px;
    position: absolute;
    z-index: 2;
    color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    margin-left: calc(clamp(25px, 3vw, 44px) / -2);
}

.black span.note-name {
    color: #fff;
    bottom: 35px;
    font-size: clamp(6px, 1vw, 10px); 
}

.black span.key-letter {
    color: #ccc;
    bottom: 15px;
    font-size: clamp(6px, 1vw, 10px); 
}

/* Key active states with tech effects */
.white.active {
    background: linear-gradient(45deg, #00c3ff, #0077ff);
    transform: scale(0.98);
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.7);
}

.black.active {
    background: linear-gradient(45deg, #7000ff, #00c3ff);
    transform: scale(0.98);
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.7);
}

/* Ripple effect */
.key::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.key.active::after {
    animation: ripple 0.5s ease-out;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Rainbow trail effect */
.key.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        #ff0000, #ff7300, #fffb00, #48ff00, 
        #00ffd5, #002bff, #7a00ff, #ff00c8);
    background-size: 800% 800%;
    animation: rainbow 1s linear;
    opacity: 0.2;
    z-index: -1;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Lower Half Octave - Black keys */
.key[data-note="G#3"] {
    left: calc(clamp(40px, 5vw, 70px) * 1); /* Exact center between G3 and A3 */
}

.key[data-note="A#3"] {
    left: calc(clamp(40px, 5vw, 70px) * 2); /* Exact center between A3 and B3 */
}

/* First Octave - Black keys */
.key[data-note="C#4"] {
    left: calc(clamp(40px, 5vw, 70px) * 4); /* Exact center between C4 and D4 */
}

.key[data-note="D#4"] {
    left: calc(clamp(40px, 5vw, 70px) * 5); /* Exact center between D4 and E4 */
}

.key[data-note="F#4"] {
    left: calc(clamp(40px, 5vw, 70px) * 7); /* Exact center between F4 and G4 */
}

.key[data-note="G#4"] {
    left: calc(clamp(40px, 5vw, 70px) * 8); /* Exact center between G4 and A4 */
}

.key[data-note="A#4"] {
    left: calc(clamp(40px, 5vw, 70px) * 9); /* Exact center between A4 and B4 */
}

/* Second Octave - Black keys */
.key[data-note="C#5"] {
    left: calc(clamp(40px, 5vw, 70px) * 11); /* Exact center between C5 and D5 */
}

.key[data-note="D#5"] {
    left: calc(clamp(40px, 5vw, 70px) * 12); /* Exact center between D5 and E5 */
}

.key[data-note="F#5"] {
    left: calc(clamp(40px, 5vw, 70px) * 14); /* Exact center between F5 and G5 */
}

.key[data-note="G#5"] {
    left: calc(clamp(40px, 5vw, 70px) * 15); /* Exact center between G5 and A5 */
}

.key[data-note="A#5"] {
    left: calc(clamp(40px, 5vw, 70px) * 16); /* Exact center between A5 and B5 */
}

/* Remove the previous nth-child selectors that were incorrect */
.key:nth-child(9), .key:nth-child(10), .key:nth-child(11), .key:nth-child(12), 
.key:nth-child(13), .key:nth-child(21), .key:nth-child(22), .key:nth-child(23), 
.key:nth-child(24), .key:nth-child(25), .key.A#5 .key-letter {
    /* Reset to default */
    margin-left: 0;
    left: auto;
}

/* Light guide track */
.light-tracks {
    position: absolute;
    /* top: -300px; */
    left: 0;
    right: 0;
    height: 300px;
    min-height: 300px;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 195, 255, 0.15) 30%,
        rgba(0, 195, 255, 0.2) 50%,
        rgba(0, 195, 255, 0.15) 70%,
        rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 10;
    border-left: 1px dashed rgba(0, 195, 255, 0.2);
    border-right: 1px dashed rgba(0, 195, 255, 0.2);
}

/* Falling fireball effect */
.falling-light {
    position: fixed;
    width: 32px;
    height: 32px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(173, 216, 230, 0.9) 30%, rgba(0, 127, 255, 0.8) 60%, rgba(0, 0, 139, 0.7) 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    box-shadow: 
        0 0 25px rgba(0, 127, 255, 0.9),
        0 0 40px rgba(173, 216, 230, 0.5),
        inset 0 0 15px rgba(255, 255, 255, 0.7);
    filter: blur(1px);
}

/* Fireball variations */
.falling-light.crystal-1 {
    clip-path: none;
    animation: flicker 0.15s infinite alternate;
}

.falling-light.crystal-2 {
    clip-path: none;
    animation: flicker 0.2s infinite alternate;
}

.falling-light.crystal-3 {
    clip-path: none;
    animation: flicker 0.18s infinite alternate;
}

/* Fire trail effect */
.ice-trail {
    position: fixed;
    width: 8px;
    height: 200px;
    background: linear-gradient(to bottom, 
        rgba(0, 127, 255, 0.9) 0%,
        rgba(173, 216, 230, 0.7) 30%,
        rgba(0, 127, 255, 0.5) 60%,
        rgba(0, 127, 255, 0) 100%);
    pointer-events: none;
    z-index: 999;
    opacity: 0.8;
    filter: blur(3px);
}

/* Orange fire trail */
.ice-trail.orange-trail {
    background: linear-gradient(to bottom, 
        rgba(255, 69, 0, 0.9) 0%,
        rgba(255, 165, 0, 0.7) 30%,
        rgba(255, 69, 0, 0.5) 60%,
        rgba(255, 69, 0, 0) 100%);
}

/* Upper fire trail effect */
.upper-fire-trail {
    position: fixed;
    width: 12px;
    height: 300px;
    background: linear-gradient(to top, 
        rgba(0, 127, 255, 0.9) 0%,
        rgba(173, 216, 230, 0.7) 30%,
        rgba(135, 206, 250, 0.5) 60%,
        rgba(255, 255, 255, 0.3) 80%,
        rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 998;
    opacity: 0.7;
    filter: blur(4px);
    transform-origin: bottom center;
}

/* Orange upper fire trail */
.upper-fire-trail.orange-trail {
    background: linear-gradient(to top, 
        rgba(255, 69, 0, 0.9) 0%,
        rgba(255, 165, 0, 0.7) 30%,
        rgba(255, 215, 0, 0.5) 60%,
        rgba(255, 255, 255, 0.3) 80%,
        rgba(255, 255, 255, 0) 100%);
}

@keyframes upperTrailAnim {
    0% {
        opacity: 0;
        height: 0;
        transform: scaleY(0);
    }
    20% {
        opacity: 0.7;
        transform: scaleY(0.3) rotate(0deg);
    }
    80% {
        opacity: 0.5;
        transform: scaleY(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scaleY(1.2) rotate(0deg);
    }
}

@keyframes fallDown {
    0% {
        transform: translateY(-200px) scale(0.8);
        opacity: 1;
    }
    50% {
        transform: translateY(100px) scale(1.3);
        opacity: 1;
    }
    100% {
        transform: translateY(400px) scale(0.5);
        opacity: 0;
    }
}

@keyframes flicker {
    0% {
        opacity: 0.8;
        box-shadow: 
            0 0 25px rgba(0, 127, 255, 0.8),
            0 0 40px rgba(173, 216, 230, 0.4),
            inset 0 0 15px rgba(255, 255, 255, 0.6);
    }
    100% {
        opacity: 1;
        box-shadow: 
            0 0 35px rgba(0, 127, 255, 0.9),
            0 0 50px rgba(173, 216, 230, 0.6),
            inset 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

@keyframes flickerOrange {
    0% {
        opacity: 0.8;
        box-shadow: 
            0 0 25px rgba(255, 69, 0, 0.8),
            0 0 40px rgba(255, 165, 0, 0.4),
            inset 0 0 15px rgba(255, 255, 255, 0.6);
    }
    100% {
        opacity: 1;
        box-shadow: 
            0 0 35px rgba(255, 69, 0, 0.9),
            0 0 50px rgba(255, 165, 0, 0.6),
            inset 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

@keyframes iceTrail {
    0% {
        opacity: 0.9;
        height: 200px;
    }
    100% {
        opacity: 0;
        height: 50px;
    }
}

/* Sparkle effect styles */
.sparkle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1001;
}

@keyframes sparkleAnim {
    0% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(0.8) rotate(90deg);
        opacity: 0.7;
    }
    100% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
}

/* Tempo control styles */
.tempo-control {
    margin-top: 20px;
    padding: 15px;
    background: rgba(15, 20, 30, 0.5);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(0, 195, 255, 0.2);
}

.tempo-control label {
    color: #00c3ff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tempo-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #0f1520;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    border: 1px solid rgba(0, 195, 255, 0.3);
}

.tempo-slider:hover {
    opacity: 1;
}

.tempo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00c3ff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.7);
    transition: transform 0.2s;
}

.tempo-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00c3ff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.7);
    transition: transform 0.2s;
    border: none;
}

.tempo-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.tempo-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

#tempoValue {
    color: white;
    font-size: 14px;
    text-align: center;
}

/* MusicXML control styles */
.musicxml-control {
    margin-top: 20px;
    padding: 15px;
    background: rgba(15, 20, 30, 0.5);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(0, 195, 255, 0.2);
}

.musicxml-control label {
    color: #00c3ff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.file-input {
    color: white;
    font-size: 14px;
    padding: 5px;
    background: rgba(15, 20, 30, 0.8);
    border-radius: 3px;
    border: 1px solid rgba(0, 195, 255, 0.3);
    cursor: pointer;
}

.file-input::-webkit-file-upload-button {
    background: linear-gradient(45deg, #0077ff, #00c3ff);
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 10px;
    transition: transform 0.2s;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.file-input::-webkit-file-upload-button:hover {
    transform: scale(1.05);
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#musicXmlFile, 
.file-upload-container, 
.file-selection,
input[type="file"] {
    display: none !important;
}
#fileName {
    color: white;
    font-size: 14px;
    opacity: 0.8;
}

/* MusicXML Debug Styles */
.musicxml-debug {
    margin-top: 20px;
    padding: 15px;
    background: rgba(15, 20, 30, 0.5);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(0, 195, 255, 0.2);
}

.musicxml-debug label {
    color: #00c3ff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toggle-container {
    display: flex;
    align-items: center;
}

.toggle-checkbox {
    display: none;
}

.toggle-label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background: #0f1520;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid rgba(0, 195, 255, 0.3);
}

.toggle-label:after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #555;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

.toggle-checkbox:checked + .toggle-label {
    background: rgba(0, 119, 255, 0.3);
}

.toggle-checkbox:checked + .toggle-label:after {
    left: calc(100% - 20px);
    background: #00c3ff;
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.7);
}

.debug-info-container {
    display: none;
    max-height: 300px;
    overflow-y: auto;
    /* margin-top: 10px; */
    background: rgba(10, 14, 23, 0.8);
    border-radius: 3px;
    border: 1px solid rgba(0, 195, 255, 0.2);
}

.debug-info-container h3 {
    color: #00c3ff;
    font-size: 16px;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 195, 255, 0.2);
    margin: 0;
}

.debug-notes-list {
    padding: 10px;
}

.note-item {
    padding: 8px;
    border-bottom: 1px solid rgba(0, 195, 255, 0.1);
    font-size: 13px;
    display: grid;
    grid-template-columns: 40px 1fr 1fr 1fr;
    gap: 5px;
    position: relative;
}

.note-item:nth-child(odd):not(.header):not(.time-info) {
    background-color: rgba(0, 50, 100, 0.2);
}

.note-item:last-child {
    border-bottom: none;
}

.note-item:hover:not(.header):not(.time-info) {
    background-color: rgba(0, 75, 150, 0.3);
}

.note-item.playing {
    background: rgba(0, 119, 255, 0.3);
    border: 1px solid rgba(0, 195, 255, 0.6);
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.3);
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.note-item .row-number {
    color: rgba(0, 195, 255, 0.7);
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    border-right: 1px solid rgba(0, 195, 255, 0.2);
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-item.header .row-number {
    color: rgba(0, 195, 255, 0.9);
}

.note-item.time-info {
    background: rgba(0, 50, 100, 0.3);
    margin-bottom: 10px;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(0, 195, 255, 0.3);
    font-weight: bold;
}

.note-item .property {
    color: #00c3ff;
    font-weight: bold;
}

.note-item .value {
    color: white;
}

.debug-info-container::-webkit-scrollbar {
    width: 8px;
}

.debug-info-container::-webkit-scrollbar-track {
    background: rgba(15, 20, 30, 0.5);
    border-radius: 3px;
}

.debug-info-container::-webkit-scrollbar-thumb {
    background: rgba(0, 119, 255, 0.3);
    border-radius: 3px;
}

.debug-info-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 119, 255, 0.5);
}

/* Media Queries */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        gap: 2rem;
        margin-top: 200px; 
    }

    .controls-container {
        width: 100%;
        max-width: 500px;
        margin-bottom: 2rem;
    }

    .piano-container {
        width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .piano {
        width: 100%;
    }
    
    .song-button {
        padding: 12px 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .white {
        width: 40px;
        height: 160px;
    }

    .black {
        width: 25px;
        height: 100px;
    }

    .key span.note-name {
        font-size: 10px;
        bottom: 15px;
    }

    .key span.key-letter {
        font-size: 8px;
        bottom: 3px;
    }
}

.tech-badge {
    font-size: 0.5em;
    background: linear-gradient(45deg, #00c3ff, #0077ff);
    padding: 3px 8px;
    border-radius: 3px;
    vertical-align: middle;
    position: relative;
    top: -5px;
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.5);
}

/* Add tech-inspired grid lines to the background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 195, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 195, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Add tech-inspired corner accents to containers */
.piano-container::before,
.controls-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid rgba(0, 195, 255, 0.5);
    border-left: 2px solid rgba(0, 195, 255, 0.5);
}

.piano-container::after,
.controls-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid rgba(0, 195, 255, 0.5);
    border-right: 2px solid rgba(0, 195, 255, 0.5);
}

/* Add tech-inspired glow to active elements */
.key:hover {
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.3);
}

/* Add tech-inspired pulse animation to buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 195, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 195, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 195, 255, 0);
    }
}

.song-button:focus {
    animation: pulse 1.5s infinite;
    outline: none;
}

.note-item.rest-note {
    background-color: rgba(30, 30, 50, 0.3);
    font-style: italic;
}

.note-item.rest-note .value:first-of-type {
    color: rgba(100, 150, 255, 0.9);
    font-size: 16px;
    font-weight: bold;
}

/* Styles for tied notes in the MusicXML debug panel */
.note-item.tied-note {
    background-color: rgba(30, 50, 80, 0.3);
    font-style: italic;
}

.note-item .tie-indicator {
    color: rgba(0, 195, 255, 0.9);
    font-size: 18px;
    margin-left: 5px;
}

.note-item .silent {
    color: rgba(150, 150, 150, 0.7);
    text-decoration: line-through;
}

/* Metronome controls */
.metronome-control {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.toggle-section {
    margin-bottom: 10px;
}

.toggle-button {
    background: linear-gradient(45deg, #333, #555);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.toggle-button:hover {
    background: linear-gradient(45deg, #444, #666);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.volume-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.volume-control label {
    font-size: 0.85rem;
    color: #b0b0b0;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #1a1a1a, #4a90e2);
    outline: none;
    border-radius: 3px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #4a90e2;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #4a90e2;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Style for volume value display */
#metronome-volume-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #00c3ff;
    text-shadow: 0 0 5px rgba(0, 195, 255, 0.5);
}

/* Chord display styling */
.chord-display {
    font-family: 'Orbitron', sans-serif;
    padding: 10px 20px;
    background-color: rgba(0, 20, 40, 0.7);
    border-radius: 8px;
    border: 2px solid rgba(0, 127, 255, 0.5);
    box-shadow: 
        0 0 20px rgba(0, 127, 255, 0.7),
        0 0 40px rgba(0, 127, 255, 0.4);
    animation: chord-glow 1s ease-out;
}

@keyframes chord-glow {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Chord indicators in debug view */
.chord-indicator {
    display: inline-block;
    background-color: rgba(0, 127, 255, 0.2);
    color: rgb(0, 195, 255);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-family: monospace;
    border: 1px solid rgba(0, 127, 255, 0.4);
}

.no-chord {
    color: rgba(150, 150, 150, 0.5);
}

/* Orange fireball style */
.falling-light.orange-fireball {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.95) 0%, rgba(255, 165, 0, 0.9) 30%, rgba(255, 69, 0, 0.8) 60%, rgba(139, 0, 0, 0.7) 100%);
    box-shadow: 
        0 0 25px rgba(255, 69, 0, 0.9),
        0 0 40px rgba(255, 165, 0, 0.5),
        inset 0 0 15px rgba(255, 255, 255, 0.7);
}

/* Orange fireball flicker animations */
.falling-light.orange-fireball.crystal-1 {
    animation: flickerOrange 0.15s infinite alternate;
}

.falling-light.orange-fireball.crystal-2 {
    animation: flickerOrange 0.2s infinite alternate;
}

.falling-light.orange-fireball.crystal-3 {
    animation: flickerOrange 0.18s infinite alternate;
}

/* Score display styles */
.score-display {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(0, 127, 255, 0.5);
    color: white;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 127, 255, 0.3);
    transform: scale(0.67);
    transform-origin: top left;
    z-index: 1000;
}

.score-header {
    font-size: 20px;
    text-align: center;
    margin-bottom: 8px;
    color: #00c3ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 195, 255, 0.5);
}

.score-value {
    font-size: 36px;
    text-align: center;
    font-weight: bold;
    margin: 8px 0;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 195, 255, 0.8);
}

.score-stats {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 195, 255, 0.3);
    font-size: 12px;
    color: #ccc;
}

.score-stats div {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}

.score-stats span {
    color: #00c3ff;
    font-weight: bold;
}

/* Remove debug controls styles */
.controls {
    margin-top: 10px;
    text-align: center;
    border: 2px solid #4a90e2;
    border-radius: 10px;
    padding: 15px;
    background-color: rgba(74, 144, 226, 0.1);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.2);
    /* Add table-like styling */
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.volume-control {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Toggle Switch Styling */
.toggle-switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.toggle-checkbox {
    height: 0;
    width: 0;
    visibility: hidden;
    position: absolute;
}

.toggle-switch {
    cursor: pointer;
    width: 60px;
    height: 30px;
    background: #333;
    display: block;
    border-radius: 100px;
    position: relative;
    margin: 0 10px;
    border: 1px solid rgba(0, 195, 255, 0.3);
    box-shadow: 0 0 5px rgba(0, 195, 255, 0.2);
}

.toggle-switch:after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #999;
    border-radius: 90px;
    transition: 0.3s;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.toggle-checkbox:checked + .toggle-switch {
    background: linear-gradient(to right, #0a2a3a, #1a4a6a);
}

.toggle-checkbox:checked + .toggle-switch:after {
    left: calc(100% - 5px);
    transform: translateX(-100%);
    background: #00c3ff;
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.8);
}

.toggle-switch:active:after {
    width: 30px;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.control-label {
    font-weight: bold;
    font-size: 14px;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 195, 255, 0.5);
}

.toggle-switch-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 5px 0;
}

.volume-value {
    color: #00c3ff;
    font-weight: bold;
    min-width: 35px;
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 195, 255, 0.5);
    letter-spacing: 0.5px;
    padding: 2px 5px;
    border-radius: 3px;
    background-color: rgba(0, 195, 255, 0.1);
    border: 1px solid rgba(0, 195, 255, 0.3);
} 
@media screen and (min-width: 1800px) {
    .piano-container{
        position: absolute;
    /* top: -300px; */
    left: 15%;
    right: 0;
    height: 350px;
    width: 55%;
    top: 20%;
    }
    .song-controls{
        position: absolute;
        top: 10%;
        left: 80%;
    }

}