:root {
    --anb-primary: #093f51;
    --anb-accent: #16abb6;
    --anb-light: #ffffff;
    --anb-surface: #f3f7f8;
    --anb-ink: #12313d;
}

.anb-auth-body,
.anb-auth-body * {
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
    color: var(--anb-ink);
}

/* ─── Auth page ─── */
.anb-auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--anb-primary);
    overflow: hidden;
    position: relative;
}

.anb-auth-bg-layer {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 100%, rgba(22,171,182,.25), transparent),
        radial-gradient(ellipse 60% 50% at 80% 10%, rgba(22,171,182,.15), transparent),
        linear-gradient(160deg, #061e28 0%, #093f51 50%, #0c5a72 100%);
    z-index: 0;
}

.anb-auth-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
    z-index: 0;
    pointer-events: none;
}
.anb-auth-orb--1 {
    width: 400px; height: 400px;
    background: var(--anb-accent);
    top: -120px; right: -80px;
    animation: orbFloat 8s ease-in-out infinite alternate;
}
.anb-auth-orb--2 {
    width: 300px; height: 300px;
    background: #093f51;
    bottom: -100px; left: -60px;
    animation: orbFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, -20px) scale(1.08); }
}

.anb-auth-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}

/* ─── Login card ─── */
.anb-login-card {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    box-shadow:
        0 25px 60px rgba(0,0,0,.25),
        0 0 0 1px rgba(255,255,255,.08);
}

.anb-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.anb-login-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px; height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--anb-primary), var(--anb-accent));
    padding: 2px;
    margin-bottom: 1rem;
}

.anb-login-logo {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 16px;
    background: var(--anb-light);
    padding: 10px;
}

.anb-login-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--anb-primary);
    letter-spacing: -.02em;
    margin-bottom: .25rem;
}

.anb-login-subtitle {
    font-size: .875rem;
    color: #7a8f97;
    font-weight: 400;
}

/* ─── Alert ─── */
.anb-alert {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .75rem 1rem;
    border-radius: 12px;
    font-size: .8125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.anb-alert--warn {
    background: #fef5e7;
    color: #92600a;
    border: 1px solid #fce3b6;
}

/* ─── Form ─── */
.anb-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.anb-input-group { display: flex; flex-direction: column; gap: .375rem; }

.anb-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--anb-primary);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.anb-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.anb-input-wrap > i:first-child {
    position: absolute;
    left: 14px;
    font-size: .95rem;
    color: #a0b4bb;
    pointer-events: none;
    z-index: 1;
}

.anb-input {
    width: 100%;
    padding: .8rem .9rem .8rem 2.75rem;
    border: 1.5px solid #dfe7ea;
    border-radius: 12px;
    font-size: .9375rem;
    font-family: inherit;
    color: var(--anb-ink);
    background: var(--anb-surface);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none;
    appearance: none;
}

.anb-input::placeholder { color: #b0c0c6; }

.anb-input:focus {
    border-color: var(--anb-accent);
    box-shadow: 0 0 0 3px rgba(22,171,182,.12);
    background: var(--anb-light);
}

/* Select */
.anb-input-wrap--select { position: relative; }
.anb-select { cursor: pointer; padding-right: 2.5rem; }
.anb-select-arrow {
    position: absolute;
    right: 14px;
    font-size: .7rem;
    color: #a0b4bb;
    pointer-events: none;
}

/* ─── Submit button ─── */
.anb-btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .9rem;
    margin-top: .5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--anb-light);
    background: linear-gradient(135deg, var(--anb-primary) 0%, var(--anb-accent) 100%);
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, opacity .2s;
}

.anb-btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(22,171,182,.35);
}

.anb-btn-login:active {
    transform: translateY(0);
}

/* ─── Footer ─── */
.anb-auth-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1.25rem;
    font-size: .75rem;
    color: rgba(255,255,255,.4);
}

/* ─── Flash alerts override ─── */
.anb-auth-wrapper .alert {
    border-radius: 12px;
    font-size: .8125rem;
    margin-bottom: 1rem;
}

.btn-anb-primary {
    background: linear-gradient(135deg, var(--anb-primary), var(--anb-accent));
    border: 0;
    color: var(--anb-light);
}

.btn-anb-primary:hover,
.btn-anb-primary:focus {
    color: var(--anb-light);
    opacity: 0.96;
}

.anb-dashboard-body {
    background: #eef5f6;
}

.anb-topbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(9, 63, 81, 0.08);
}

.anb-topbar .container-fluid {
    min-height: 64px;
}

.anb-topbar-app {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--anb-primary);
    line-height: 1.1;
}

.anb-status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(22, 171, 182, 0.12);
    color: #0f6f77;
    border: 1px solid rgba(22, 171, 182, 0.18);
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
}

.anb-status-badge-offline {
    background: rgba(255, 193, 7, 0.18);
    color: #8a6500;
    border-color: rgba(255, 193, 7, 0.2);
}

.anb-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    color: var(--anb-primary);
    text-decoration: none;
    border: 1px solid rgba(9, 63, 81, 0.08);
}

.anb-user-toggle:hover {
    color: var(--anb-primary);
}

.anb-sidebar {
    background: linear-gradient(180deg, #082d3a 0%, #093f51 55%, #0f5f74 100%);
}

.anb-brand {
    background: rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.anb-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
}

.anb-brand-logo,
.anb-sidebar-user-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    border-radius: 0.9rem;
    background: #fff;
    padding: 0.45rem;
    flex-shrink: 0;
}

.anb-brand .brand-text {
    white-space: normal;
    line-height: 1.2;
}

.anb-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem;
    margin: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
}

