:root {
    --primary-color: #00f2ff;
    --secondary-color: #bc13fe;
    --bg-dark: #0a0a12;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-glow: 0 0 10px rgba(0, 242, 255, 0.7);
    --box-glow: 0 0 20px rgba(188, 19, 254, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none; /* Prevent text selection during frantic jamming */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(188, 19, 254, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 255, 0.2) 0%, transparent 40%);
    color: #fff;
    height: 100vh;
    overflow: hidden; /* Prevent scrolling */
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    width: 100%;
    max-width: 1000px;
    height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* --- Header & Title --- */
header {
    text-align: center;
    margin-bottom: 20px;
}

.neon-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: #fff;
    text-transform: uppercase;
    position: relative;
    text-shadow: 
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-color);
}

.subtitle {
    font-size: 1rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: -10px;
}

/* --- Glass Panel & Controls --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.controls-panel {
    width: 100%;
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.status-display {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-size: 1.2rem;
    text-align: center;
}

/* --- Tabs --- */
.tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #fff;
    text-shadow: var(--text-glow);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 10px var(--primary-color);
}

/* --- Instruments Stage --- */
.instruments-stage {
    width: 100%;
    flex-grow: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.instrument-view {
    display: none;
    width: 100%;
    height: 100%;
}

.instrument-view.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- DRUMS --- */
.drum-pad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

.drum-pad {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 242, 255, 0.3);
    border-radius: 15px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.1s;
    position: relative;
    overflow: hidden;
}

.drum-pad:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--primary-color);
}

.drum-pad.active {
    transform: scale(0.95);
    background: rgba(0, 242, 255, 0.4);
    box-shadow: 0 0 30px var(--primary-color);
    border-color: #fff;
}

.pad-label {
    font-weight: 600;
    font-size: 1.2rem;
    z-index: 2;
}

.key-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

/* --- Ripple Effect --- */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-anim 0.3s linear;
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* --- ELECTRIC GUITAR --- */
.guitar-fretboard {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 700px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    box-shadow: 
        0 0 30px rgba(0, 242, 255, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
    position: relative;
}

.guitar-string {
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.string-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #444, #ddd, #fff, #ddd, #444);
    z-index: 1;
    box-shadow: 
        0 1px 3px rgba(0,0,0,0.8),
        0 -1px 1px rgba(255,255,255,0.3);
    border-radius: 1px;
}

.guitar-string:hover .string-line {
    background: linear-gradient(90deg, var(--primary-color), #0ff, #fff, #0ff, var(--primary-color));
    box-shadow: 
        0 0 15px var(--primary-color),
        0 0 5px #fff;
    height: 4px;
}

.guitar-string.active .string-line {
    height: 5px;
    background: linear-gradient(90deg, #0ff, #fff, #0ff);
    box-shadow: 
        0 0 25px var(--primary-color),
        0 0 10px #fff,
        0 0 5px var(--primary-color);
}

.fret-marker {
    z-index: 2;
    background: linear-gradient(135deg, #000, #1a1a1a);
    padding: 8px 18px;
    border-radius: 25px;
    border: 2px solid var(--primary-color);
    margin-left: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: 0.2s;
    box-shadow: 
        0 0 10px rgba(0, 242, 255, 0.4),
        inset 0 1px 2px rgba(255,255,255,0.1);
    text-shadow: 0 0 5px var(--primary-color);
}

.guitar-string.active .fret-marker {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.15);
    box-shadow: 
        0 0 20px var(--primary-color),
        0 0 30px rgba(0, 242, 255, 0.6);
    text-shadow: none;
    font-weight: 700;
}

.guitar-string .key-hint {
    margin-left: auto;
    margin-right: 20px;
    z-index: 2;
}

/* --- PIANO --- */
.piano-container {
    position: relative;
    display: flex;
    justify-content: center;
    height: 300px;
    background: #111;
    padding: 10px 10px 0 10px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.piano-key {
    cursor: pointer;
    position: relative;
    border-radius: 0 0 5px 5px;
    transition: all 0.1s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    user-select: none;
}

.piano-key span {
    font-size: 0.8rem;
    opacity: 0.7;
}

.piano-key.white {
    width: 60px;
    height: 100%;
    background: #fff;
    border: 1px solid #ccc;
    margin: 0 2px;
    color: #333;
    z-index: 1;
}

.piano-key.white:hover {
    background: #f0f0f0;
}

.piano-key.white.active {
    background: var(--primary-color);
    height: 98%;
    box-shadow: 0 0 20px var(--primary-color);
    transform: translateY(2px);
    border: none;
}

.piano-key.black {
    width: 40px;
    height: 60%;
    background: #000;
    position: absolute;
    top: 0;
    z-index: 10;
    color: #fff;
    border: 1px solid #333;
    border-top: none;
}

.piano-key.black:hover {
    background: #222;
}

.piano-key.black.active {
    background: var(--secondary-color);
    box-shadow: 0 0 20px var(--secondary-color);
    transform: scale(0.95);
}

/* --- Footer --- */
footer {
    margin-top: auto;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .neon-title { font-size: 2.5rem; }
    .controls-panel { flex-direction: column; gap: 15px; }
    .drum-pad-grid { grid-template-columns: repeat(2, 1fr); }
    .piano-key.white { width: 40px; }
    .piano-key.black { width: 28px; }
}
