

/* RESET BÁSICO */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #f3f4f6; color: #1f2937; }

/* LAYOUT PRINCIPAL */
.dashboard-container { display: flex; height: 100vh; overflow: hidden; }

/* SIDEBAR (MENÚ LATERAL) */
.sidebar {
    width: 260px;
    background: #1e1b4b; /* Azul oscuro elegante */
    color: white;
    display: flex;
    flex-direction: column;
    flex-shrink: 0; /* Evita que se encoja */
}
.logo-area {
    padding: 25px;
    text-align: center;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.logo-area img { height: 50px; margin-bottom: 10px; display: block; margin-left: auto; margin-right: auto; }
.logo-area h2 { font-size: 16px; font-weight: 600; color: #e0e7ff; letter-spacing: 0.5px; }

.nav-menu { list-style: none; padding: 20px 10px; flex-grow: 1; }
.nav-item {
    padding: 12px 20px;
    margin-bottom: 5px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex; align-items: center; gap: 12px;
    color: #c7d2fe; font-weight: 500;
}
.nav-item:hover, .nav-item.active {
    background: #6366f1; /* Color primario vibrante */
    color: white;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.nav-item i { width: 24px; text-align: center; font-size: 18px; }

.sidebar-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.btn-logout {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: rgba(239,68,68,0.15); color: #fca5a5;
    padding: 12px; border-radius: 8px; text-decoration: none; font-weight: 600;
    transition: 0.2s;
}
.btn-logout:hover { background: #ef4444; color: white; }

/* CONTENIDO PRINCIPAL */
.main-content { flex-grow: 1; overflow-y: auto; padding: 30px; }
.top-bar { margin-bottom: 30px; display: flex; justify-content: space-between; align-items: center; }
.welcome-text h1 { font-size: 24px; color: #111827; }
.date-display { color: #6b7280; margin-top: 5px; }

/* TARJETAS DE ESTADÍSTICAS */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px; }
.stat-card {
    background: white; padding: 25px; border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: flex; align-items: center; gap: 20px; border: 1px solid #e5e7eb;
}
.stat-icon {
    width: 60px; height: 60px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.stat-info h3 { font-size: 28px; margin: 0; color: #111827; }
.stat-info p { margin: 5px 0 0; color: #6b7280; font-size: 14px; font-weight: 500; }

/* CONTENEDORES BLANCOS */
.content-card {
    background: white; padding: 30px; border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid #e5e7eb;
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* FORMULARIOS */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #374151; font-size: 14px; }
.form-control {
    width: 100%; padding: 12px 15px;
    border: 2px solid #e5e7eb; border-radius: 10px;
    font-size: 15px; transition: 0.2s;
}
.form-control:focus { border-color: #6366f1; outline: none; box-shadow: 0 0 0 4px rgba(99,102,241,0.1); }
.btn-primary {
    background: #6366f1; color: white; border: none; padding: 14px 40px;
    border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 16px;
    margin-top: 30px; display: inline-flex; align-items: center; gap: 10px;
    transition: 0.2s;
}
.btn-primary:hover { background: #4f46e5; transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(99,102,241,0.5); }
```

S