/**
 * 南院课表品牌主色 #14C5CD
 * 在 AdminLTE / Bootstrap 5 主样式之后加载。
 */
:root {
    --bs-primary: #14c5cd;
    --bs-primary-rgb: 20, 197, 205;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #14c5cd;
    --bs-btn-border-color: #14c5cd;
    --bs-btn-hover-bg: #12b4bc;
    --bs-btn-hover-border-color: #11a8b0;
    --bs-btn-focus-shadow-rgb: 20, 197, 205;
    --bs-btn-active-bg: #11a8b0;
    --bs-btn-active-border-color: #109ca4;
    --bs-btn-disabled-bg: #14c5cd;
    --bs-btn-disabled-border-color: #14c5cd;
}

.btn-outline-primary {
    --bs-btn-color: #14c5cd;
    --bs-btn-border-color: #14c5cd;
    --bs-btn-hover-bg: #14c5cd;
    --bs-btn-hover-border-color: #14c5cd;
    --bs-btn-focus-shadow-rgb: 20, 197, 205;
    --bs-btn-active-bg: #14c5cd;
    --bs-btn-active-border-color: #14c5cd;
    --bs-btn-disabled-color: #14c5cd;
    --bs-btn-disabled-border-color: #14c5cd;
}

.text-bg-primary {
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity, 1)) !important;
}

.text-primary {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;
}

.link-primary {
    color: #14c5cd !important;
}

.link-primary:hover,
.link-primary:focus {
    color: #0f9ea6 !important;
}

.small-box.text-bg-primary {
    background-color: #14c5cd !important;
}

.card-primary.card-outline,
.card-outline.card-primary {
    border-top-color: #14c5cd !important;
}

.form-check-input:checked {
    background-color: #14c5cd;
    border-color: #14c5cd;
}

.page-link {
    color: #14c5cd;
}

.page-item.active .page-link {
    background-color: #14c5cd;
    border-color: #14c5cd;
}

/* =============================================================================
 * 后台管理壳层：品牌渐变底 + 顶栏/侧栏/卡片毛玻璃（不影响 .nykb-login-page 登录页）
 * ============================================================================= */
