/* /assets/css/style.css */
:root {
    --primary-color: #0d6efd;
    --text-light: #ffffff;
    --text-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    /* Fondo temporal vibrante para que el glassmorphism resalte */
    background: linear-gradient(45deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* La magia del Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 100%;
    max-width: 400px;
}

.glass-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.glass-input {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    outline: none;
    transition: all 0.3s ease;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--text-light);
}

.glass-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    color: var(--text-light);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.9rem;
    background: rgba(220, 53, 69, 0.5); /* Rojo semi-transparente */
    border: 1px solid rgba(220, 53, 69, 0.8);
}

/* --- ESTILOS DEL PANEL DE ADMINISTRACIÓN --- */
.admin-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
    padding: 15px;
    gap: 15px;
    flex-direction: column; /* Móvil por defecto */
}

@media (min-width: 768px) {
    .admin-layout {
        flex-direction: row; /* Escritorio */
        padding: 20px;
        gap: 25px;
    }
}

/* Sidebar de Cristal */
.glass-sidebar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-width: 250px;
}

.glass-sidebar h3 {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.glass-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.glass-sidebar a {
    text-decoration: none;
    color: var(--text-light);
    padding: 12px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: block;
    font-weight: 500;
}

.glass-sidebar a:hover, .glass-sidebar a.active {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Contenido Principal */
.admin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tarjetas para Estadísticas (Dashboard) */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-box {
    text-align: center;
}

.stat-box h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-box .number {
    font-size: 2.5rem;
    font-weight: bold;
}