:root { 
    --spotify-green: #1DB954; 
    --bg-main: #c5de7a; 
    --card-bg: #049d018a; 
    --text-main: #ffffff;
    --input-bg: #ffffff;
    --input-text: #222;
}

body { 
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 50px;
    margin: 0;
    min-height: 100vh;
}

/* === Estilos Generales de Tarjetas === */
.card-dark {
    background: var(--card-bg);
    border-radius: 12px; 
    padding: 20px; 
    margin-bottom: 20px; 
    border: 1px solid rgba(0,0,0,0.1); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: white;
}

/* === Estilos Específicos del Login === */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    /* Heredamos estilos de card-dark pero forzamos más opacidad si es necesario */
    background: #049d01cc; /* Un poco más opaco que el card-bg normal para leer mejor */
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
}

.login-title {
    color: white;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* === Inputs y Formularios === */
.form-control-dark { 
    background: var(--input-bg); 
    border: 1px solid #444; 
    color: var(--input-text); 
    padding: 10px;
    border-radius: 8px;
}

.form-control-dark:focus { 
    background: #ffffff; 
    color: #000; 
    border-color: var(--spotify-green); 
    box-shadow: 0 0 0 0.25rem rgba(29, 185, 84, 0.25); 
    outline: none;
}

.form-label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

/* === Botones === */
.btn-spotify {
    background-color: var(--spotify-green);
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    transition: transform 0.2s, background 0.2s;
}

.btn-spotify:hover {
    background-color: #1ed760;
    transform: scale(1.02);
    color: white;
}

/* === Estilos de Admin (Temas y Canciones) === */
.btn-theme-container { position: relative; display: inline-block; margin: 3px; }
.btn-theme { border: 2px solid var(--spotify-green); background: white; color: #222724; border-radius: 20px; padding: 5px 15px; text-decoration: none; transition: 0.3s; }
.btn-theme:hover, .btn-theme.active { background: var(--spotify-green); color: white; }

.btn-delete-theme { position: absolute; top: -8px; right: -8px; background: #ff4444; color: white; border-radius: 50%; width: 20px; height: 20px; font-size: 10px; border: none; display: none; cursor: pointer; }
.btn-theme-container:hover .btn-delete-theme { display: block; }

.song-card { background: #daec70; border-radius: 8px; padding: 10px; margin-bottom: 8px; display: flex; align-items: center; gap: 15px; border: 1px solid transparent; color: #333; }
.song-card:hover { border-color: #555; background: #f4fdc9; }
.song-card img { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; background: #000; }

.year-input { width: 70px; text-align: center; font-weight: bold; color: var(--spotify-green); background: #222; border: 1px solid #444; border-radius: 4px; padding: 5px; font-size: 1em; }
.btn-danger {
    background-color: #e91e63; /* Un rosa/rojo más elegante */
    border: none;
}

.btn-danger:hover {
    background-color: #c2185b;
    transform: scale(1.05);
}