html { font-size: 14px; }

body.adminto-shell {
    background: #f6f7fb;
    min-height: 100%;
    color: #313a46;
    font-family: Inter, "Segoe UI", sans-serif;
}

a { color: #188ae2; }
a:hover { color: #157ab8; }

.sidenav-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: #313a46;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidenav-brand {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 16px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
}

.sidenav-brand:hover,
.sidenav-brand:focus {
    color: #fff;
    text-decoration: none;
}

.sidenav-logo-mark {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #188ae2;
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.sidenav-scroll {
    overflow: auto;
    flex: 1 1 auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0 24px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    color: #ced4da;
    text-decoration: none;
    padding: 10px 16px;
}

.sidebar-menu > li > a:hover,
.sidebar-menu > li > a:focus,
.sidebar-menu > li.active > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.topbar {
    margin-left: 260px;
    min-height: 64px;
    background: #fff;
    border-bottom: 1px solid #e7e9eb;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.topbar-title {
    font-size: 16px;
    font-weight: 600;
    color: #313a46;
}

.sidenav-toggle {
    border: 0;
    background: transparent;
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 4px;
}

.sidenav-toggle:hover { background: #f6f7fb; }

.sidenav-toggle span,
.sidenav-toggle span:before,
.sidenav-toggle span:after {
    display: block;
    height: 2px;
    background: #313a46;
    border-radius: 2px;
}

.sidenav-toggle span {
    position: relative;
    width: 100%;
}

.sidenav-toggle span:before,
.sidenav-toggle span:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
}

.sidenav-toggle span:before { top: -6px; }
.sidenav-toggle span:after { top: 6px; }

.page-content {
    margin-left: 260px;
    min-height: calc(100vh - 64px);
}

.page-container { padding: 16px; }

@media (min-width: 992px) {
    body.sidenav-collapsed .sidenav-menu { width: 72px; }
    body.sidenav-collapsed .topbar,
    body.sidenav-collapsed .page-content { margin-left: 72px; }
    body.sidenav-collapsed .sidenav-brand { justify-content: center; padding: 0 8px; }
    body.sidenav-collapsed .sidenav-brand-text { display: none; }
    body.sidenav-collapsed .sidenav-logo-mark { display: flex; }
    body.sidenav-collapsed .sidebar-menu > li > a { justify-content: center; padding-left: 0; padding-right: 0; }
    body.sidenav-collapsed .sidebar-menu > li > a > span { display: none; }
}

@media (max-width: 991px) {
    .sidenav-menu {
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        width: 260px;
    }

    body.sidenav-open .sidenav-menu { transform: none; }

    .topbar,
    .page-content,
    body.sidenav-collapsed .topbar,
    body.sidenav-collapsed .page-content { margin-left: 0; }

    body.sidenav-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(49, 58, 70, 0.45);
        z-index: 1025;
    }
}

.box {
    background: #fff;
    border: 1px solid #e7e9eb;
    border-radius: 6px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(49, 58, 70, 0.04);
}

.box-default { border-top: 3px solid #188ae2; }

.box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f7;
}

.box-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #313a46;
    line-height: 1.4;
}

.box-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.box-body { padding: 16px; }

.box-footer {
    padding: 12px 16px;
    border-top: 1px solid #eef2f7;
}

.info-box {
    display: flex;
    align-items: stretch;
    min-height: 84px;
    background: #fff;
    border: 1px solid #e7e9eb;
    border-radius: 6px;
    margin-bottom: 16px;
    overflow: hidden;
    color: #fff;
}

.info-box-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 16px;
}

.info-box-text {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.9;
}

