/*
 * Archivo: assets/css/estilos.css
 * Función: Estilos CSS personalizados para la aplicación Bitácora Personal.
 *          Fase UX + Menú Admin - Navbar compacta, cards modernas, badges discretos.
 */

/* ============================================================
   BASE
   ============================================================ */
body {
    background-color: #f0f2f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.9rem;
}

main {
    flex: 1;
}

footer {
    background-color: #1a1d23;
    color: #adb5bd;
    font-size: 0.82rem;
}

/* ============================================================
   NAVBAR COMPACTA - UNA SOLA LÍNEA
   ============================================================ */
.bpa-navbar {
    background-color: #12151c !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 46px;
}

.bpa-navbar-brand {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    white-space: nowrap;
}

.bpa-nav-links {
    gap: 0;
}

.bpa-nav-link {
    font-size: 0.78rem !important;
    padding: 0.6rem 0.55rem !important;
    white-space: nowrap;
    letter-spacing: 0.01em;
    color: rgba(255,255,255,0.72) !important;
    transition: color 0.18s ease;
}

.bpa-nav-link:hover,
.bpa-nav-link:focus {
    color: #ffffff !important;
}

.bpa-nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
}

/* Enlace ADMIN con acento sutil */
.bpa-nav-admin {
    color: rgba(255, 200, 100, 0.85) !important;
    border-left: 1px solid rgba(255,255,255,0.1);
    margin-left: 4px;
    padding-left: 0.65rem !important;
}

.bpa-nav-admin:hover {
    color: #ffc107 !important;
}

/* Zona de sesión derecha */
.bpa-nav-right {
    gap: 0.15rem;
}

.bpa-session-info {
    gap: 0;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 0.75rem;
    margin-right: 0.5rem;
}

.bpa-username {
    font-size: 0.77rem;
    white-space: nowrap;
}

.bpa-role-badge {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    padding: 0.2em 0.55em;
    border-radius: 3px;
    background-color: #3a3f50 !important;
}

/* Rol ADMIN en badge dorado */
.bpa-role-badge:contains("ADMIN"),
.bpa-role-badge[data-rol="ADMIN"] {
    background-color: #7c5a00 !important;
    color: #ffc107 !important;
}

.bpa-logout-link {
    font-size: 0.77rem !important;
    padding: 0.6rem 0.55rem !important;
    color: rgba(255, 100, 100, 0.75) !important;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.bpa-logout-link:hover {
    color: #ff6b6b !important;
}

/* ============================================================
   DASHBOARD - HERO
   ============================================================ */
.bpa-hero {
    background: linear-gradient(135deg, #1a1d23 0%, #22272e 100%);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.06);
}

.bpa-hero h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #f8f9fa;
    margin-bottom: 0.3rem;
}

.bpa-hero .bpa-subtitle {
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
}

/* ============================================================
   TARJETAS DE ESTADÍSTICAS
   ============================================================ */
.bpa-stat-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border-left-width: 4px !important;
    border-left-style: solid !important;
}

.bpa-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}

.bpa-stat-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    display: block;
    margin-bottom: 0.3rem;
}

.bpa-stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}

/* ============================================================
   CARDS MODERNAS
   ============================================================ */
.bpa-card {
    border: 1px solid #e4e8ed;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    overflow: hidden;
}

.bpa-card-header {
    background: #1a1d23;
    color: #f8f9fa;
    padding: 0.85rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
}

.bpa-card-body {
    background: #f8f9fa;
    padding: 1.5rem;
}

/* ============================================================
   WIZARD STEPS
   ============================================================ */
.bpa-step-card {
    border-radius: 10px;
    border-width: 1.5px !important;
    transition: all 0.25s ease;
    cursor: pointer;
}

.bpa-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.09) !important;
}

/* ============================================================
   PRÓXIMA ACCIÓN RECOMENDADA
   ============================================================ */
.bpa-next-action {
    background: #ffffff;
    border-radius: 10px;
    border-left: 4px solid;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

/* ============================================================
   ACCIONES RÁPIDAS
   ============================================================ */
.bpa-quick-action {
    border: 1px solid #e4e8ed;
    border-radius: 10px;
    padding: 1.25rem;
    background: #ffffff;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.bpa-quick-action:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    transform: translateY(-2px);
    border-color: #adb5bd;
    color: inherit;
    text-decoration: none;
}

/* ============================================================
   BARRA DE PROGRESO
   ============================================================ */
.bpa-progress-bar {
    height: 8px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
    margin-bottom: 1rem;
}

.bpa-progress-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #198754, #20c997);
    transition: width 0.6s ease;
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes pulse-warning {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
    50%       { box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.2); }
}

.pulse-warning {
    animation: pulse-warning 2.2s infinite;
}

.transition-hover {
    transition: all 0.25s ease;
}

.transition-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.09) !important;
}

/* ============================================================
   RESPONSIVO - NAVBAR MÓVIL
   ============================================================ */
@media (max-width: 991.98px) {
    .bpa-nav-link {
        padding: 0.55rem 0.75rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .bpa-nav-admin {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-left: 0;
    }

    .bpa-session-info {
        border-left: none;
        padding-left: 0.75rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 0.5rem;
        margin-top: 0.25rem;
    }

    .bpa-hero {
        padding: 1.5rem 1.25rem;
    }

    .bpa-hero h1 {
        font-size: 1.45rem;
    }
}
