/* Data Confiance — Enterprise Premium Design System (dc-admin.css) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    /* Brand Color System */
    --dc-primary: #0079BA;
    --dc-primary-hover: #00679e;
    --dc-brand-blue: #0079BA;
    --dc-brand-blue-hover: #00679e;
    --dc-brand-blue-light: #e6f3fa;
    --dc-brand-blue-border: #b8e0f5;
    --dc-brand-green: var(--ink-2);
    --dc-brand-green-hover: #3d5f00;
    --dc-brand-green-light: #f1f8e6;
    --dc-brand-green-border: #cde699;

    /* Slate Neutral Scale */
    --dc-slate-50: #f8fafc;
    --dc-slate-100: #f1f5f9;
    --dc-slate-200: #e2e8f0;
    --dc-slate-300: #cbd5e1;
    --dc-slate-400: #94a3b8;
    --dc-slate-500: #64748b;
    --dc-slate-600: #475569;
    --dc-slate-700: #334155;
    --dc-slate-800: #1e293b;
    --dc-slate-900: #0a1322;

    /* Surface & Background */
    --dc-bg: #f8fafc;
    --dc-surface: #ffffff;
    --dc-surface-subtle: #f8fafc;
    --dc-border: #e2e8f0;
    --dc-border-subtle: #f1f5f9;
    --dc-border-hover: #cbd5e1;

    /* Typography - Deep Black/Dark Slate for Maximum Contrast */
    --dc-text-primary: #0f172a;
    --dc-text-secondary: #1e293b;
    --dc-text-muted: #475569;

    /* Status Colors */
    --dc-success: var(--ink-2);
    --dc-success-bg: #f1f8e6;
    --dc-success-border: #cde699;
    --dc-success-text: var(--ink-2);

    --dc-warning: #f59e0b;
    --dc-warning-bg: #fffbeb;
    --dc-warning-border: #fde68a;
    --dc-warning-text: #b45309;

    --dc-danger: #ef4444;
    --dc-danger-bg: #fef2f2;
    --dc-danger-border: #fecaca;
    --dc-danger-text: #b91c1c;

    --dc-info: #0079BA;
    --dc-info-bg: #e6f3fa;
    --dc-info-border: #b8e0f5;
    --dc-info-text: #0079BA;

    /* Layout Dimensions */
    --dc-sidebar-width: 250px;
    --dc-sidebar-collapsed-width: 68px;
    --dc-topbar-height: 56px;

    /* Elevational Shadows */
    --dc-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --dc-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --dc-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);

    /* Global Border Radius — 10px */
    --dc-radius-sm: 8px;
    --dc-radius-md: 10px;
    --dc-radius-lg: 10px;
    --dc-radius-pill: 9999px;

    /* Transitions */
    --dc-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --dc-transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
body.dc-admin-body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--dc-bg);
    color: var(--dc-text-primary);
    font-size: 0.875rem; /* 14px base font */
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .dc-font-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
    color: var(--dc-text-primary);
    font-weight: 700;
}

