:root {
    --wb-bg: #f3f5f8;
    --wb-card: #ffffff;
    --wb-text: #172033;
    --wb-muted: #6b7280;
    --wb-primary: #27324a;
    --wb-primary-hover: #1c2538;
    --wb-border: #dce1e8;
    --wb-focus: #6674e8;
    --wb-error-bg: #fff2f2;
    --wb-error-border: #e3a1a1;
    --wb-success-bg: #effaf3;
    --wb-success-border: #9bd2ad;
    --wb-radius: 12px;
}

* {
    box-sizing: border-box;
}

html {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--wb-bg);
    color: var(--wb-text);
}

body {
    margin: 0;
    min-height: 100vh;
}

.wb-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.wb-auth {
    width: 100%;
    max-width: 430px;
}

.wb-brand {
    margin-bottom: 24px;
    text-align: center;
}

.wb-brand-name {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.wb-brand-subtitle {
    margin: 7px 0 0;
    color: var(--wb-muted);
    font-size: 14px;
}

.wb-card {
    background: var(--wb-card);
    border: 1px solid rgba(0, 0, 0, .04);
    border-radius: var(--wb-radius);
    box-shadow: 0 16px 45px rgba(23, 32, 51, .09);
    padding: 34px;
}

.wb-card h1 {
    margin: 0 0 10px;
    font-size: 24px;
    letter-spacing: -.4px;
}

.wb-intro {
    margin: 0 0 27px;
    color: var(--wb-muted);
    font-size: 14px;
    line-height: 1.55;
}

.wb-field {
    display: block;
    margin-bottom: 20px;
}

.wb-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.wb-input {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--wb-border);
    border-radius: 8px;
    background: #fff;
    color: var(--wb-text);
    font: inherit;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.wb-input:focus {
    border-color: var(--wb-focus);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(102, 116, 232, .13);
}

.wb-button {
    display: inline-flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 11px 18px;
    background: var(--wb-primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition:
        background .15s ease,
        transform .05s ease;
}

.wb-button:hover {
    background: var(--wb-primary-hover);
}

.wb-button:active {
    transform: translateY(1px);
}

.wb-auth-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
}

.wb-link {
    color: var(--wb-primary);
    font-weight: 600;
    text-decoration: none;
}

.wb-link:hover {
    text-decoration: underline;
}

.wb-message {
    margin-bottom: 22px;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.wb-message-error {
    border: 1px solid var(--wb-error-border);
    background: var(--wb-error-bg);
}

.wb-message-success {
    border: 1px solid var(--wb-success-border);
    background: var(--wb-success-bg);
}

@media (max-width: 520px) {
    .wb-auth-page {
        padding: 16px;
    }

    .wb-card {
        padding: 26px 22px;
    }
}
.wb-app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
}

.wb-sidebar {
    background: #172033;
    color: #fff;
    padding: 24px 18px;
}

.wb-sidebar-brand {
    margin-bottom: 28px;
    padding: 0 10px;
}

.wb-sidebar-brand-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.7px;
}

.wb-sidebar-brand-subtitle {
    margin-top: 5px;
    color: rgba(255,255,255,.62);
    font-size: 12px;
}

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

.wb-nav-link {
    display: block;
    padding: 11px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

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

.wb-main {
    min-width: 0;
    background: var(--wb-bg);
}

.wb-topbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--wb-border);
    background: #fff;
}

.wb-company {
    min-width: 0;
}

.wb-company-label {
    color: var(--wb-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.wb-company-name {
    margin-top: 3px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wb-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wb-user-meta {
    text-align: right;
}

.wb-user-name {
    font-size: 14px;
    font-weight: 700;
}

.wb-user-role {
    margin-top: 2px;
    color: var(--wb-muted);
    font-size: 12px;
}

.wb-logout-button {
    border: 1px solid var(--wb-border);
    border-radius: 8px;
    background: #fff;
    color: var(--wb-text);
    padding: 9px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.wb-logout-button:hover {
    background: #f7f8fa;
}

.wb-content {
    padding: 30px;
}

.wb-page-heading {
    margin-bottom: 26px;
}

.wb-page-heading h1 {
    margin: 0 0 6px;
    font-size: 28px;
    letter-spacing: -.5px;
}

.wb-page-heading p {
    margin: 0;
    color: var(--wb-muted);
}

.wb-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.wb-stat-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.04);
    border-radius: var(--wb-radius);
    padding: 22px;
    box-shadow: 0 8px 24px rgba(23,32,51,.05);
}

.wb-stat-label {
    color: var(--wb-muted);
    font-size: 13px;
    font-weight: 700;
}

.wb-stat-value {
    margin-top: 10px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.6px;
}

.wb-stat-hint {
    margin-top: 7px;
    color: var(--wb-muted);
    font-size: 12px;
}

.wb-panel {
    margin-top: 22px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.04);
    border-radius: var(--wb-radius);
    padding: 24px;
    box-shadow: 0 8px 24px rgba(23,32,51,.05);
}

.wb-panel h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.wb-panel p {
    margin: 0;
    color: var(--wb-muted);
    line-height: 1.55;
}

@media (max-width: 1050px) {
    .wb-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .wb-app {
        display: block;
    }

    .wb-sidebar {
        padding: 16px;
    }

    .wb-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .wb-nav-link {
        white-space: nowrap;
    }

    .wb-topbar {
        align-items: flex-start;
        padding: 16px;
    }

    .wb-content {
        padding: 20px 16px;
    }

    .wb-user-meta {
        display: none;
    }
}

@media (max-width: 560px) {
    .wb-dashboard-grid {
        grid-template-columns: 1fr;
    }
}
.wb-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.wb-button-inline {
    width: auto;
    flex: 0 0 auto;
}

.wb-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.wb-table {
    width: 100%;
    border-collapse: collapse;
}

.wb-table th,
.wb-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--wb-border);
    text-align: left;
    vertical-align: middle;
}

.wb-table th {
    color: var(--wb-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.wb-table td {
    font-size: 14px;
}

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

.wb-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.wb-textarea {
    min-height: 120px;
    resize: vertical;
}

.wb-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.wb-secondary-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--wb-border);
    border-radius: 8px;
    padding: 11px 18px;
    background: #fff;
    color: var(--wb-text);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.wb-secondary-button:hover {
    background: #f7f8fa;
}

@media (max-width: 760px) {
    .wb-page-heading {
        align-items: stretch;
        flex-direction: column;
    }

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

    .wb-button-inline {
        width: 100%;
    }
}