@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --primary-color: #1e293b;
    --primary-dark: #0f172a;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --bg-light: #f1f5f9;
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(255, 255, 255, 0.65);
    --shadow-premium: 0 10px 30px rgba(15, 23, 42, 0.05);
    --shadow-elevated: 0 14px 36px rgba(15, 23, 42, 0.09);
    --control-border: #94a3b8;
    --control-border-hover: #475569;
    --control-bg: #ffffff;
    --control-addon-bg: #f8fafc;
    --radius-card: 16px;
    --radius-control: 10px;
    --transition-base: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    font-family: 'Inter', 'Noto Sans JP', Meiryo, sans-serif;
    color: #334155;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. Glassmorphism & Card Surfaces
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-premium);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* ==========================================================================
   2. Global Loading & Toast Notifications
   ========================================================================== */
#global-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spinner-premium {
    width: 3rem;
    height: 3rem;
    color: var(--accent-color);
}

.toast-container-top-center {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10050;
}

.toast-premium {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
    color: #fff;
    border: none;
}

/* ==========================================================================
   3. Unified Form Controls, Selects, Input Groups & Buttons
   ========================================================================== */
.form-label {
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

/* Base style for all inputs and selects across the project */
.form-control,
.form-select,
button.form-select {
    background-color: var(--control-bg) !important;
    border: 1px solid var(--control-border) !important;
    border-radius: var(--radius-control) !important;
    color: #1e293b !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    padding: 0.5rem 0.9rem;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease !important;
}

/* Ensure 1px border even if elements retain legacy .border-2 utility class */
.form-control.border-2,
.form-select.border-2,
button.form-select.border-2,
.input-group-text.border-2 {
    border-width: 1px !important;
}

.form-control::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* Clear dropdown chevron for all .form-select (both <select> and <button>) */
.form-select,
button.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23334155' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.9rem center !important;
    background-size: 14px 10px !important;
    padding-right: 2.5rem !important;
    cursor: pointer;
}

/* Hover state: clearly signals an interactive input/select box */
.form-control:hover:not(:disabled),
.form-select:hover:not(:disabled),
button.form-select:hover:not(:disabled) {
    border-color: var(--control-border-hover) !important;
}

/* Focus state: crisp blue outline and focus ring */
.form-control:focus,
.form-select:focus,
button.form-select:focus {
    background-color: #ffffff !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
    outline: none !important;
}

.form-control:disabled,
.form-select:disabled {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
}

/* Unified Input Group (Icon/Text Addon + Input / Select / Dropdown) */
.input-group {
    border-radius: var(--radius-control);
    transition: box-shadow 0.18s ease;
}

.input-group.input-group-sm {
    border-radius: 8px;
}

