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

body {
    background-color: #f4f6f9;
    color: #333;
}

/* Contenedor Principal en Grid */
.dashboard-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* --- Sidebar --- */
.sidebar {
    width: 240px;
    background-color: #1b263b;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.logo-area {
    padding: 25px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: #00b4d8;
}

.nav-links {
    list-style: none;
    padding: 0;
}

.nav-links li a {
    display: block;
    padding: 15px 25px;
    color: #cbd5e1;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: #0077b6;
    color: #ffffff;
    border-left: 4px solid #90e0ef;
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: #eef2f5;
}

/* --- Estadísticas Superiores --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-title {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0f172a;
}

/* --- Grid Inferior (Tabla y Avisos) --- */
.content-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
}

/* --- Tarjeta de Tabla --- */
.table-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.table-card h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #1e293b;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

th {
    color: #64748b;
    font-weight: 600;
}

td {
    color: #334155;
}

/* --- Badges de Estado --- */
.badge {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.badge.entregado {
    background-color: #d1fae5;
    color: #065f46;
}

.badge.pendiente {
    background-color: #fef3c7;
    color: #92400e;
}

/* --- Avisos de Dirección --- */
.avisos-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.avisos-card h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #1e293b;
}

.avisos-card ul {
    list-style: none;
    padding: 0;
}

.avisos-card li {
    font-size: 0.85rem;
    color: #475569;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    line-height: 1.4;
}

.avisos-card li:last-child {
    border-bottom: none;
}