body.layout-fixed.sidebar-expand-lg {
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background-color: #e8eef5 !important;
    background-image: radial-gradient(ellipse 90% 60% at 0% -15%, rgba(20, 197, 205, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(20, 197, 205, 0.1), transparent 45%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(15, 100, 120, 0.06), transparent 50%);
    background-attachment: fixed;
}

body.layout-fixed.sidebar-expand-lg .app-wrapper {
    background: transparent;
}

/* 顶栏 */
body.layout-fixed.sidebar-expand-lg .app-header.navbar {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(20, 197, 205, 0.14);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 4px 24px rgba(7, 20, 34, 0.06);
}

body.layout-fixed.sidebar-expand-lg .app-header .nav-link {
    color: #334155;
    border-radius: 0.5rem;
    margin: 0 0.1rem;
}

body.layout-fixed.sidebar-expand-lg .app-header .nav-link:hover {
    background: rgba(20, 197, 205, 0.1);
    color: #0f766e;
}

/* 侧栏 */
body.layout-fixed.sidebar-expand-lg .app-sidebar {
    background: rgba(15, 23, 42, 0.78) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(20, 197, 205, 0.18);
    box-shadow: 6px 0 32px rgba(7, 20, 34, 0.15);
}

body.layout-fixed.sidebar-expand-lg .sidebar-brand {
    border-bottom: 1px solid rgba(20, 197, 205, 0.15);
    background: rgba(0, 0, 0, 0.12);
}

body.layout-fixed.sidebar-expand-lg .sidebar-brand .brand-link .brand-text {
    color: #f1f5f9;
}

body.layout-fixed.sidebar-expand-lg .sidebar-brand .brand-link .brand-text b {
    color: #7ee8ee;
    font-weight: 700;
}

body.layout-fixed.sidebar-expand-lg .nav-header {
    color: rgba(148, 163, 184, 0.85) !important;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

body.layout-fixed.sidebar-expand-lg .sidebar-menu .nav-link {
    border-radius: 0.5rem;
    margin: 0.1rem 0.5rem;
    transition: background 0.15s ease, color 0.15s ease;
}

body.layout-fixed.sidebar-expand-lg .sidebar-menu .nav-link:not(.active):hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

body.layout-fixed.sidebar-expand-lg .sidebar-menu .nav-link.active {
    background: linear-gradient(
            90deg,
            rgba(20, 197, 205, 0.28),
            rgba(20, 197, 205, 0.06)
    ) !important;
    border-left: 3px solid #14c5cd;
    color: #ecfeff !important;
    box-shadow: 0 4px 16px rgba(20, 197, 205, 0.12);
}

body.layout-fixed.sidebar-expand-lg .sidebar-menu .nav-link.active .nav-icon {
    color: #7ee8ee !important;
}

/* 主内容区 */
body.layout-fixed.sidebar-expand-lg .app-main {
    background: transparent !important;
}

body.layout-fixed.sidebar-expand-lg .app-content-header {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(20, 197, 205, 0.1);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.25rem;
}

body.layout-fixed.sidebar-expand-lg .app-content-header h3 {
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.layout-fixed.sidebar-expand-lg .app-content-header .breadcrumb {
    margin-bottom: 0;
}

body.layout-fixed.sidebar-expand-lg .app-content-header .breadcrumb-item a {
    color: #14c5cd;
    text-decoration: none;
    font-weight: 500;
}

body.layout-fixed.sidebar-expand-lg .app-content-header .breadcrumb-item a:hover {
    text-decoration: underline;
}

body.layout-fixed.sidebar-expand-lg .app-content {
    padding-top: 0.75rem;
}

/* 底栏 */
body.layout-fixed.sidebar-expand-lg .app-footer {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(20, 197, 205, 0.12);
    color: #64748b;
    font-size: 0.875rem;
}

/* 卡片毛玻璃 */
body.layout-fixed.sidebar-expand-lg .card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.03),
    0 12px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

body.layout-fixed.sidebar-expand-lg .card-header {
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(20, 197, 205, 0.12);
    font-weight: 600;
}

body.layout-fixed.sidebar-expand-lg .card-title {
    color: #0f172a;
}

body.layout-fixed.sidebar-expand-lg .card-footer {
    background: rgba(248, 250, 252, 0.65);
    border-top: 1px solid rgba(20, 197, 205, 0.1);
}

/* 指标小卡片：保留实色，统一圆角与阴影 */
body.layout-fixed.sidebar-expand-lg .small-box {
    border-radius: 1rem;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

body.layout-fixed.sidebar-expand-lg .small-box.text-bg-primary {
    box-shadow: 0 8px 28px rgba(20, 197, 205, 0.35);
}

/* 表格 */
body.layout-fixed.sidebar-expand-lg .table {
    --bs-table-bg: transparent;
}

body.layout-fixed.sidebar-expand-lg .table > :not(caption) > * > * {
    background-color: transparent;
}

body.layout-fixed.sidebar-expand-lg .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(20, 197, 205, 0.045) !important;
}

body.layout-fixed.sidebar-expand-lg .table-hover > tbody > tr:hover > * {
    background-color: rgba(20, 197, 205, 0.08) !important;
}

/* DataTables 与 Bootstrap 表格头 */
body.layout-fixed.sidebar-expand-lg table.dataTable thead th,
body.layout-fixed.sidebar-expand-lg .table thead th {
    border-bottom-color: rgba(20, 197, 205, 0.2);
    color: #334155;
    font-weight: 600;
}

/* 表单控件 */
body.layout-fixed.sidebar-expand-lg .form-control,
body.layout-fixed.sidebar-expand-lg .form-select {
    border-radius: 0.5rem;
    border-color: #e2e8f0;
}

body.layout-fixed.sidebar-expand-lg .form-control:focus,
body.layout-fixed.sidebar-expand-lg .form-select:focus {
    border-color: #14c5cd;
    box-shadow: 0 0 0 0.2rem rgba(20, 197, 205, 0.2);
}

body.layout-fixed.sidebar-expand-lg .input-group-text {
    border-color: #e2e8f0;
    background: rgba(248, 250, 252, 0.9);
    color: #14c5cd;
    border-radius: 0.5rem;
}

/* 按钮次要样式略提亮 */
body.layout-fixed.sidebar-expand-lg .btn-secondary {
    border-radius: 0.5rem;
}

body.layout-fixed.sidebar-expand-lg .btn-outline-secondary {
    border-radius: 0.5rem;
}

/* 提示框 */
body.layout-fixed.sidebar-expand-lg .alert {
    border-radius: 0.75rem;
    border-width: 1px;
}

/* 下拉菜单 */
body.layout-fixed.sidebar-expand-lg .dropdown-menu {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(20, 197, 205, 0.12);
    border-radius: 0.75rem;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}

/* 模态框 */
body.layout-fixed.sidebar-expand-lg .modal-content {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

body.layout-fixed.sidebar-expand-lg .modal-header {
    border-bottom-color: rgba(20, 197, 205, 0.12);
}

body.layout-fixed.sidebar-expand-lg .modal-footer {
    border-top-color: rgba(20, 197, 205, 0.1);
}

/* 列表组 */
body.layout-fixed.sidebar-expand-lg .list-group-item {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(20, 197, 205, 0.08);
}

/* DataTables / Bootstrap 分页当前页 */
body.layout-fixed.sidebar-expand-lg .dataTables_wrapper .page-item.active .page-link {
    background-color: #14c5cd !important;
    border-color: #14c5cd !important;
    color: #fff !important;
}

/* 不支持毛玻璃时的回退 */
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
    body.layout-fixed.sidebar-expand-lg .app-header.navbar {
        background: rgba(255, 255, 255, 0.95) !important;
    }

    body.layout-fixed.sidebar-expand-lg .app-sidebar {
        background: rgba(15, 23, 42, 0.95) !important;
    }

    body.layout-fixed.sidebar-expand-lg .app-content-header {
        background: rgba(255, 255, 255, 0.92);
    }

    body.layout-fixed.sidebar-expand-lg .card {
        background: rgba(255, 255, 255, 0.96);
    }

    body.layout-fixed.sidebar-expand-lg .app-footer {
        background: rgba(255, 255, 255, 0.92) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.layout-fixed.sidebar-expand-lg .sidebar-menu .nav-link {
        transition: none;
    }
}