.anb-nav-section {
    margin-top: 0.8rem;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.anb-nav-link {
    padding: 0.85rem 0.95rem;
    border-radius: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    transition: background .2s ease;
}

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

.anb-nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(22, 171, 182, 0.95), rgba(13, 128, 139, 0.95));
    box-shadow: 0 10px 24px rgba(6, 30, 40, 0.2);
}

.anb-content {
    background: transparent;
}

.anb-content-inner {
    padding: 0 1.5rem 2rem;
}

.anb-page-header {
    padding-bottom: 1.25rem;
}

.anb-page-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
    color: var(--anb-primary);
}

.anb-page-subtitle {
    color: #6d848d;
    max-width: 46rem;
}

.anb-version-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4f6973;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(9, 63, 81, 0.08);
}

.anb-dashboard-stat {
    border-radius: 1.2rem;
    box-shadow: 0 14px 30px rgba(9, 63, 81, 0.08);
}

.anb-dashboard-stat-primary {
    background: linear-gradient(135deg, #093f51 0%, #0f5a74 100%);
    color: var(--anb-light);
}

.anb-dashboard-stat-accent {
    background: linear-gradient(135deg, #16abb6 0%, #0f7d86 100%);
    color: var(--anb-light);
}

.anb-dashboard-stat-light {
    background: linear-gradient(135deg, #ffffff 0%, #ecf8fa 100%);
    color: var(--anb-ink);
    border: 1px solid rgba(9, 63, 81, 0.08);
}

.anb-stat-label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.74rem;
    margin-bottom: 0.55rem;
}

.anb-stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.anb-stat-copy {
    opacity: 0.92;
}

.anb-stat-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.anb-dashboard-stat-light .anb-stat-icon-wrap {
    background: rgba(9, 63, 81, 0.08);
}

.anb-surface-card {
    border-radius: 1.2rem;
    box-shadow: 0 12px 28px rgba(9, 63, 81, 0.06);
}

.anb-surface-card .form-control,
.anb-surface-card .form-select {
    border-radius: 0.9rem;
    border-color: rgba(9, 63, 81, 0.12);
    padding: 0.75rem 0.9rem;
}

.anb-surface-card .form-control:focus,
.anb-surface-card .form-select:focus {
    border-color: rgba(22, 171, 182, 0.7);
    box-shadow: 0 0 0 0.25rem rgba(22, 171, 182, 0.12);
}

.anb-surface-card .form-check-input:checked {
    background-color: var(--anb-accent);
    border-color: var(--anb-accent);
}

.anb-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--anb-primary);
}

.anb-section-copy {
    color: #78909a;
    font-size: 0.9rem;
}

.anb-surface-muted {
    padding: 1.2rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(9, 63, 81, 0.06), rgba(22, 171, 182, 0.1));
    border: 1px solid rgba(9, 63, 81, 0.08);
}

.anb-mini-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    background: rgba(22, 171, 182, 0.12);
    color: #0c7981;
    font-size: 0.78rem;
    font-weight: 700;
}

.anb-hero-eyebrow {
    margin-bottom: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f7d86;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.anb-hero-title {
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 800;
    color: var(--anb-primary);
    margin-bottom: 0.5rem;
}

.anb-feature-card {
    border-radius: 1rem;
    border: 1px solid rgba(9, 63, 81, 0.08);
    background: #fff;
}

.anb-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    width: 3.25rem;
    height: 3.25rem;
    background: rgba(9, 63, 81, 0.08);
    color: var(--anb-primary);
    margin-bottom: 1rem;
}

.anb-feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--anb-primary);
    margin-bottom: 0.25rem;
}

.anb-feature-kicker {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f7d86;
    margin-bottom: 0.5rem;
}

.anb-table {
    margin-bottom: 0;
}

.anb-table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5f7882;
    border-bottom-width: 1px;
}

.anb-table tbody tr:last-child td {
    border-bottom: 0;
}

.anb-detail-card {
    padding: 0.85rem;
    border-radius: 1rem;
    background: rgba(9, 63, 81, 0.03);
    border: 1px solid rgba(9, 63, 81, 0.08);
}

.anb-detail-card[open] {
    background: rgba(9, 63, 81, 0.05);
}

.anb-local-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.anb-local-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--anb-primary);
}

.anb-meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(9, 63, 81, 0.08);
}

.anb-meta-list li:last-child {
    border-bottom: 0;
}

.anb-meta-list span {
    color: #738992;
    font-size: 0.85rem;
}

.anb-meta-list strong {
    color: var(--anb-ink);
    text-align: right;
}

.anb-branch-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(9, 63, 81, 0.08);
    font-size: 0.875rem;
    color: var(--anb-primary);
    font-weight: 700;
}

details > summary {
    cursor: pointer;
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

@media (max-width: 480px) {
    .anb-auth-wrapper { padding: 1rem; }
    .anb-login-card { padding: 2rem 1.25rem 1.5rem; border-radius: 16px; }
    .anb-login-title { font-size: 1.25rem; }
}

@media (max-width: 991.98px) {
    .anb-page-header {
        text-align: left;
    }

    .anb-version-chip {
        width: 100%;
        justify-content: flex-start;
    }

    .anb-stat-value {
        font-size: 1.65rem;
    }
}

@media (max-width: 767.98px) {
    .anb-topbar {
        padding-inline: 0;
    }

    .anb-content-inner {
        padding: 1rem 1rem 1.5rem;
    }

    .anb-hero-title {
        font-size: 1.15rem;
    }

    .anb-local-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .anb-meta-list li {
        flex-direction: column;
        gap: 0.35rem;
    }

    .anb-meta-list strong {
        text-align: left;
    }

    .anb-branch-pill {
        font-size: 0.8rem;
    }

    .anb-detail-card {
        padding: 0.7rem;
    }
}