/* --- VARIABLES DE COLOR (Inspirado en la imagen) --- */
:root {
    --sidebar-width: 260px;
    --sidebar-bg: #ffffff; /* Sidebar blanco como en la imagen */
    --body-bg: #f3f6f9;
    --text-dark: #1e2022;
    --text-muted: #8c98a4;
    --primary: #00c9a7; /* El color verde menta de la imagen */
    --secondary: #845adf; /* Un morado para contrastar */
    --card-shadow: 0 0.75rem 1.5rem rgba(18,38,63,.03);
    --border-radius: 12px;
}

body {
    background-color: var(--body-bg);
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-dark);
}

/* --- SIDEBAR ACTUALIZADO (Blanco) --- */
.sidebar {
    background-color: white;
    border-right: 1px solid #e9edf2;
    /* ... resto de propiedades del paso anterior ... */
}
.sidebar-header { background: white; border-bottom: none; }
.user-info { color: var(--text-dark); border-bottom: 1px solid #eee; }
.user-info strong { color: var(--primary); }
.menu li a { color: var(--text-dark); font-weight: 500; }
.menu li a:hover, .menu li a.active { background-color: #f8f9fa; color: var(--primary); border-left-color: var(--primary); }

/* --- HEADER SUPERIOR (NUEVO) --- */
.top-header {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between; /* Separa buscador y perfil */
    align-items: center;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    border-radius: var(--border-radius);
}

.search-bar input {
    background: #f8f9fa;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    width: 300px;
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-circle {
    width: 40px; height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
}

/* --- TARJETAS DE ESTADÍSTICAS (LOS 4 CUADROS) --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-5px); }

.stat-info h3 { margin: 0; font-size: 24px; font-weight: 700; color: var(--text-dark); }
.stat-info p { margin: 5px 0 0; color: var(--text-muted); font-size: 14px; }

.stat-icon {
    width: 50px; height: 50px;
    background: rgba(0, 201, 167, 0.1); /* Verde suave */
    color: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
/* Variaciones de color para iconos */
.stat-icon.purple { background: rgba(132, 90, 223, 0.1); color: var(--secondary); }
.stat-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.stat-icon.orange { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

/* --- CONTENIDO DIVIDIDO (BANNER Y TABLAS) --- */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 partes izquierda, 1 parte derecha */
    gap: 25px;
}

.welcome-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    background-image: linear-gradient(to right, #ffffff 50%, #f0fff4 100%); /* Efecto degradado sutil */
    margin-bottom: 30px;
}

.table-card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}
.table-card h3 { margin-top: 0; border-bottom: 1px solid #eee; padding-bottom: 15px; font-size: 16px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; }

/* Filas de lista bonita */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}
.list-item:last-child { border-bottom: none; }
.badge { padding: 5px 10px; border-radius: 5px; font-size: 12px; font-weight: bold; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }