body {
    font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.content-header h1 {
    font-size: 1.6rem;
    font-weight: 600;
}

.brand-link {
    display: flex;
    align-items: center;
}

.brand-link .brand-image {
    float: none;
    margin-left: .2rem;
    margin-right: .65rem;
    margin-top: 0;
}

.admin-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-weight: 700;
}

.admin-avatar-lg {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    background: rgba(255, 255, 255, .22);
    font-size: 1.35rem;
}

.dashboard-metric {
    border-radius: .75rem;
}

.table-tools .btn,
.filter-tools .btn {
    min-width: 88px;
}

.table-empty-space {
    min-height: 220px;
}

.admin-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 123, 255, .12);
    overflow: hidden;
    z-index: 2000;
}

.admin-loading-bar::before {
    content: "";
    display: block;
    width: 35%;
    height: 100%;
    background: #007bff;
    animation: admin-loading-slide .9s ease-in-out infinite;
}

@keyframes admin-loading-slide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(300%);
    }
}

.table-empty-space .empty-row td {
    height: 180px;
    padding: 0;
    vertical-align: middle;
}

tbody.table-busy {
    opacity: .62;
    transition: opacity .15s ease;
}

.empty-table-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    color: #8a9099;
    font-size: .95rem;
}

.empty-table-state.danger {
    color: #dc3545;
}

.empty-table-state.loading::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-right: .55rem;
    border: 2px solid rgba(0, 123, 255, .22);
    border-top-color: #007bff;
    border-radius: 50%;
    animation: admin-spin .75s linear infinite;
}

@keyframes admin-spin {
    to {
        transform: rotate(360deg);
    }
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: .24rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

.status-pill.success {
    color: #1e7e34;
    background: rgba(40, 167, 69, .14);
}

.status-pill.muted {
    color: #6c757d;
    background: rgba(108, 117, 125, .12);
}

.status-pill.warning {
    color: #a86f00;
    background: rgba(255, 193, 7, .18);
}

.tree-indent {
    color: #adb5bd;
    letter-spacing: 1px;
}

.login-page {
    background:
        radial-gradient(circle at top left, rgba(23, 162, 184, .18), transparent 28%),
        radial-gradient(circle at right bottom, rgba(111, 66, 193, .18), transparent 30%),
        linear-gradient(180deg, #eef3f8 0%, #e4ebf3 100%);
}

.login-box {
    width: 420px;
}

.login-logo a {
    color: #2c3e50;
    font-weight: 700;
}

.login-card-body,
.register-card-body {
    border-radius: .85rem;
}

.form-tip {
    font-size: .8rem;
    color: #6c757d;
}

.card-outline.card-primary {
    border-top: 3px solid #3c8dbc;
}

.page-note {
    color: #6c757d;
    font-size: .9rem;
}

.icon-picker-field .icon-preview {
    min-width: 44px;
    justify-content: center;
    background: #f8f9fa;
}

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
    gap: .65rem;
}

.icon-picker-option {
    min-height: 84px;
    padding: .75rem .55rem;
    border: 1px solid #dee2e6;
    border-radius: .4rem;
    background: #fff;
    color: #343a40;
    text-align: center;
    transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.icon-picker-option i {
    display: block;
    margin-bottom: .45rem;
    font-size: 1.35rem;
}

.icon-picker-option span {
    display: block;
    overflow: hidden;
    color: #6c757d;
    font-size: .76rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-picker-option:hover,
.icon-picker-option:focus {
    border-color: #80bdff;
    color: #007bff;
    outline: 0;
    box-shadow: 0 0 0 .15rem rgba(0, 123, 255, .16);
}

.icon-picker-option.active {
    border-color: #007bff;
    background: rgba(0, 123, 255, .08);
    color: #007bff;
}

.menu-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #dee2e6;
    border-radius: .45rem;
    background: #f8f9fa;
    color: #495057;
}

.sidebar {
    padding: .45rem .5rem .8rem;
}

.nav-sidebar > .nav-item {
    margin-bottom: .35rem;
}

.nav-sidebar > .nav-item > .nav-link {
    min-height: 44px;
    padding: .75rem .95rem;
    font-size: .95rem;
    font-weight: 600;
    border-radius: .55rem;
    color: rgba(255, 255, 255, .88);
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.nav-sidebar > .nav-item > .nav-link > .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    margin-right: .75rem;
    font-size: 1rem;
}

.nav-sidebar > .nav-item > .nav-link {
    display: flex;
    align-items: center;
}

.nav-sidebar > .nav-item > .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.nav-sidebar > .nav-item > .nav-link > p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin: 0;
    line-height: 1.2;
}

.nav-sidebar > .nav-item > .nav-link > p > .right {
    position: static;
    top: auto;
    right: auto;
    margin-top: 0;
    margin-left: .75rem;
    line-height: 1;
    opacity: .72;
}

.nav-sidebar .nav-treeview {
    margin-top: .28rem;
    padding-left: .85rem;
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link {
    min-height: 38px;
    padding: .5rem .85rem .5rem 1rem;
    font-size: .86rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .78);
    border-radius: .5rem;
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link > .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    margin-right: .65rem;
    font-size: .82rem;
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.sidebar-dark-primary .nav-sidebar .nav-treeview > .nav-item > .nav-link.active,
.nav-sidebar .nav-treeview > .nav-item > .nav-link.active {
    color: #fff;
    background: #007bff;
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, .32);
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.nav-sidebar > .nav-item > .nav-link.active {
    color: #fff;
    background: transparent;
    box-shadow: none;
}

.sidebar-dark-primary .nav-sidebar > .nav-item.menu-open > .nav-link,
.nav-sidebar > .nav-item.menu-open > .nav-link {
    color: #fff;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 576px) {
    .login-box {
        width: calc(100% - 2rem);
    }
}
