:root[data-bs-theme="dark"] {
    --ns-brand-blue: #1e8dff;
    --ns-brand-cyan: #1fc4ff;
    --ns-brand-teal: #22dcc2;
    --ns-brand-green: #47ff8a;
    --ns-brand-blue-soft: #57b9ff;
    --ns-brand-gradient: linear-gradient(90deg, #1e8dff 0%, #1fc4ff 35%, #22dcc2 72%, #47ff8a 100%);
    --ns-brand-body:
            radial-gradient(circle at top left, rgba(30, 141, 255, 0.06), transparent 24%),
            radial-gradient(circle at top right, rgba(71, 255, 138, 0.05), transparent 26%),
            linear-gradient(180deg, #181c21 0%, #11161b 100%);
    --ns-brand-surface:
            radial-gradient(circle at top right, rgba(30, 141, 255, 0.08), transparent 34%),
            radial-gradient(circle at bottom left, rgba(71, 255, 138, 0.06), transparent 36%),
            #23272b;
    --ns-brand-surface-soft: linear-gradient(180deg, rgba(22, 29, 37, 0.96) 0%, rgba(18, 24, 31, 0.96) 100%);
    --ns-brand-border: rgba(87, 185, 255, 0.14);
    --ns-brand-border-strong: rgba(87, 185, 255, 0.28);
    --ns-brand-input-bg: rgba(17, 24, 32, 0.72);
    --ns-brand-input-border: rgba(87, 185, 255, 0.18);
    --ns-brand-input-focus: rgba(87, 185, 255, 0.45);
    --ns-brand-muted: #94a3b8;
}

@font-face {
    font-family: "Material Symbols Outlined";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("/static/manager/common/fonts/material-symbols-outlined-manager-full.ttf") format("truetype");
}

@font-face {
    font-family: "Material Icons Outlined";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("/static/manager/common/fonts/material-symbols-outlined-manager-full.ttf") format("truetype");
}

.material-icons-outlined,
.material-symbols-outlined {
    font-family: "Material Symbols Outlined", "Material Icons Outlined";
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    letter-spacing: normal;
    text-transform: none;
    direction: ltr;
    vertical-align: middle;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "liga";
}

body {
    background: var(--ns-brand-body);
}

html,
body {
    min-height: 100%;
}

.main-wrapper .main-content .card.rounded-4,
.auth-card-gradient,
.error-brand-card {
    border: 1px solid var(--ns-brand-border) !important;
    box-shadow: none !important;
}

.main-wrapper .main-content .card.rounded-4,
.error-brand-card {
    background: var(--ns-brand-surface);
}

.main-wrapper .main-content .btn-primary,
.auth-card-gradient .btn-primary,
.error-brand-card .btn-primary {
    color: #ffffff !important;
    background-image: var(--ns-brand-gradient) !important;
    border: none !important;
    box-shadow: none !important;
}

.main-wrapper .main-content .btn-primary:hover,
.main-wrapper .main-content .btn-primary:focus,
.main-wrapper .main-content .btn-primary:active,
.auth-card-gradient .btn-primary:hover,
.auth-card-gradient .btn-primary:focus,
.auth-card-gradient .btn-primary:active,
.error-brand-card .btn-primary:hover,
.error-brand-card .btn-primary:focus,
.error-brand-card .btn-primary:active {
    color: #ffffff !important;
    background-image: var(--ns-brand-gradient) !important;
    border: none !important;
    box-shadow: none !important;
    filter: brightness(1.03);
}

.main-wrapper .main-content .btn-outline-light,
.auth-card-gradient .btn-outline-light,
.error-brand-card .btn-outline-light {
    border-color: rgba(87, 185, 255, 0.28) !important;
    color: #dbe4f0 !important;
}

.main-wrapper .main-content .btn-outline-light:hover,
.main-wrapper .main-content .btn-outline-light:focus,
.main-wrapper .main-content .btn-outline-light:active,
.auth-card-gradient .btn-outline-light:hover,
.auth-card-gradient .btn-outline-light:focus,
.auth-card-gradient .btn-outline-light:active,
.error-brand-card .btn-outline-light:hover,
.error-brand-card .btn-outline-light:focus,
.error-brand-card .btn-outline-light:active {
    background: rgba(87, 185, 255, 0.08) !important;
    border-color: rgba(87, 185, 255, 0.42) !important;
    color: #ffffff !important;
}

.main-wrapper .main-content .form-control,
.main-wrapper .main-content .form-select,
.main-wrapper .main-content .input-group-text,
.auth-card-gradient .form-control,
.auth-card-gradient .form-select,
.auth-card-gradient .input-group-text {
    border-color: var(--ns-brand-input-border);
    background: var(--ns-brand-input-bg);
}

.main-wrapper .main-content .form-control:focus,
.main-wrapper .main-content .form-select:focus,
.auth-card-gradient .form-control:focus,
.auth-card-gradient .form-select:focus {
    border-color: var(--ns-brand-input-focus);
    box-shadow: 0 0 0 0.18rem rgba(30, 141, 255, 0.12);
}

.main-wrapper .main-content .input-group-text,
.auth-card-gradient .input-group-text {
    color: var(--ns-brand-blue-soft);
}

.main-wrapper .main-content .btn-outline-info,
.auth-card-gradient .btn-outline-info {
    border-color: rgba(31, 196, 255, 0.42) !important;
    background: rgba(31, 196, 255, 0.08) !important;
    color: #9fe9ff !important;
    box-shadow: none !important;
}

.main-wrapper .main-content .btn-outline-info:hover,
.main-wrapper .main-content .btn-outline-info:focus,
.main-wrapper .main-content .btn-outline-info:active,
.auth-card-gradient .btn-outline-info:hover,
.auth-card-gradient .btn-outline-info:focus,
.auth-card-gradient .btn-outline-info:active {
    border-color: rgba(34, 220, 194, 0.52) !important;
    background: rgba(34, 220, 194, 0.12) !important;
    color: #dffcff !important;
    box-shadow: none !important;
}

.error-brand-card {
    max-width: 780px;
    margin-inline: auto;
    padding: 2.75rem 2rem;
}

.error-brand-card .error-title {
    background: var(--ns-brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-page-body {
    background: var(--ns-brand-body) fixed;
}

.error-page-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
}

.manager-shared-modal .modal-dialog {
    max-width: 760px;
}

.manager-shared-modal.manager-shared-modal-compact .modal-dialog {
    max-width: 460px;
}

.manager-shared-modal .modal-content {
    background: var(--ns-brand-surface-soft);
    border: 1px solid var(--ns-brand-border-strong);
    box-shadow: 0 20px 50px rgba(4, 10, 18, 0.28);
}

.manager-shared-modal .modal-title {
    color: #f4f7fc;
}

.manager-shared-modal .modal-header p,
.manager-shared-modal .modal-body .text-secondary {
    color: var(--ns-brand-muted) !important;
}

.manager-shared-modal .modal-body {
    color: #f4f7fc;
}

.manager-shared-modal .form-label {
    color: #d6e8fb;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.manager-shared-modal .modal-footer {
    gap: 0.65rem;
}

.manager-shared-modal .modal-footer .btn {
    min-width: 108px;
}

.ns-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    text-decoration: none;
}

.ns-brand-lockup:hover,
.ns-brand-lockup:focus {
    text-decoration: none;
}

.ns-brand-lockup-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.ns-brand-lockup-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    color: #f3f7fc;
    font-family: "Noto Sans", sans-serif;
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.ns-brand-lockup-accent {
    color: var(--ns-brand-blue-soft);
}

@media (max-width: 576px) {
    .ns-brand-lockup-icon {
        width: 56px;
        height: 56px;
    }

    .ns-brand-lockup-wordmark {
        font-size: 1.9rem;
    }
}