/* Base style for input-group-text */
.input-group > .input-group-text {
    background-color: var(--control-addon-bg) !important;
    color: #475569 !important;
    border: 1px solid var(--control-border) !important;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.input-group.input-group-sm > .input-group-text {
    min-width: auto;
    padding: 0.25rem 0.65rem !important;
    font-size: 0.85rem !important;
}

.input-group.input-group-sm > .form-control {
    padding: 0.25rem 0.65rem !important;
    font-size: 0.875rem !important;
}

.input-group > .input-group-text i {
    color: inherit !important;
    font-size: 0.95rem;
}

/* --- CASE A: Addon ở ĐẦU (Prefix: span.input-group-text -> input/select) --- */
.input-group > .input-group-text:first-child {
    border-right: 1px solid #cbd5e1 !important;
    border-top-left-radius: var(--radius-control) !important;
    border-bottom-left-radius: var(--radius-control) !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group.input-group-sm > .input-group-text:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.input-group > .input-group-text:first-child + .form-control,
.input-group > .input-group-text:first-child + .form-select,
.input-group > .input-group-text:first-child + .dropdown > button.form-select {
    border-left: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: var(--radius-control) !important;
    border-bottom-right-radius: var(--radius-control) !important;
}

.input-group.input-group-sm > .input-group-text:first-child + .form-control,
.input-group.input-group-sm > .input-group-text:first-child + .form-select {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* Suffix Button (input-group with button at the end) */
.input-group > .input-group-text:first-child + .form-control:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.input-group > .btn:last-child,
.input-group > button:last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: var(--radius-control) !important;
    border-bottom-right-radius: var(--radius-control) !important;
}

/* --- CASE B: Addon ở CUỐI (Suffix: input/select -> span.input-group-text) --- */
.input-group > .form-control:first-child,
.input-group > .form-select:first-child {
    border-right: 1px solid #cbd5e1 !important;
    border-top-left-radius: var(--radius-control) !important;
    border-bottom-left-radius: var(--radius-control) !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group.input-group-sm > .form-control:first-child,
.input-group.input-group-sm > .form-select:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.input-group > .form-control:first-child + .input-group-text,
.input-group > .form-select:first-child + .input-group-text,
.input-group > .input-group-text:last-child {
    border-left: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: var(--radius-control) !important;
    border-bottom-right-radius: var(--radius-control) !important;
}

.input-group.input-group-sm > .form-control:first-child + .input-group-text,
.input-group.input-group-sm > .form-select:first-child + .input-group-text,
.input-group.input-group-sm > .input-group-text:last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* Dropdown integration inside input-group */
.input-group > .dropdown {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

/* Hover & Focus state synchronization */
.input-group:hover > .input-group-text,
.input-group:hover > .form-control:not(:disabled),
.input-group:hover > .form-select:not(:disabled),
.input-group:hover > .dropdown > button.form-select:not(:disabled) {
    border-color: var(--control-border-hover) !important;
}

.input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.input-group:focus-within > .input-group-text {
    border-color: var(--accent-color) !important;
    background-color: #eff6ff !important;
    color: var(--accent-hover) !important;
}

.input-group:focus-within > .input-group-text:first-child {
    border-right-color: #93c5fd !important;
}

.input-group:focus-within > .input-group-text:last-child {
    border-left-color: #93c5fd !important;
}

.input-group:focus-within > .form-control,
.input-group:focus-within > .form-select,
.input-group:focus-within > .dropdown > button.form-select {
    border-color: var(--accent-color) !important;
    box-shadow: none !important;
}

/* Buttons */
.btn {
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Custom Radio Premium */
.custom-radio-premium {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: #ffffff;
    border: 1px solid var(--control-border);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-base);
    color: #334155;
    font-weight: 600;
    position: relative;
    padding-left: 2.8rem;
}

.custom-radio-premium::before {
    content: "";
    position: absolute;
    left: 1rem;
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid #94a3b8;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s;
}

.custom-radio-premium::after {
    content: "";
    position: absolute;
    left: 1.35rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #fff;
    transform: scale(0);
    transition: all 0.2s;
}

.custom-radio-input {
    display: none;
}

.custom-radio-input:checked + .custom-radio-premium {
    background: #eff6ff;
    border-color: var(--accent-color);
    color: var(--accent-hover);
}

.custom-radio-input:checked + .custom-radio-premium::before {
    border-color: var(--accent-color);
    background: var(--accent-color);
}

.custom-radio-input:checked + .custom-radio-premium::after {
    transform: scale(1);
}

.custom-radio-premium:hover {
    border-color: var(--control-border-hover);
    background: #f8fafc;
}

/* Validation Styles */
.is-invalid,
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545 !important;
    background-image: none !important;
}

.form-select.is-invalid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dc3545' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
    font-weight: 500;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* ==========================================================================
   4. Tom Select (High-Contrast Input Box Harmonization)
   ========================================================================== */
.ts-wrapper.form-select,
.ts-wrapper.form-control {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    min-height: 48px;
}

.ts-wrapper.form-select .ts-control,
.ts-wrapper.form-control .ts-control {
    min-height: 48px !important;
    padding: 0.5rem 2.5rem 0.5rem 0.9rem !important;
    border: 1px solid var(--control-border) !important;
    border-radius: var(--radius-control) !important;
    background-color: var(--control-bg) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23334155' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.9rem center !important;
    background-size: 14px 10px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    cursor: pointer !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.ts-wrapper.form-select:hover .ts-control,
.ts-wrapper.form-control:hover .ts-control {
    border-color: var(--control-border-hover) !important;
}

.ts-wrapper.form-select.focus .ts-control,
.ts-wrapper.form-control.focus .ts-control {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

.ts-wrapper.form-select.is-invalid .ts-control,
.ts-wrapper.form-control.is-invalid .ts-control {
    border-color: #dc3545 !important;
}

.input-group > .ts-wrapper.form-select,
.input-group > .ts-wrapper.form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group > .input-group-text + select + .ts-wrapper .ts-control,
.input-group > .input-group-text + .ts-wrapper .ts-control {
    border-left: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.ts-dropdown {
    z-index: 2000 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14) !important;
    padding: 0.35rem !important;
    margin-top: 4px !important;
    background: #fff !important;
    font-size: 0.92rem;
}

.ts-dropdown .option {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: #334155;
    transition: background-color 0.12s ease;
}

.ts-dropdown .option.active,
.ts-dropdown .option:hover {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: var(--accent-hover) !important;
}

.ts-dropdown .option.selected {
    background-color: var(--accent-color) !important;
    color: #fff !important;
    font-weight: 600;
}

/* ==========================================================================
   5. Modern Table & DataTables Unified Styling
   ========================================================================== */
.table {
    color: #495057;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table > :not(caption) > * > * {
    padding: 1.1rem 1rem;
    background-color: transparent;
    border-bottom-width: 1px;
    border-bottom-color: rgba(0, 0, 0, 0.04);
    box-shadow: none;
}

.table-bordered th,
.table-bordered td {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.table,
.table-responsive {
    border: none !important;
    overflow: visible !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(81, 146, 251, 0.08) !important;
}

.table thead th {
    background-color: #f8f9fa !important;
    color: #495057;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    border-bottom: 2px solid rgba(59, 130, 246, 0.12);
    position: sticky !important;
    top: 59px !important;
    z-index: 500 !important;
}

.table-responsive[style*="max-height"] thead th,
.table-responsive-scroll thead th {
    top: 0 !important;
}

.table-responsive .table {
    border-radius: 12px;
    border-collapse: separate !important;
}

.table-responsive .table thead tr:first-child th:first-child {
    border-top-left-radius: 12px;
}

.table-responsive .table thead tr:first-child th:last-child {
    border-top-right-radius: 12px;
}

.table-hover tbody tr:hover {
    background-color: rgba(67, 137, 250, 0.22) !important;
    transition: background-color 0.2s ease;
}

.bg-row-alt {
    background-color: rgba(59, 130, 246, 0.08) !important;
}

.bg-group-hover {
    background-color: rgba(59, 130, 246, 0.22) !important;
    transition: background-color 0.1s ease;
}

.table-modern td,
.table-modern th {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

/* DataTables Wrapper Polish */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--control-border) !important;
    border-radius: 8px !important;
    padding: 0.38rem 0.85rem !important;
    margin-left: 0.5rem !important;
    background-color: #fff !important;
    color: #1e293b !important;
    font-weight: 500;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
    outline: none;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--control-border) !important;
    border-radius: 8px !important;
    padding: 0.35rem 2rem 0.35rem 0.75rem !important;
    margin: 0 0.35rem !important;
    background-color: #fff !important;
    color: #1e293b !important;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_info {
    font-size: 0.875rem;
    color: #64748b;
    padding-top: 0.6rem;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    gap: 4px;
}

.dataTables_wrapper .dataTables_paginate .page-link {
    border-radius: 8px !important;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-weight: 500;
    padding: 0.38rem 0.75rem;
    transition: var(--transition-base);
}

.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}

/* ==========================================================================
   6. Sidebar & Main Layout
   ========================================================================== */
#sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(15, 23, 42, 0.08);
}

#sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
    white-space: nowrap;
    display: inline-block;
}

#sidebar.collapsed .sidebar-header h4 {
    display: none;
}

