/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background: #050505;
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* --- FONDO Y VISUALIZADOR (POSICIÓN ABSOLUTA) --- */
.bg-animation {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    background: linear-gradient(-45deg, #050505, #1a0b2e, #09203f, #000000);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#visualizer-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

/* --- CONTENEDOR PRINCIPAL (GLASS MORPHISM) --- */
.glass-panel {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    text-align: center;
    width: 100%;
    max-width: 420px;
    z-index: 10;
}

/* --- LOGIN ESPECÍFICO --- */
.logo { font-size: 2rem; font-weight: 800; margin-bottom: 20px; gap: 10px; display: flex; justify-content: center; align-items: center; }
.logo i { color: #00d2ff; }
.logo-text { background: linear-gradient(to right, #fff, #00d2ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.input-group { position: relative; margin-bottom: 20px; }
.input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.5); }
.input-group input { 
    width: 100%; padding: 15px 15px 15px 45px; 
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 12px; color: white; outline: none; 
}

/* --- REPRODUCTOR (PLAYER UI) --- */
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; font-size: 0.8rem; }
.brand { font-weight: 800; color: #00d2ff; }
.badge { background: #00d2ff; color: #000; padding: 2px 5px; border-radius: 4px; font-size: 0.6rem; }
.client-info { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.7); }
.logout-btn { color: #ff4d6d; font-size: 1.1rem; }

.album-art-container {
    width: 220px; height: 220px; margin: 0 auto 30px;
    border-radius: 50%; border: 8px solid #111;
    overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #000;
}
.album-art-container.playing { animation: rotate 20s linear infinite; border-color: #00d2ff; box-shadow: 0 0 30px rgba(0, 210, 255, 0.3); }
#album-cover { width: 100%; height: 100%; object-fit: cover; }

.track-display h1 { font-size: 1.4rem; margin-bottom: 5px; }
.track-display h2 { font-size: 1rem; color: #00d2ff; font-weight: 300; margin-bottom: 10px; }
.status-indicator { font-size: 0.7rem; letter-spacing: 2px; color: #0f0; margin-bottom: 10px; }
.dot { display: inline-block; width: 8px; height: 8px; background: #0f0; border-radius: 50%; margin-right: 5px; animation: pulse 1.5s infinite; }

/* --- BOTONES --- */
.btn-neon, .btn-main {
    width: 100%; padding: 15px; border: none; border-radius: 12px;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    color: white; font-weight: 700; cursor: pointer; margin-bottom: 15px;
    transition: 0.3s;
}
/* --- BOTÓN MODO CUMPLEAÑOS (COMPORTAMIENTO MEJORADO) --- */
.btn-special {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efecto al pasar el mouse */
.btn-special:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* ESTADO ACTIVO (Cuando JS agrega la clase .active) */
.btn-special.active {
    background: linear-gradient(135deg, #ff0055, #ff5081);
    border-color: #ff80ab;
    color: white;
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.5);
    animation: pulseBday 2s infinite;
}

/* Animación de pulso para cuando el modo está encendido */
@keyframes pulseBday {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 0, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0); }
}

/* Icono girando sutilmente cuando está activo */
.btn-special.active i {
    animation: spinCake 3s linear infinite;
}

@keyframes spinCake {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(20deg); }
    20% { transform: rotate(-20deg); }
    30% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* --- SELECTOR (TOP RIGHT) --- */
.header-tools { position: fixed; top: 20px; right: 20px; z-index: 100; }
.custom-select {
    background: rgba(20, 20, 30, 0.8); color: white; padding: 10px;
    border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); outline: none;
}

/* --- CHAT CUMPLEAÑOS (BOTTOM LEFT) --- */
.bday-chat-container {
    position: fixed; bottom: 20px; left: 20px; width: 280px;
    background: rgba(20, 20, 30, 0.9); border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1); z-index: 100; overflow: hidden;
}
.bday-chat-header {
    background: #E91E63; padding: 12px; cursor: pointer;
    display: flex; justify-content: space-between; font-weight: 700;
}
.bday-chat-body { max-height: 0; transition: 0.4s; overflow-y: auto; }
.bday-chat-body.open { max-height: 300px; padding: 15px; }
.bday-card { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 10px 0; font-size: 0.85rem; }
.bday-card strong { color: #E91E63; display: block; }

/* --- ANIMACIONES --- */
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }