:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --success: #00b894;
    --danger: #ff7675;
    --info: #0984e3;
    --dark: #2d3436;
    --light: #dfe6e9;
    --bg-gradient: linear-gradient(135deg, #1e272e 0%, #485460 100%);
    --glass: rgba(255, 255, 255, 0.95);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body {
    background: var(--bg-gradient);
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.public-page { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }

.container { max-width: 800px; margin: 0 auto; padding: 20px; width: 100%; flex: 1; }

/* ===== TARJETAS ===== */
.card-panel {
    background: var(--glass);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 25px;
    animation: slideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ===== FORMULARIOS ===== */
.input-group { margin-bottom: 20px; position: relative; }
.input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #636e72; font-size: 1.1rem; }
input {
    width: 100%; padding: 16px 16px 16px 45px;
    border: 2px solid #b2bec3; border-radius: 12px;
    font-size: 16px; transition: 0.3s; outline: none;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15); }

/* ===== BOTONES ESTÁNDAR ===== */
button {
    width: 100%; padding: 16px; border: none; border-radius: 12px;
    font-size: 16px; font-weight: 700; cursor: pointer;
    color: white; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 10px;
}
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--secondary); transform: translateY(-2px); }
.btn-danger { background: var(--danger); }
.btn-success { background: var(--success); }

/* ===== BOTÓN DE DESCARGA PREMIUM ===== */
.btn-download {
    background: linear-gradient(45deg, #4361ee, #3a0ca3);
    color: white;
    padding: 18px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}
.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.5);
}
.btn-download:active { transform: scale(0.98); }

/* ===== ELEMENTOS VISUALES ===== */
.bingo-image { width: 100%; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); margin: 20px 0; transition: transform 0.3s; }
.bingo-image:hover { transform: scale(1.02); }

.assignment-item {
    background: white; border: 1px solid #dfe6e9; padding: 15px;
    border-radius: 10px; margin-bottom: 10px;
    display: flex; justify-content: space-between; align-items: center;
}

/* ===== NOTIFICACIONES (TOASTS) ===== */
#toast-container {
    position: fixed; top: 20px; right: 20px; z-index: 10000;
    display: flex; flex-direction: column; gap: 15px;
}
.toast {
    min-width: 320px; background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px); padding: 15px 20px;
    border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex; align-items: center; gap: 15px;
    transform: translateX(120%); transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid #333;
}
.toast.show { transform: translateX(0); }
.toast-icon { font-size: 24px; }
.toast-content { flex: 1; }
.toast-title { font-weight: 800; font-size: 14px; margin-bottom: 2px; text-transform: uppercase; }
.toast-message { font-size: 14px; color: #636e72; }

/* Variantes Toast */
.toast-success { border-color: var(--success); } .toast-success .toast-icon, .toast-success .toast-title { color: var(--success); }
.toast-error { border-color: var(--danger); } .toast-error .toast-icon, .toast-error .toast-title { color: var(--danger); }
.toast-info { border-color: var(--info); } .toast-info .toast-icon, .toast-info .toast-title { color: var(--info); }

/* Animaciones */
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) { .container { padding: 15px; } .toast { min-width: auto; width: 90vw; } }