body {
    background: #f3f6f9;
    color: #212529;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
}

a {
    text-decoration: none;
}

.navbar-header {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e9ebec;
    display: flex;
    height: 70px;
    justify-content: space-between;
    padding: 0 24px;
    position: fixed;
    right: 0;
    top: 0;
    left: 250px;
    z-index: 1002;
}

.navbar-menu {
    background: #1f2f5f;
    bottom: 0;
    color: #d8def7;
    left: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 250px;
    z-index: 1003;
}

.navbar-brand-box {
    align-items: center;
    display: flex;
    height: 70px;
    padding: 0 24px;
}

#scrollbar {
    height: calc(100vh - 70px);
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 18px;
    scrollbar-color: rgba(255, 255, 255, .28) transparent;
    scrollbar-width: thin;
}

#scrollbar::-webkit-scrollbar {
    width: 8px;
}

#scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

#scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .24);
    border-radius: 999px;
}

#scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .38);
}

.logo-light,
.logo-dark {
    align-items: center;
    color: inherit;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.logo-dark {
    display: none;
}

.menu-title {
    color: #96a3d4;
    font-size: 11px;
    font-weight: 700;
    padding: 12px 24px;
    text-transform: uppercase;
}

.navbar-nav {
    padding: 10px 12px;
}

.menu-link {
    align-items: center;
    border-radius: 6px;
    color: #c5cdec;
    display: flex;
    font-weight: 500;
    justify-content: space-between;
    margin-bottom: 4px;
    padding: 10px 12px;
}

.menu-link .menu-text {
    align-items: center;
    display: inline-flex;
    gap: 9px;
}

.menu-icon {
    font-size: 16px;
    line-height: 1;
    opacity: .9;
}

.menu-link .menu-arrow {
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    display: inline-block;
    height: 7px;
    margin-left: auto;
    transform: rotate(45deg);
    transition: transform .2s ease;
    width: 7px;
}

.menu-link[aria-expanded="true"] .menu-arrow {
    transform: rotate(-135deg);
}

.menu-link.active,
.menu-link:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.menu-dropdown {
    list-style: none;
    margin: 0 0 8px;
    padding: 2px 0 2px 12px;
}

.menu-dropdown .nav-link {
    align-items: center;
    border-radius: 6px;
    color: #aeb9e6;
    display: flex;
    font-size: 13px;
    gap: 8px;
    margin-bottom: 2px;
    padding: 8px 12px;
    position: relative;
}

.menu-dropdown .nav-link::before {
    display: none;
}

.menu-dropdown .nav-link.active,
.menu-dropdown .nav-link:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.menu-dropdown .nav-link.disabled {
    color: #7f8cc3;
    opacity: .6;
    pointer-events: none;
}

.main-content {
    margin-left: 250px;
    min-height: 100vh;
    padding-top: 70px;
}

.page-content {
    padding: 24px;
}

.footer {
    background: #fff;
    border-top: 1px solid #e9ebec;
    color: #6c757d;
    padding: 16px 24px;
}

.card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(56, 65, 74, .15);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #e9ebec;
}

.form-label {
    color: #374151;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-control,
.form-select {
    background-color: #fff;
    border: 1px solid #cfd6df;
    border-radius: 6px;
    color: #212529;
    min-height: 38px;
    padding: 8px 12px;
}

.form-control::placeholder {
    color: #8a94a6;
    opacity: 1;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
    border-color: #405189;
    box-shadow: 0 0 0 .2rem rgba(64, 81, 137, .16);
    color: #212529;
}

.form-control:disabled,
.form-select:disabled {
    background-color: #f3f6f9;
    opacity: 1;
}

.modal-content {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 34, 58, .18);
}

.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 32px);
}

.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding-bottom: 32px;
}

.modal-header,
.modal-footer {
    border-color: #e9ebec;
}

.modal-footer {
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.nav-tabs-custom {
    border-bottom: 1px solid #e9ebec;
}

.nav-tabs-custom .nav-link {
    border: 1px solid transparent;
    color: #405189;
    font-weight: 500;
}

.nav-tabs-custom .nav-link.active {
    background-color: #f3f6f9;
    border-color: #e9ebec #e9ebec #f3f6f9;
    color: #212529;
}

.invalid-tooltip {
    background-color: #dc3545;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    margin-top: 4px;
    padding: 4px 8px;
}

.btn-soft-primary {
    background: rgba(13, 110, 253, .1);
    color: #0d6efd;
}

.btn-soft-danger {
    background: rgba(220, 53, 69, .1);
    color: #dc3545;
}

.btn-soft-primary:hover,
.btn-soft-danger:hover {
    filter: brightness(.95);
}

.btn .btn-icon {
    display: inline-flex;
    font-size: 15px;
    line-height: 1;
    margin-right: 6px;
    vertical-align: -2px;
}

.avatar-sm {
    height: 2.5rem;
    width: 2.5rem;
}

.avatar-title {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.auth-page-wrapper {
    background: linear-gradient(135deg, #10295f 0%, #0f766e 100%);
    min-height: 100vh;
    position: relative;
}

.auth-page-wrapper .bg-overlay {
    background: rgba(7, 15, 35, .45);
    inset: 0;
    position: absolute;
}

.auth-page-content {
    position: relative;
    width: 100%;
    z-index: 1;
}

.auth-one-bg {
    background: linear-gradient(135deg, #182b63 0%, #0f766e 100%);
    overflow: hidden;
    position: relative;
}

.auth-one-bg .bg-overlay {
    background: rgba(0, 0, 0, .22);
    z-index: 0;
}

.auth-one-bg .position-relative {
    z-index: 1;
}

.auth-cover-card {
    background: #fff;
    border: 0;
    box-shadow: 0 18px 45px rgba(7, 15, 35, .28);
}

.auth-form-panel {
    background: #fff;
    min-height: 100%;
}

.auth-form-panel .form-control {
    background-color: #fff !important;
    border-color: #cfd6df;
    color: #111827;
}

.auth-form-panel .form-control:-webkit-autofill,
.auth-form-panel .form-control:-webkit-autofill:hover,
.auth-form-panel .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #111827;
}

.auth-pass-inputgroup .password-addon {
    height: 38px;
    line-height: 1;
}

.brand-stack,
.auth-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.brand-title,
.auth-brand-title {
    font-size: 15px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-subtitle,
.auth-brand-subtitle {
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 500;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-brand-mark {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    max-width: 100%;
}

.auth-brand-logo {
    background: rgba(255, 255, 255, .12);
    border-radius: 6px;
    height: 42px;
    object-fit: contain;
    padding: 4px;
    width: 42px;
}

.auth-page-wrapper > .footer {
    background: transparent;
    border: 0;
    bottom: 14px;
    color: rgba(255, 255, 255, .72);
    left: 0;
    padding: 0;
    position: absolute;
    right: 0;
    z-index: 1;
}

.galaxy-border-none {
    border: 0;
}

.vertical-menu-btn {
    display: inline-flex;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-icon span {
    background: #495057;
    display: block;
    height: 2px;
    width: 20px;
}

.vertical-overlay {
    display: none;
}

@media (max-width: 991.98px) {
    .navbar-menu {
        transform: translateX(-100%);
        transition: transform .2s ease;
    }

    .vertical-sidebar-enable .navbar-menu {
        transform: translateX(0);
    }

    .navbar-header,
    .main-content {
        left: 0;
        margin-left: 0;
    }

    .vertical-sidebar-enable .vertical-overlay {
        background: rgba(0, 0, 0, .35);
        display: block;
        inset: 0;
        position: fixed;
        z-index: 1001;
    }
}
