/* SAPNOSATTI Net Banking — Blue + White + Orange premium theme */
:root {
    --nb-blue: #0a4da8;
    --nb-blue-dark: #062a68;
    --nb-blue-light: #1e6fd9;
    --nb-orange: #ff6b1a;
    --nb-orange-soft: #fff4ec;
    --nb-white: #ffffff;
    --nb-ink: #0b2d5c;
    --nb-text: #334155;
    --nb-muted: #64748b;
    --nb-line: rgba(10, 77, 168, 0.12);
    --nb-glass: rgba(255, 255, 255, 0.72);
    --nb-shadow: 0 18px 50px rgba(6, 42, 104, 0.12);
    --nb-radius: 16px;
    --nb-sidebar: 270px;
}

* { box-sizing: border-box; }
body.nb-body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--nb-text);
    background: linear-gradient(135deg, #e8f2ff 0%, #f8fbff 45%, #fff8f3 100%);
    min-height: 100vh;
}
body.nb-dark {
    --nb-white: #0f172a;
    --nb-text: #e2e8f0;
    --nb-muted: #94a3b8;
    --nb-glass: rgba(15, 23, 42, 0.85);
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

.nb-guest-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.nb-guest-wrap::before,
.nb-guest-wrap::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    pointer-events: none;
}
.nb-guest-wrap::before {
    width: 420px; height: 420px;
    background: var(--nb-blue-light);
    top: -120px; left: -80px;
}
.nb-guest-wrap::after {
    width: 360px; height: 360px;
    background: var(--nb-orange);
    bottom: -100px; right: -60px;
}

.nb-glass-card {
    width: min(480px, 100%);
    background: var(--nb-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: var(--nb-radius);
    box-shadow: var(--nb-shadow);
    padding: 32px;
    position: relative;
    z-index: 1;
    animation: nbFadeUp .5s ease;
}
@keyframes nbFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.nb-brand { text-align: center; margin-bottom: 24px; }
.nb-brand img { height: 56px; margin: 0 auto 10px; }
.nb-brand h1 { margin: 0; font-size: 1.1rem; color: var(--nb-blue-dark); }
.nb-brand p { margin: 4px 0 0; font-size: .82rem; color: var(--nb-muted); }

.nb-form-group { margin-bottom: 16px; }
.nb-form-group label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--nb-ink);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.nb-hint {
    display: block;
    margin-top: 6px;
    font-size: .78rem;
    color: var(--nb-muted);
    line-height: 1.35;
}
.nb-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--nb-line);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: .95rem;
    background: rgba(255,255,255,0.9);
    transition: border-color .2s, box-shadow .2s;
}
.nb-input:focus {
    outline: none;
    border-color: var(--nb-blue);
    box-shadow: 0 0 0 3px rgba(10,77,168,.12);
}

.nb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.nb-btn:hover { transform: translateY(-1px); }
.nb-btn-primary {
    background: linear-gradient(135deg, var(--nb-blue) 0%, var(--nb-blue-light) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(10,77,168,.28);
    width: 100%;
}
.nb-btn-orange {
    background: linear-gradient(135deg, #ff6b1a 0%, #ff8f4d 100%);
    color: #fff;
}
.nb-btn-outline {
    background: transparent;
    border: 1px solid var(--nb-blue);
    color: var(--nb-blue);
}

.nb-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .88rem;
    margin-bottom: 16px;
}
.nb-alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.nb-alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.nb-alert-warning { background: var(--nb-orange-soft); color: #c2410c; border: 1px solid #fed7aa; }

.nb-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: center;
    margin-top: 18px;
    font-size: .82rem;
}
.nb-links a { color: var(--nb-blue); font-weight: 600; text-decoration: none; }
.nb-links a:hover { color: var(--nb-orange); }

.nb-check { display: flex; align-items: center; gap: 8px; font-size: .85rem; }

/* Dashboard layout */
.nb-shell { display: flex; min-height: 100vh; }
.nb-sidebar {
    width: var(--nb-sidebar);
    background: linear-gradient(180deg, var(--nb-blue-dark) 0%, var(--nb-blue) 100%);
    color: #fff;
    padding: 20px 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: transform .3s;
}
.nb-sidebar-brand {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    margin-bottom: 12px;
}
.nb-sidebar-brand img { height: 42px; filter: brightness(0) invert(1); }
.nb-sidebar-brand strong { display: block; font-size: .9rem; margin-top: 8px; }
.nb-sidebar-brand span { font-size: .72rem; opacity: .75; }

.nb-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: .86rem;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: background .15s, border-color .15s;
}
.nb-nav a:hover, .nb-nav a.active {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-left-color: var(--nb-orange);
}
.nb-nav a i { width: 18px; text-align: center; opacity: .9; }
.nb-nav-section {
    padding: 14px 20px 6px;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .55;
}

