/* Tema Semi-Dark */
:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-surface: #0f3460;
    --accent: #e94560;
    --accent-light: #ff6b8b;
    --text-primary: #f1f1f1;
    --text-secondary: #b0b0b0;
    --border-color: #2d3748;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.semi-dark {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
}

/* Banner de Anuncios */
.announcement-banner {
    background: linear-gradient(90deg, var(--bg-surface) 0%, var(--accent) 100%);
    padding: 1rem;
    border-bottom: 3px solid var(--accent-light);
}

.announcement {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--accent-light);
}

.announcement h3 {
    color: var(--accent-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.header-left h1 {
    font-size: 1.8rem;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.user-badge {
    background: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: bold;
}

.logout-btn {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.logout-btn:hover {
    color: var(--accent-light);
}

/* Estadísticas Globales */
.global-stats {
    display: flex;
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    min-width: 200px;
    border: 1px solid var(--border-color);
}

.progress-container {
    background: var(--bg-secondary);
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-bar {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Reproductor Principal */
.master-player {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-surface);
    padding: 1rem;
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.master-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.master-controls button {
    background: var(--accent);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.master-controls button:hover {
    background: var(--accent-light);
    transform: scale(1.1);
}

#masterVolume {
    flex: 1;
    max-width: 200px;
}

/* Grid de Canciones */
.songs-section {
    padding: 2rem;
}

.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.song-player {
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
}

.song-player:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.song-info h3 {
    color: var(--accent-light);
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.song-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Controles de Canción */
.player-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.control-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

.control-btn.active {
    background: var(--accent);
    border-color: var(--accent);
}

/* Botones de Mute */
.track-mutes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.mute-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mute-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.mute-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.mute-btn.muted {
    opacity: 0.5;
    text-decoration: line-through;
}

/* Checkbox Aprendido */
.learned-section {
    margin: 1rem 0;
}

.learned-checkbox {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

/* Lyrics Panel */
.lyrics-panel {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.8;
    border-left: 3px solid var(--accent);
}

/* Sección de Propuestas */
.proposals-section {
    padding: 2rem;
    background: var(--bg-secondary);
    margin-top: 2rem;
}

.proposal-form {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.form-row input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
}

textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

/* Footer */
footer {
    background: var(--bg-surface);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.footer-content p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.pwa-hint {
    background: rgba(233, 69, 96, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tema Corporativo */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2d3748;
    --accent-color: #4299e1;
    --accent-light: #63b3ed;
    --text-primary: #f7fafc;
    --text-secondary: #cbd5e0;
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-surface: #4a5568;
    --border-color: #4a5568;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.corporate-dark {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
}

/* Header */
header {
    background: var(--primary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    background: white;
    padding: 2px;
}

.app-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent-light);
}

.app-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

/* Cards */
.card {
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.toast-success {
    border-left-color: var(--success-color);
}

.toast-error {
    border-left-color: var(--danger-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Footer */
footer {
    background: var(--primary-color);
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom {
    background: var(--secondary-color);
    padding: 1rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

/* Hamburger Menu Styles */
.hamburger-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-light);
}

.sidebar-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    transition: right 0.3s ease-out;
    z-index: 1001;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .songs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sidebar-menu {
        width: 85%;
        right: -85%;
    }
}