/* =========================================
   DASHBOARD USUARIO (MI CUENTA)
   ========================================= */

.dashboard-wrapper {
    display: flex;
    min-height: 80vh;
    background-color: #f4f6f8; /* Fondo gris muy suave para contraste */
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* --- SIDEBAR (Barra Lateral) --- */
.dash-sidebar {
    width: 280px;
    background-color: #fff;
    padding: 40px 20px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.user-card-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.user-info-mini h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.user-info-mini span {
    font-size: 0.8rem;
    color: #888;
}

/* Menú Sidebar */
.dash-nav {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dash-link i { font-size: 1.1rem; }

.dash-link:hover, .dash-link.active {
    background-color: #f0f4ff; /* Azul muy clarito */
    color: var(--brand-blue);
}

.dash-link.logout {
    margin-top: auto; /* Empuja al fondo */
    color: #ff4444;
}

.dash-link.logout:hover {
    background-color: #fff0f0;
}

/* --- CONTENIDO PRINCIPAL --- */
/* Busca esto en tu CSS */
.dash-content {
    flex: 1;
    padding: 40px;
    
    /* AGREGA ESTAS DOS LÍNEAS MÁGICAS: */
    min-width: 0; /* Permite que el contenedor se encoja y fuerce el wrap */
    overflow-x: hidden; /* Evita cualquier desborde horizontal accidental */
}

.dash-header {
    margin-bottom: 40px;
}

.dash-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 5px;
}

.dash-subtitle {
    color: #666;
}

/* Tarjetas de Estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-blue);
}

.stat-info h3 { font-size: 1.8rem; margin: 0; font-weight: 800; color: #333; }
.stat-info p { margin: 0; font-size: 0.9rem; color: #888; }

/* Grid de Favoritos (Reutilizando estilos pro) */
.favorites-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 991px) {
    .dashboard-wrapper { flex-direction: column; }
    .dash-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #eee; padding: 20px; }
    .dash-content { padding: 20px; }
}