:root {
    --azul-fondo: #f0f4f8; /* Azul tenue elegante */
    --azul-primario: #1a3a5f;
    --verde-agua: #4fd1c5;
    --verde-boton: linear-gradient(145deg, #5de6d8, #47bcaf);
    --sombra: 0 10px 25px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--azul-fondo);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--sombra);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo {
    max-width: 180px;
    margin-bottom: 20px;
}

h2 {
    color: var(--azul-primario);
    margin-bottom: 10px;
    font-weight: 600;
}

p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
}

input:focus {
    border-color: var(--verde-agua);
}

.btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--verde-boton);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(79, 209, 197, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 209, 197, 0.6);
}

.btn-login:active {
    transform: translateY(0);
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: var(--azul-primario);
}

footer a {
    color: #2c5282;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsividad */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }
}
/* Estilos adicionales para el Dashboard */
.dashboard-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 260px;
    height: 100%;
    background: var(--azul-primario);
    color: white;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-sidebar {
    width: 100px;
    background: white;
    padding: 5px;
    border-radius: 5px;
}

.menu {
    flex: 1;
    padding: 20px 0;
}

.menu a {
    display: block;
    color: #a0aec0;
    padding: 15px 25px;
    text-decoration: none;
    transition: 0.3s;
}

.menu a:hover, .menu a.active {
    background: rgba(255,255,255,0.1);
    color: var(--verde-agua);
    border-left: 4px solid var(--verde-agua);
}

.main-content {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.top-bar {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-area {
    padding: 30px;
    flex: 1;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--sombra);
    text-align: center;
}

.card .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--verde-agua);
}

.logout-link {
    color: #fc8181 !important;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -260px;
        position: absolute;
        z-index: 1000;
    }
    .sidebar.active {
        margin-left: 0;
    }
}
/* (Mantener las variables y estilos anteriores) */

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.reloj {
    font-size: 0.9rem;
    color: var(--azul-primario);
    background: #e2e8f0;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.user-badge {
    background: var(--verde-agua);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.panel-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--sombra);
}

.panel-card h3 {
    color: var(--azul-primario);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--azul-fondo);
    padding-bottom: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item strong {
    color: var(--verde-agua);
    font-size: 1.2rem;
}

.stat-highlight p {
    margin: 15px 0;
    font-size: 1.1rem;
}

.stat-highlight hr {
    border: none;
    border-top: 1px solid #eee;
}