/* public/css/dashboard.css */

:root {
    --primary: #2e7d32;         /* Verde fuerte */
    --primary-light: #e8f5e9;   /* Verde muy suave */
    --text-dark: #333;
    --text-grey: #666;
    --bg-body: #f4f6f8;         /* Gris casi blanco para el fondo */
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
}

body {
    background-color: var(--bg-body);
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-dark);
}

/* --- ESTRUCTURA PRINCIPAL (GRID) --- */
.dashboard-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 2.5fr 1fr; /* Izquierda grande, Derecha pequeña */
    gap: 2rem;
}

/* --- 1. BARRA SUPERIOR (RESUMEN) --- */
.stats-bar {
    grid-column: 1 / -1; /* Ocupa todo el ancho */
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-card {
    flex: 1;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s;
    border-left: 5px solid var(--primary); /* Detalle de color */
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 2rem;
    background: var(--primary-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--primary);
}

.stat-info p {
    margin: 0;
    color: var(--text-grey);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- 2. CONTENIDO PRINCIPAL (IZQUIERDA) --- */
.main-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden; /* Para que el header no se salga */
}

.card-header {
    background: var(--white);
    padding: 1.5rem;
    border-bottom: 2px solid var(--bg-body);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-dark);
}

.feed-list {
    padding: 0;
}

.feed-item {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.feed-item:hover {
    background-color: #fafafa;
}

.feed-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 40px;
    text-align: center;
}

.feed-content {
    flex-grow: 1;
}

.feed-title {
    font-weight: bold;
    display: block;
    font-size: 1rem;
}

.feed-date {
    font-size: 0.85rem;
    color: var(--text-grey);
}

.feed-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- 3. SIDEBAR (DERECHA) --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.btn-action {
    display: block;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
    transition: background 0.3s;
}

.btn-action:hover {
    background: #1b5e20;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.widget-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    font-weight: bold;
}

.widget-content {
    padding: 0;
}

.menu-vertical {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-vertical li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: padding-left 0.2s, color 0.2s;
}

.menu-vertical li a:hover {
    padding-left: 2rem;
    color: var(--primary);
    background-color: var(--primary-light);
}

/* Responsive para celular */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr; /* Una sola columna */
    }
    .stats-bar {
        flex-direction: column;
    }
}