.nav-menu {
    padding: 10px 0;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-item-side {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link-side {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
}

.nav-link-side i {
    width: 25px;
    font-size: 1.1rem;
    margin-right: 12px;
    text-align: center;
}

.nav-link-side:hover,
.nav-link-side.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-color);
}

#sidebar.collapsed .nav-link-side span,
#sidebar.collapsed .nav-link-side .ms-auto {
    display: none;
}

.nav-item-side .collapse .nav-link-side {
    padding-left: 50px;
    font-size: 0.9rem;
}

#main-wrapper {
    margin-left: var(--sidebar-width);
    transition: all 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#main-wrapper.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

.top-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-height: 60px;
    height: auto;
    display: flex;
    align-items: center;
    padding: 10px 30px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1020;
    overflow: visible !important;
}

.dropdown-menu {
    z-index: 1030 !important;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12) !important;
}

.toggle-btn {
    cursor: pointer;
    font-size: 1.2rem;
    margin-right: 20px;
    color: var(--primary-color);
}

.content-area {
    padding: 30px;
    flex-grow: 1;
}

/* ==========================================================================
   7. Dashboard & Hero Animations
   ========================================================================== */
@keyframes dxFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dxFadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-fade-down {
    animation: dxFadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-fade-up {
    animation: dxFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-delay-1 {
    animation-delay: 0.15s;
}

.anim-delay-2 {
    animation-delay: 0.3s;
}

.quick-nav-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.quick-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
    color: inherit;
}

/* ==========================================================================
   8. Print Media Support
   ========================================================================== */
@media print {
    #sidebar,
    .top-navbar,
    #global-toast-container,
    #global-loading-overlay {
        display: none !important;
    }
    #main-wrapper,
    #main-wrapper.expanded {
        margin-left: 0 !important;
    }
    .content-area {
        padding: 0 !important;
    }
}

/* ==========================================================================
   9. Segmented Glass Capsule Tab Bar (Modern UI Tabs)
   ========================================================================== */
.glass-tabs-container {
    position: relative;
    z-index: 10;
}

.glass-tabs-wrapper {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 14px;
    padding: 5px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    max-width: 100%;
    overflow-x: auto;
}

.glass-tabs-nav {
    margin-bottom: 0;
    display: flex;
    flex-wrap: nowrap;
    border: none !important;
}

.glass-tabs-nav .nav-item {
    margin-bottom: 0;
    white-space: nowrap;
}

.glass-tabs-nav .nav-link {
    background-color: transparent !important;
    color: #64748b !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 9px 22px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
}

.glass-tabs-nav .nav-link i {
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.glass-tabs-nav .nav-link:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.04) !important;
    color: #1e293b !important;
}

.glass-tabs-nav .nav-link:hover:not(.active) i {
    transform: scale(1.08);
}

.glass-tabs-nav .nav-link.active {
    background-color: var(--accent-color, #1B365D) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(27, 54, 93, 0.25) !important;
    font-weight: 700 !important;
}

.glass-tabs-nav .nav-link.active .badge {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}
