/* --- DASHBOARD & LAYOUT GENERAL (Minuto Antes) --- */
body, html { margin: 0; padding: 0; background-color: #f3f4f6; }

/* Evitar conflictos con temas de WP */
.uma-dashboard-layout {
    display: flex;
    min-height: 100vh;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    color: #333;
}

/* --- 1. SIDEBAR (Menú Izquierdo) --- */
.uma-sidebar {
    width: 260px;
    background-color: #1a1a1a; /* Negro Corporativo */
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
}

.uma-sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid #333;
}

.uma-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Navegación */
.uma-sidebar-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.uma-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: #9ca3af; /* Gris claro */
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.uma-menu-item:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.05);
}

.uma-menu-item.active {
    color: #fff;
    background-color: rgba(59, 130, 246, 0.15); /* Fondo Azul suave */
    border-left-color: #3b82f6; /* Línea Azul Brillante */
}

.uma-menu-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer del Sidebar */
.uma-sidebar-footer {
    padding: 10px 0 0 0;
    border-top: 1px solid #333;
    background-color: #111;
}

.uma-mini-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background-color: #000;
}

.uma-mini-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
}

.uma-profile-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.uma-profile-name { font-weight: 600; font-size: 0.9rem; color: #fff; }
.uma-profile-role { font-size: 0.75rem; color: #666; }


/* --- 2. CONTENIDO PRINCIPAL (Derecha) --- */
.uma-main-content {
    flex: 1;
    margin-left: 260px; /* Deja espacio al sidebar */
    padding: 40px;
    background-color: #f3f4f6;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Header Móvil (Oculto en PC) */
.uma-mobile-header { display: none; }

/* Títulos y Header de Contenido */
.uma-content-header { margin-bottom: 30px; }
.uma-content-header h1 { font-size: 2rem; color: #111; margin: 0 0 5px 0; font-weight: 800; }
.uma-content-header p { color: #666; margin: 0; font-size: 1rem; }


/* --- 3. COMPONENTES DEL DASHBOARD --- */

/* Vistas (Tabs) */
.uma-tab-content { display: none; animation: fadeIn 0.4s ease; }
.uma-tab-content.active { display: block; }

/* Grids */
.uma-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

/* Tarjetas Blancas */
.uma-card-white, .uma-card-widget {
    background: #fff;
    border-radius: 12px; /* Más moderno */
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e5e7eb;
}

.uma-card-widget h3, 
.uma-card-white h3 { 
    margin-top: 0; 
    padding-bottom: 15px; 
    margin-bottom: 20px; 
    font-size: 1.1rem; 
    font-weight: 700;
    color: #111;
    border-bottom: 1px solid #f0f0f0;
}

/* Stats Mini */
.uma-mini-stats { display: flex; gap: 15px; margin-top: 15px; }
.stat-box {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid #eee;
    flex: 1;
}
.stat-box strong { 
    display: block; 
    font-size: 1.5rem; 
    color: #111; 
    margin-bottom: 5px; 
    font-weight: 800; 
}
.stat-box.alert strong { color: #ef4444; }


/* --- 4. TABLAS (HISTORIAL Y SOLICITUDES) --- */
.uma-attendance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
}

.uma-attendance-table th {
    text-align: left;
    padding: 15px;
    background-color: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
}

.uma-attendance-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #374151;
}

.uma-attendance-table tr:last-child td { border-bottom: none; }
.uma-attendance-table tr:hover { background-color: #fafafa; }

/* Etiquetas de Estado (Badges) */
.uma-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.uma-status-badge.uma-status-pending,
.uma-status-badge.uma-status-not_checked_in { 
    background-color: #fff7ed; color: #c2410c; /* Naranja */
}

.uma-status-badge.uma-status-approved,
.uma-status-badge.uma-status-checked_in,
.uma-status-badge.uma-status-present { 
    background-color: #ecfccb; color: #365314; /* Verde */
}

.uma-status-badge.uma-status-rejected,
.uma-status-badge.uma-status-absent { 
    background-color: #fef2f2; color: #991b1b; /* Rojo */
}

.uma-status-badge.uma-status-completed {
    background-color: #f3f4f6; color: #374151; /* Gris */
}


/* --- 5. PERFIL --- */
.profile-card-full { text-align: left; }
.uma-profile-header-large { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.big-avatar { width: 90px; height: 90px; border-radius: 50%; border: 4px solid #f3f4f6; }
.uma-profile-details p { 
    margin: 15px 0; 
    color: #4b5563; 
    border-bottom: 1px solid #f0f0f0; 
    padding-bottom: 15px; 
    display: flex;
    justify-content: space-between;
}
.uma-profile-details strong { color: #111; }


/* --- 6. RESPONSIVE (MÓVIL) --- */
@media (max-width: 768px) {
    .uma-sidebar { transform: translateX(-100%); width: 280px; }
    .uma-sidebar.open { transform: translateX(0); box-shadow: 10px 0 50px rgba(0,0,0,0.5); }
    
    .uma-main-content { margin-left: 0; padding: 20px; padding-top: 80px; }
    
    .uma-mobile-header {
        display: flex;
        align-items: center;
        gap: 15px;
        position: fixed;
        top: 0; left: 0; right: 0;
        background: #fff;
        padding: 15px 20px;
        z-index: 900;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    #uma-toggle-sidebar {
        background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #333; padding: 0;
    }
    
    .uma-grid-2 { grid-template-columns: 1fr; }
    
    /* Ajuste de tablas en móvil */
    .uma-attendance-table { display: block; overflow-x: auto; white-space: nowrap; }
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}