.nb-main { flex: 1; margin-left: var(--nb-sidebar); min-width: 0; }
.nb-topbar {
    background: var(--nb-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nb-line);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.nb-topbar h2 { margin: 0; font-size: 1.15rem; color: var(--nb-ink); }
.nb-topbar-actions { display: flex; align-items: center; gap: 10px; }
.nb-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--nb-line);
    border-radius: 999px;
    padding: 6px 14px 6px 6px;
    font-size: .82rem;
}
.nb-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nb-blue), var(--nb-orange));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: .8rem;
    overflow: hidden;
}
.nb-avatar img { width: 100%; height: 100%; object-fit: cover; }

.nb-content { padding: 24px; }

.nb-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.nb-kpi {
    background: var(--nb-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: var(--nb-radius);
    padding: 18px;
    box-shadow: var(--nb-shadow);
    animation: nbFadeUp .4s ease backwards;
}
.nb-kpi:nth-child(2) { animation-delay: .05s; }
.nb-kpi:nth-child(3) { animation-delay: .1s; }
.nb-kpi:nth-child(4) { animation-delay: .15s; }
.nb-kpi-label { font-size: .75rem; color: var(--nb-muted); font-weight: 700; text-transform: uppercase; }
.nb-kpi-value { font-size: 1.5rem; font-weight: 800; color: var(--nb-ink); margin-top: 6px; }
.nb-kpi-value.orange { color: var(--nb-orange); }
.nb-kpi-value.blue { color: var(--nb-blue); }

.nb-panel {
    background: var(--nb-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: var(--nb-radius);
    box-shadow: var(--nb-shadow);
    overflow: hidden;
    margin-bottom: 20px;
}
.nb-panel-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--nb-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nb-panel-head h3 { margin: 0; font-size: 1rem; color: var(--nb-ink); }
.nb-panel-body { padding: 20px; }

.nb-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.nb-table th, .nb-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--nb-line); }
.nb-table th { font-size: .72rem; text-transform: uppercase; color: var(--nb-muted); letter-spacing: .04em; }
.nb-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}
.nb-badge-success { background: #dcfce7; color: #166534; }
.nb-badge-warning { background: #fef3c7; color: #92400e; }
.nb-badge-danger { background: #fee2e2; color: #991b1b; }

.nb-welcome {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 24px;
}
.nb-welcome h2 { margin: 0 0 4px; color: var(--nb-ink); }
.nb-welcome p { margin: 0; color: var(--nb-muted); font-size: .9rem; }

.nb-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--nb-line);
    border-radius: 8px;
    width: 40px; height: 40px;
    cursor: pointer;
}

@media (max-width: 960px) {
    .nb-sidebar { transform: translateX(-100%); }
    .nb-sidebar.open { transform: translateX(0); }
    .nb-main { margin-left: 0; }
    .nb-menu-toggle { display: inline-grid; place-items: center; }
}

.nb-coming-soon {
    text-align: center;
    padding: 48px 24px;
    color: var(--nb-muted);
}
.nb-coming-soon i { font-size: 2.5rem; color: var(--nb-blue); margin-bottom: 12px; }

.nb-qr-mock {
    width: 180px; height: 180px;
    margin: 0 auto 16px;
    background: repeating-linear-gradient(45deg, #111 0 8px, #fff 8px 16px);
    border-radius: 12px;
    border: 4px solid var(--nb-blue);
}
