﻿:root {
    --wb-bg: #f5f7fb;
    --wb-surface: #ffffff;
    --wb-surface-soft: #f8fafc;
    --wb-text: #172033;
    --wb-muted: #667085;
    --wb-border: #e1e7ef;
    --wb-primary: #2563eb;
    --wb-primary-dark: #1d4ed8;
    --wb-navy: #0b1930;
    --wb-teal: #14b8a6;
    --wb-danger: #dc2626;
    --wb-success: #047857;
    --wb-radius: 12px;
    --wb-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    min-height: 100vh;
    margin: 0;
    background: var(--wb-bg);
    color: var(--wb-text);
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42;
}

a {
    color: var(--wb-primary);
    text-decoration: none;
}

a:hover { text-decoration: none; }

.wb-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 25, 48, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
}

.wb-header-inner {
    max-width: 1400px;
    min-height: 62px;
    margin: 0 auto;
    padding: 8px 22px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.wb-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    color: #fff;
}

.wb-brand:hover { color: #fff; }

.wb-brand-mark,
.wb-logo-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--wb-teal), #3b82f6);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .4px;
}

.wb-brand strong {
    display: block;
    font-size: 15px;
    line-height: 1.1;
}

.wb-brand small {
    display: block;
    margin-top: 2px;
    color: #9fb0c8;
    font-size: 11px;
    font-weight: 500;
}

.wb-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1;
}

.wb-nav a {
    padding: 8px 10px;
    border-radius: 8px;
    color: #c8d4e6;
    font-size: 13px;
    font-weight: 650;
}

.wb-nav a:hover {
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

.wb-nav-toggle {
    display: none;
}

.wb-logout {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.wb-btn-ghost {
    margin: 0;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: transparent;
    color: #dbe7f8;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.wb-btn-ghost:hover {
    border-color: rgba(255,255,255,.35);
    background: rgba(255,255,255,.08);
    color: #fff;
}

.wb-main {
    width: min(1400px, calc(100% - 32px));
    margin: 20px auto 28px;
}

.wb-footer {
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--wb-border);
    color: var(--wb-muted);
    font-size: 12px;
}

h1 {
    margin: 0;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -.6px;
}

h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

p { margin: 0 0 10px; }

.wb-page-heading {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.wb-eyebrow {
    margin-bottom: 5px;
    color: var(--wb-teal);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.wb-muted {
    margin-top: 7px;
    color: var(--wb-muted);
}

form,
.card,
section {
    margin-bottom: 14px;
    padding: 15px;
    border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius);
    background: var(--wb-surface);
    box-shadow: var(--wb-shadow);
}

label {
    display: block;
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    max-width: 520px;
    min-height: 38px;
    margin: 0 0 9px;
    padding: 7px 10px;
    border: 1px solid #cfd8e5;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--wb-text);
    font: inherit;
}

textarea { min-height: 90px; }

input:focus,
select:focus,
textarea:focus {
    border-color: #79a7f8;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .11);
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-height: auto;
    margin-right: 6px;
}

button,
input[type="submit"],
.btn {
    display: inline-flex;
    min-height: 36px;
    margin: 3px 4px 3px 0;
    padding: 7px 13px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: var(--wb-primary);
    color: #fff;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
.btn:hover {
    background: var(--wb-primary-dark);
    color: #fff;
}

.btn-danger,
.danger,
button[name*="revoke"] {
    background: var(--wb-danger);
}

.wb-btn-block {
    width: 100%;
    margin-right: 0;
}

table {
    width: 100%;
    margin: 0 0 14px;
    border: 1px solid var(--wb-border);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--wb-radius);
    overflow: hidden;
    background: var(--wb-surface);
    box-shadow: var(--wb-shadow);
}

th,
td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--wb-border);
    text-align: left;
    vertical-align: middle;
}

th {
    background: #eef3f9;
    color: #364152;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15px;
}

tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcff; }

.summary,
.metrics,
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.summary > div,
.metrics > div,
.stats > div {
    padding: 12px;
    border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius);
    background: var(--wb-surface);
    box-shadow: var(--wb-shadow);
}

.wb-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 12px;
}

.wb-action-card {
    min-height: 108px;
    padding: 15px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius);
    background: var(--wb-surface);
    color: var(--wb-text);
    box-shadow: var(--wb-shadow);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.wb-action-card:hover {
    transform: translateY(-2px);
    border-color: #b8cdf4;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .09);
}

.wb-action-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.wb-action-card small {
    display: block;
    color: var(--wb-muted);
    line-height: 1.35;
}

.wb-action-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #edf5ff;
    color: var(--wb-primary);
    font-size: 11px;
    font-weight: 900;
}

.wb-action-arrow {
    color: #8aa0bb;
    font-size: 20px;
}

.wb-alert {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px solid transparent;
}

.wb-alert-success {
    border-color: #a7e5ce;
    background: #ecfdf5;
    color: var(--wb-success);
}

.wb-alert-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.wb-validation {
    display: block;
    margin: -5px 0 8px;
    color: var(--wb-danger);
    font-size: 12px;
}

.wb-login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at 20% 20%, rgba(20,184,166,.17), transparent 34%),
        radial-gradient(circle at 80% 10%, rgba(59,130,246,.18), transparent 32%),
        var(--wb-navy);
}

.wb-login-shell {
    width: min(420px, 100%);
}

.wb-login-card {
    margin: 0;
    padding: 25px;
    border-color: rgba(255,255,255,.15);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0,0,0,.28);
}

.wb-login-card .wb-logo-mark {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
}

.wb-login-card h1 {
    font-size: 28px;
}

.wb-field {
    margin-top: 17px;
}

@media (max-width: 900px) {
    .wb-header-inner {
        flex-wrap: wrap;
    }

    .wb-nav-toggle {
        display: inline-flex;
        margin-left: auto;
        padding: 7px 10px;
        border: 1px solid rgba(255,255,255,.16);
        background: transparent;
        color: #fff;
    }

    .wb-nav {
        display: none;
        order: 4;
        width: 100%;
        padding-bottom: 6px;
        flex-wrap: wrap;
    }

    .wb-nav.is-open {
        display: flex;
    }
}

@media (max-width: 680px) {
    .wb-main,
    .wb-footer {
        width: min(100% - 20px, 1400px);
    }

    .wb-main {
        margin-top: 12px;
    }

    .wb-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .wb-dashboard-grid {
        grid-template-columns: 1fr;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .wb-footer {
        flex-direction: column;
        gap: 4px;
    }
}