/* -------------------------------------------------------------
   1. SIDEBAR SYSTEM
------------------------------------------------------------- */
.dc-sidebar {
    width: var(--dc-sidebar-width);
    background: var(--dc-slate-900);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: width var(--dc-transition-normal), transform var(--dc-transition-normal);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.dc-sidebar-header {
    height: var(--dc-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.dc-brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
}

.dc-brand-full-logo-wrapper {
    background: #ffffff;
    padding: 3px 8px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.dc-brand-full-logo {
    height: 24px;
    width: auto;
    max-width: 165px;
    object-fit: contain;
    display: block;
}

.dc-brand-mini-logo-wrapper {
    background: #ffffff;
    padding: 4px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.dc-brand-mini-logo {
    height: 26px;
    width: 26px;
    object-fit: contain;
    display: block;
}

.dc-brand-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--dc-brand-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.dc-brand-title {
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.dc-brand-subtitle {
    display: block;
    color: var(--dc-slate-400);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dc-sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 8px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.dc-nav-section-label {
    font-size: 0.65rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    padding: 8px 10px 4px;
    white-space: nowrap;
    overflow: hidden;
}

.dc-nav-link {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    color: #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all var(--dc-transition-fast);
    margin-bottom: 2px;
    white-space: nowrap;
    position: relative;
}

.dc-nav-link:hover {
    color: #ffffff;
    background: rgba(0, 121, 186, 0.2);
}

.dc-nav-link.active {
    background: var(--dc-brand-blue);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 121, 186, 0.35);
    border-left: 3px solid var(--dc-brand-green);
}

.dc-nav-icon {
    font-size: 1rem;
    width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.dc-nav-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 750;
    padding: 2px 7px;
    border-radius: var(--dc-radius-pill);
    background: rgba(0, 121, 186, 0.25);
    color: #38bdf8;
}

.dc-sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

/* Collapsed Sidebar Mode */
.dc-sidebar-collapsed .dc-sidebar {
    width: var(--dc-sidebar-collapsed-width);
}

.dc-sidebar-collapsed .dc-brand-full-logo-wrapper,
.dc-sidebar-collapsed .dc-brand-text,
.dc-sidebar-collapsed .dc-nav-text,
.dc-sidebar-collapsed .dc-nav-section-label,
.dc-sidebar-collapsed .dc-nav-badge,
.dc-sidebar-collapsed .dc-user-info {
    display: none !important;
}

.dc-sidebar-collapsed .dc-brand-mini-logo-wrapper {
    display: inline-flex !important;
}

.dc-sidebar-collapsed .dc-nav-link {
    justify-content: center;
    padding: 10px 0;
}

.dc-sidebar-collapsed .dc-nav-icon {
    margin-right: 0;
}

/* -------------------------------------------------------------
   2. MAIN CONTENT WRAPPER & TOPBAR
------------------------------------------------------------- */
.dc-main-wrapper {
    margin-left: var(--dc-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--dc-transition-normal);
}

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

.dc-topbar {
    height: var(--dc-topbar-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--dc-border);
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.dc-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--dc-slate-300);
    background: var(--dc-surface);
    color: var(--dc-slate-800);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--dc-transition-fast);
    position: relative;
}

.dc-icon-btn:hover {
    background: var(--dc-slate-100);
    color: var(--dc-text-primary);
    border-color: var(--dc-slate-400);
}

.dc-search-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--dc-slate-100);
    border: 1px solid var(--dc-border);
    border-radius: 10px;
    padding: 6px 12px;
    color: var(--dc-slate-700);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--dc-transition-fast);
    width: 240px;
}

.dc-search-trigger:hover {
    background: var(--dc-surface);
    border-color: var(--dc-brand-blue);
    color: var(--dc-text-primary);
}

.dc-shortcut-kbd {
    background: var(--dc-surface);
    border: 1px solid var(--dc-slate-300);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--dc-slate-700);
    margin-left: auto;
}

/* User Avatar & Dropdown */
.dc-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--dc-brand-blue);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* -------------------------------------------------------------
   3. CARDS & KPI CONTAINERS
------------------------------------------------------------- */
.dc-card {
    background: var(--dc-surface);
    border: 1px solid var(--dc-border);
    border-radius: 10px;
    box-shadow: var(--dc-shadow-xs);
    transition: box-shadow var(--dc-transition-normal), border-color var(--dc-transition-normal);
}

.dc-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--dc-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dc-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: var(--dc-text-primary);
}

.dc-card-body {
    padding: 20px;
}

/* KPI Card */
.dc-kpi-card {
    height: 100%;
    min-height: 145px;
    padding: 20px;
    background: var(--dc-surface);
    border: 1px solid var(--dc-border);
    border-radius: 10px;
    box-shadow: var(--dc-shadow-xs);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--dc-transition-fast), box-shadow var(--dc-transition-fast);
}

.dc-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--dc-shadow-md);
}

.dc-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.dc-kpi-icon-blue { background: var(--dc-brand-blue-light); color: var(--dc-brand-blue); }
.dc-kpi-icon-green { background: var(--dc-brand-green-light); color: var(--dc-brand-green); }
.dc-kpi-icon-warning { background: var(--dc-warning-bg); color: var(--dc-warning); }
.dc-kpi-icon-indigo { background: #f0f3ff; color: #4f46e5; }

.dc-kpi-body {
    margin-top: auto;
}

.dc-kpi-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dc-text-primary);
    line-height: 1.2;
    margin-bottom: 2px;
}

.dc-kpi-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dc-slate-700);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* -------------------------------------------------------------
   4. TABLES SYSTEM & CRISP VISIBILITY
------------------------------------------------------------- */
.dc-table-container {
    width: 100%;
    overflow-x: auto;
    position: relative;
}

.dc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}

