/**
 * layout-public.css — Layout global (navbar, footer, gov-bar, error)
 * Portal Ciudadano Sisvantec V8.3 (Miska)
 *
 * SECCIONES:
 *  1. Navbar
 *  2. Dropdown
 *  3. Footer
 *  4. Government Top Bar
 *  5. Notifications Dropdown
 *  6. Error Page
 *  7. Responsive
 */

/* ──────────────────────────────────────────
   1. Navbar
   ────────────────────────────────────────── */
.navbar-brand img {
    height: 42px;
}

.nav-link {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.nav-link:hover {
    color: var(--color-primary);
    background-color: rgba(var(--color-primary-rgb), 0.04);
}

.nav-link.active,
.nav-item.show .nav-link {
    color: var(--color-primary);
}

/* ──────────────────────────────────────────
   2. Dropdown
   ────────────────────────────────────────── */
.dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    animation: dropdown-fade 0.2s ease;
}

@keyframes dropdown-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: rgba(var(--color-primary-rgb), 0.05);
    color: var(--color-primary);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    margin-right: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.6;
}

.dropdown-item:hover i {
    opacity: 1;
    color: var(--color-primary);
}

/* ──────────────────────────────────────────
   3. Footer
   Diseño oscuro moderno con gradiente sutil.
   ────────────────────────────────────────── */
.footer {
    background: linear-gradient(180deg, var(--gray-800) 0%, var(--gray-900) 100%);
    color: rgba(255, 255, 255, 0.55);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    font-size: var(--font-size-sm);
}

.footer h5 {
    color: var(--color-surface);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.25rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ──────────────────────────────────────────
   4. Government Top Bar
   Barra superior limpia con tipografía clara.
   ────────────────────────────────────────── */
.gov-bar {
    background-color: var(--gray-900);
    font-size: 0.68rem;
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.6);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.2px;
}

.gov-bar a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.gov-bar a:hover {
    color: rgba(255, 255, 255, 0.95);
}

/* ──────────────────────────────────────────
   Navbar details
   ────────────────────────────────────────── */
.navbar-logo {
    height: 64px;
    width: auto;
}

.notif-badge-count {
    font-size: 0.55rem;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-auth-btn {
    width: 160px;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-xs);
    letter-spacing: 0.3px;
}

/* ──────────────────────────────────────────
   Notifications Dropdown
   ────────────────────────────────────────── */
.notifications-dropdown {
    width: 380px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.notif-dropdown-count {
    font-size: 0.7rem;
}

.notif-dropdown-list {
    max-height: 400px;
    overflow-y: auto;
}

.notif-dropdown-icon {
    width: 36px;
    height: 36px;
}

.notif-dropdown-content {
    min-width: 0;
}

.notif-dropdown-title {
    font-size: 0.875rem;
}

.notif-dropdown-message {
    font-size: 0.75rem;
    line-height: 1.3;
}

.notif-dropdown-time {
    font-size: 0.7rem;
}

/* ──────────────────────────────────────────
   Error Page
   ────────────────────────────────────────── */
.error-page-container {
    min-height: 80vh;
}

.error-stack-container {
    max-height: 300px;
}

/* ──────────────────────────────────────────
   7. Responsive
   ────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .nav-auth-btn {
        width: auto;
        font-size: 0.75rem;
    }

    .navbar-logo {
        height: 40px;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
    }

    .notifications-dropdown {
        width: 100vw;
        max-width: 380px;
    }

    .footer {
        padding: 2.5rem 0 1.5rem;
        margin-top: 3rem;
        text-align: center;
    }

    .footer h5 {
        margin-bottom: 0.75rem;
    }

    .gov-bar {
        text-align: center;
        font-size: 0.6rem;
    }
}