.info-box-number {
    display: block;
    margin-top: 4px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.info-box-note {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.85;
}

.info-box.bg-aqua { background: #188ae2; border-color: #188ae2; }
.info-box.bg-green { background: #10c469; border-color: #10c469; }
.info-box.bg-red { background: #f1556c; border-color: #f1556c; }
.info-box.bg-yellow { background: #f9c851; border-color: #f9c851; color: #313a46; }

.btn {
    border-radius: 4px;
    font-weight: 500;
    box-shadow: none;
}

.btn-primary {
    background-color: #188ae2;
    border-color: #157ab8;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #157ab8;
    border-color: #11689d;
    color: #fff;
}

.btn-success {
    background-color: #10c469;
    border-color: #0ea759;
    color: #fff;
}

.btn-success:hover,
.btn-success:focus {
    background-color: #0ea759;
    border-color: #0c8d4b;
    color: #fff;
}

.btn-danger {
    background-color: #f1556c;
    border-color: #ef3d58;
    color: #fff;
}

.btn-danger:hover,
.btn-danger:focus {
    background-color: #ef3d58;
    border-color: #e42846;
    color: #fff;
}

.btn-warning,
.btn-warning:hover,
.btn-warning:focus {
    background-color: #f9c851;
    border-color: #f7b820;
    color: #313a46;
}

.btn-default,
.btn-outline-secondary,
.btn-outline-primary {
    background-color: #fff;
    border-color: #ced4da;
    color: #313a46;
}

.btn-default:hover,
.btn-outline-secondary:hover,
.btn-outline-primary:hover,
.btn-default:focus,
.btn-outline-secondary:focus,
.btn-outline-primary:focus {
    background-color: #f6f7fb;
    border-color: #ced4da;
    color: #313a46;
}

.btn-link { color: #188ae2; text-decoration: none; }
.btn-link:hover { color: #157ab8; }

.form-control,
.form-select {
    border-color: #e7e9eb;
    border-radius: 4px;
    color: #313a46;
    min-height: 38px;
}

.form-control:focus,
.form-select:focus {
    border-color: #188ae2;
    box-shadow: 0 0 0 0.15rem rgba(24, 138, 226, 0.15);
}

.form-label { color: #313a46; font-weight: 500; }

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.filters .form-control,
.filters .form-select {
    width: auto;
    min-width: 160px;
}

.table-responsive { width: 100%; }

.table {
    --bs-table-bg: #fff;
    --bs-table-color: #313a46;
    --bs-table-border-color: #e7e9eb;
    --bs-table-striped-bg: #fbfbfd;
    --bs-table-hover-bg: #f6f7fb;
    --bs-table-hover-color: #313a46;
    margin-bottom: 0;
    color: #313a46;
    vertical-align: middle;
}

.table > :not(caption) > * > * { padding: 10px 12px; }

.table > thead > tr > th {
    background: #f6f7fb;
    color: #6c757d;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.table-warning {
    --bs-table-bg: #fff8e6;
    --bs-table-color: #313a46;
}

.badge {
    border-radius: 4px;
    font-weight: 600;
}

.badge.text-bg-light,
.badge.text-bg-warning {
    background: #f9c851 !important;
    color: #313a46 !important;
}

pre {
    background: #f6f7fb;
    border: 1px solid #e7e9eb;
    border-radius: 4px;
    color: #313a46;
    white-space: pre-wrap;
    word-break: break-word;
}

code {
    color: #188ae2;
    background: #f6f7fb;
    border-radius: 3px;
    padding: 0 4px;
}

.alert-danger {
    background: #fde8eb;
    border-color: #f7c2cb;
    color: #9b2336;
}

body.login-page {
    min-height: 100vh;
    margin: 0;
    background: #313a46;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Inter, "Segoe UI", sans-serif;
}

.login-box {
    width: 380px;
    max-width: calc(100% - 32px);
}

.login-logo {
    color: #fff;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.login-box-body {
    background: #fff;
    border-radius: 6px;
    padding: 28px 24px 20px;
    border-top: 3px solid #188ae2;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.login-box-msg {
    text-align: center;
    margin: 0 0 16px;
    color: #6c757d;
}