.dc-table th {
    background: var(--dc-slate-50);
    color: var(--dc-slate-800);
    font-size: 0.725rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 12px;
    border-bottom: 1px solid var(--dc-border);
    white-space: nowrap;
}

.dc-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--dc-border-subtle);
    vertical-align: middle;
    color: #0f172a; /* Deep black text for 100% visibility */
    font-size: 0.825rem;
    font-weight: 500;
}

.text-nowrap, .dc-date-cell {
    white-space: nowrap !important;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.dc-table tbody tr {
    transition: background-color var(--dc-transition-fast);
}

.dc-table tbody tr:hover td {
    background-color: #f8fafc;
}

.dc-table tbody tr:last-child td {
    border-bottom: none;
}

/* HIGH-CONTRAST BADGES SYSTEM */
.dc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: var(--dc-radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.dc-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.dc-badge-active {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.dc-badge-active .dc-badge-dot { background: #10b981; }

.dc-badge-inactive {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.dc-badge-inactive .dc-badge-dot { background: #ef4444; }

.dc-badge-pending {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}
.dc-badge-pending .dc-badge-dot { background: #f59e0b; }

.dc-badge-draft {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}
.dc-badge-draft .dc-badge-dot { background: #64748b; }

.dc-module-badge, .bg-slate-100 {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

.text-slate-700, .text-slate-600, .text-slate-800 {
    color: #0f172a !important;
}

/* Custom Role & Pill Badges with 100% Crisp Black/Dark Blue Visibility & Fixed Uniform Height */
.dc-role-chip,
.dc-slug-chip,
.dc-perm-pill,
.dc-user-count-chip,
.dc-badge,
.badge {
    white-space: nowrap !important;
    vertical-align: middle !important;
}

.dc-role-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    height: 24px;
    box-sizing: border-box;
    border-radius: var(--dc-radius-pill);
    background-color: var(--dc-brand-blue-light);
    color: var(--dc-brand-blue);
    border: 1px solid var(--dc-brand-blue-border);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    margin: 1px 0;
}

.dc-slug-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    height: 24px;
    box-sizing: border-box;
    border-radius: 6px;
    background-color: #f1f5f9;
    color: #0f172a; /* Deep dark slate for maximum readability */
    border: 1px solid #cbd5e1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.725rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.dc-perm-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    height: 22px;
    box-sizing: border-box;
    border-radius: 6px;
    background-color: #f1f5f9;
    color: #0f172a; /* Crisp dark text so permission slugs are 100% visible */
    border: 1px solid #cbd5e1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.dc-user-count-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    height: 24px;
    box-sizing: border-box;
    border-radius: var(--dc-radius-pill);
    background-color: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

/* Action Icon Buttons for Table Rows */
.dc-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid var(--dc-slate-300);
    background: var(--dc-surface);
    color: var(--dc-slate-800);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--dc-transition-fast);
}

.dc-action-btn:hover, .dc-action-btn:focus {
    background: var(--dc-brand-blue-light);
    color: var(--dc-brand-blue);
    border-color: var(--dc-brand-blue-border);
}

/* -------------------------------------------------------------
   5. BUTTONS & FORMS SYSTEM — BORDER RADIUS 10PX & PADDING 6PX
------------------------------------------------------------- */
.dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px; /* Requested 6px padding */
    border-radius: 10px; /* Requested 10px border radius */
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--dc-transition-fast);
    line-height: 1.4;
    white-space: nowrap;
}

.dc-btn-primary, .dc-btn-brand {
    background: var(--dc-brand-blue);
    color: #ffffff;
    border-color: var(--dc-brand-blue);
    box-shadow: var(--dc-shadow-xs);
}
.dc-btn-primary:hover, .dc-btn-brand:hover {
    background: var(--dc-brand-blue-hover);
    border-color: var(--dc-brand-blue-hover);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 121, 186, 0.25);
}

.dc-btn-success, .dc-btn-green {
    background: var(--dc-brand-green);
    color: #ffffff;
    border-color: var(--dc-brand-green);
    box-shadow: var(--dc-shadow-xs);
}
.dc-btn-success:hover, .dc-btn-green:hover {
    background: var(--dc-brand-green-hover);
    border-color: var(--dc-brand-green-hover);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(76, 119, 0, 0.25);
}

.dc-btn-secondary {
    background: var(--dc-surface);
    color: #0f172a;
    border-color: var(--dc-slate-300);
}
.dc-btn-secondary:hover {
    background: var(--dc-slate-100);
    border-color: var(--dc-slate-400);
    color: var(--dc-text-primary);
}

.dc-btn-sm {
    padding: 4px 10px !important;
    font-size: 0.78rem !important;
    border-radius: 8px !important;
    line-height: 1.2 !important;
    height: 30px !important;
}

.dc-btn-danger {
    background: var(--dc-danger);
    color: #ffffff;
    border-color: var(--dc-danger);
}
.dc-btn-danger:hover {
    background: #dc2626;
    color: #ffffff;
}

.dc-btn-lg {
    padding: 10px 22px;
    font-size: 0.95rem;
    border-radius: 10px;
}

/* Forms */
.dc-form-label {
    font-size: 0.825rem;
    font-weight: 700;
    color: #0f172a; /* Deep black for form labels */
    margin-bottom: 6px;
    display: block;
}

.dc-form-control, .dc-form-select {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    color: #0f172a; /* Deep black text for input value visibility */
    background-color: var(--dc-surface);
    background-clip: padding-box;
    border: 1px solid var(--dc-slate-300);
    border-radius: 10px; /* 10px border radius for inputs */
    transition: border-color var(--dc-transition-fast), box-shadow var(--dc-transition-fast);
}

.dc-form-control:focus, .dc-form-select:focus {
    border-color: var(--dc-brand-blue);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 121, 186, 0.18);
}

.dc-form-control.is-invalid, .dc-form-select.is-invalid {
    border-color: var(--dc-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.dc-form-error {
    font-size: 0.775rem;
    color: var(--dc-danger);
    margin-top: 4px;
    font-weight: 600;
}

/* -------------------------------------------------------------
   6. FILTER & SEARCH BAR SYSTEM
------------------------------------------------------------- */
.dc-filter-bar {
    background: var(--dc-surface);
    border: 1px solid var(--dc-border);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* -------------------------------------------------------------
   7. EMPTY & LOADING STATES
------------------------------------------------------------- */
.dc-empty-state {
    padding: 48px 24px;
    text-align: center;
}

.dc-empty-icon {
    width: 54px;
    height: 54px;
    background: var(--dc-slate-100);
    border-radius: 50%;
    color: var(--dc-slate-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
}

/* -------------------------------------------------------------
   8. RESPONSIVE CONTROLS
------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .dc-sidebar {
        transform: translateX(-100%);
    }
    .dc-sidebar-mobile-show .dc-sidebar {
        transform: translateX(0);
    }
    .dc-main-wrapper {
        margin-left: 0 !important;
    }
}

/* -------------------------------------------------------------
   9. PREMIUM PAGINATION THEME SYSTEM
------------------------------------------------------------- */
.pagination {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.pagination .page-item {
    margin: 0 !important;
}

.pagination .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: #0f172a !important; /* Deep dark text for maximum readability */
    border: 1px solid #cbd5e1 !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.pagination .page-link:hover {
    background-color: var(--dc-brand-blue-light) !important;
    color: var(--dc-brand-blue) !important;
    border-color: var(--dc-brand-blue) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(0, 121, 186, 0.2) !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--dc-brand-blue) !important;
    background: var(--dc-brand-blue) !important;
    color: #ffffff !important;
    border-color: var(--dc-brand-blue) !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 10px rgba(0, 121, 186, 0.35) !important;
}

.pagination .page-item.disabled .page-link {
    background-color: #f8fafc !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* -------------------------------------------------------------
   8. ULTRA COMPACT & ELEGANT SWEETALERT2 STYLING
------------------------------------------------------------- */
.swal2-popup.dc-swal-popup {
    width: 360px !important;
    padding: 1.25rem 1rem !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04) !important;
}

.swal2-title.dc-swal-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.25rem !important;
    padding: 0 !important;
}

.swal2-html-container.dc-swal-content {
    font-size: 0.85rem !important;
    color: #64748b !important;
    margin: 0.25rem 0 1rem 0 !important;
    line-height: 1.4 !important;
    padding: 0 !important;
}

.swal2-icon {
    width: 3rem !important;
    height: 3rem !important;
    margin: 0.25rem auto 0.5rem auto !important;
    border-width: 3px !important;
}

.swal2-icon .swal2-icon-content {
    font-size: 1.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.swal2-actions {
    gap: 0.5rem !important;
    margin-top: 0.5rem !important;
}

.swal2-actions button {
    font-size: 0.825rem !important;
    padding: 6px 14px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}
