:root {
    --ab-primary: #2563eb;
    --ab-dark: #0f172a;
    --ab-muted: #64748b;
    --ab-border: #e5e7eb;
    --ab-bg: #f8fafc;
    --ab-navbar: #063f5c;
}

body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: var(--ab-bg);
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
}

.navbar-custom {
    background: linear-gradient(135deg, #063f5c, #075985);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.navbar-brand {
    font-size: 1.15rem;
    letter-spacing: -0.4px;
}

.nav-link {
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    padding: 8px 12px !important;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.16);
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.language-dropdown .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.language-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    display: inline-block;
}

.dropdown-menu {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
    padding: 8px;
}

.dropdown-item {
    border-radius: 11px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: #f1f5f9;
}

.dropdown-item.active,
.dropdown-item:active {
    background: #dcfce7;
    color: #166534;
    font-weight: 800;
}

main.container {
    min-height: calc(100vh - 145px);
}

.form-control,
.form-select {
    border-radius: 12px;
    border-color: var(--ab-border);
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ab-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.btn {
    border-radius: 12px;
    font-weight: 700;
}

.alert {
    border-radius: 14px;
    border: none;
}

.footer-custom {
    background: #0f172a;
    color: #cbd5e1;
    padding: 18px 0;
    margin-top: 36px;
    font-size: 13px;
}

.footer-custom a {
    color: #e2e8f0;
    text-decoration: none;
}

.footer-custom a:hover {
    color: #ffffff;
}

@media (max-width: 991px) {
    .navbar-collapse {
        padding-top: 16px;
    }

    .navbar-nav {
        align-items: stretch !important;
        gap: 8px !important;
    }

    .user-badge {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .nav-link,
    .btn.btn-success {
        width: 100%;
        text-align: center;
    }

    .language-dropdown .nav-link {
        justify-content: center;
    }

    .dropdown-menu {
        margin-top: 8px;
    }

    main.container {
        padding-left: 14px;
        padding-right: 14px;
        margin-top: 20px !important;
    }

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .navbar-brand {
        font-size: 1.05rem;
    }

    .footer-custom {
        padding: 14px 0;
        font-size: 12px;
    }

    .footer-custom .container {
        gap: 8px !important;
    }
}

.brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.14);
    color: #4ade80;
    font-size: 15px;
}

.navbar-custom {
    position: sticky;
    top: 0;
    z-index: 1050;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #021526, #063f5c);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-link {
    color: rgba(255, 255, 255, 0.78) !important;
    font-weight: 600;
    border-radius: 12px;
    padding: 10px 14px !important;
    transition: 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}

.notification-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 16px;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.user-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 991px) {
    .navbar-collapse {
        padding-top: 18px;
    }

    .navbar-nav {
        gap: 8px !important;
    }

    .notification-btn,
    .user-badge {
        width: 100%;
    }
}
