/* ============================================================
   Basic Flow - Professional UI
   Colors: #ff6b00 (Primary), #000000 (Dark), #ffffff (White)
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --primary:       #ff6b00;
    --primary-dark:  #e05e00;
    --primary-light: #ff8c33;
    --primary-bg:    #fff4ec;
    --primary-rgb:   255, 107, 0;
    --black:         #000000;
    --dark:          #1a1a1a;
    --dark-2:        #2d2d2d;
    --dark-3:        #3d3d3d;
    --gray:          #6c757d;
    --gray-light:    #adb5bd;
    --border:        #e9ecef;
    --border-dark:   #dee2e6;
    --white:         #ffffff;
    --off-white:     #f8f9fa;
    --sidebar-width: 260px;
    --header-height: 65px;
    --radius:        8px;
    --radius-lg:     12px;
    --shadow:        0 2px 12px rgba(0,0,0,0.08);
    --shadow-md:     0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg:     0 8px 40px rgba(0,0,0,0.16);
    --transition:    all 0.25s ease;
    
    /* Theme Customizable Colors */
    --theme-body-bg:        #f8f9fa;
    --theme-text-primary:   #1a1a1a;
    --theme-text-secondary: #6c757d;
    --theme-link-color:     #ff6b00;
    --theme-link-hover:     #e05e00;
    --theme-link-border:    #ff6b00;
    --theme-link-border-hover: #e05e00;
    --theme-card-bg:        #ffffff;
    --theme-border-color:   #e9ecef;
    --theme-sidebar-bg:     #000000;
    --theme-sidebar-text:   #ffffff;
    --theme-topbar-bg:      #ffffff;
    --theme-topbar-text:    #1a1a1a;
    --theme-button-bg:      #ff6b00;
    --theme-button-text:    #ffffff;
    --theme-button-hover:   #e05e00;
    --theme-input-bg:       #ffffff;
    --theme-input-border:   #dee2e6;
    --theme-input-text:     #1a1a1a;
    --theme-heading-color:  #1a1a1a;
    
    /* Semantic color variables for buttons, alerts, badges */
    --success:              #28a745;
    --success-dark:         #218838;
    --success-text:         #155724;
    --danger:               #dc3545;
    --danger-dark:          #c82333;
    --danger-text:          #721c24;
    --warning:              #ffc107;
    --warning-dark:         #e0a800;
    --warning-text:         #856404;
    --info:                 #007bff;
    --info-dark:            #0056b3;
    --info-text:            #004085;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: var(--theme-text-primary);
    background: var(--theme-body-bg);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a { 
    color: var(--theme-link-color); 
    text-decoration: none; 
    transition: var(--transition); 
}
a:hover { 
    color: var(--theme-link-hover); 
}

/* Links with borders */
a.link-bordered,
a[class*="border"] {
    border-color: var(--theme-link-border) !important;
}

a.link-bordered:hover,
a[class*="border"]:hover {
    border-color: var(--theme-link-border-hover) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--theme-heading-color);
    margin-bottom: 0.5rem;
}

/* SVG icons inherit color from parent */
svg {
    color: inherit;
}

/* Ensure stroke="currentColor" works properly */
svg[stroke="currentColor"] {
    stroke: currentColor;
}

/* Buttons pass color to SVGs */
button svg,
.btn svg,
a svg {
    color: currentColor;
}

/* ============================================================
   FLOATING THEME SETTINGS BUTTON
   ============================================================ */
.theme-settings-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--theme-button-bg);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb, 255, 107, 0), 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s ease;
    color: var(--theme-button-text);
}

.theme-settings-fab:hover {
    background: var(--theme-button-hover);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 30px rgba(var(--primary-rgb, 255, 107, 0), 0.5);
}

.theme-settings-fab svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ============================================================
   THEME DRAWER
   ============================================================ */
.theme-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--theme-card-bg);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.theme-drawer.open {
    right: 0;
}

.theme-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.theme-drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.theme-drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--theme-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--theme-card-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.theme-drawer-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-heading-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-drawer-header h3 svg {
    width: 20px;
    height: 20px;
    fill: var(--theme-link-color);
}

.theme-drawer-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: var(--theme-text-secondary);
}

.theme-drawer-close:hover {
    background: var(--theme-body-bg);
    color: var(--theme-text-primary);
}

.theme-drawer-close svg {
    width: 20px;
    height: 20px;
}

.theme-drawer-body {
    padding: 24px;
    flex: 1;
}

.theme-section {
    margin-bottom: 32px;
}

.theme-section-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--theme-text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-section-title svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.theme-color-control {
    margin-bottom: 20px;
}

.theme-color-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--theme-text-primary);
}

.theme-color-value {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--theme-text-secondary);
    background: var(--theme-body-bg);
    padding: 2px 8px;
    border-radius: 4px;
}

.theme-color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-color-picker {
    width: 50px;
    height: 40px;
    border: 2px solid var(--theme-border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-color-picker:hover {
    border-color: var(--theme-link-color);
    transform: scale(1.05);
}

.theme-color-text {
    flex: 1;
    height: 40px;
    border: 1px solid var(--theme-input-border);
    border-radius: 8px;
    padding: 0 12px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: var(--theme-input-bg);
    color: var(--theme-input-text);
    transition: all 0.2s ease;
}

.theme-color-text:focus {
    outline: none;
    border-color: var(--theme-link-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 255, 107, 0), 0.1);
}

/* Range slider controls for image filters */
.theme-range-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-range-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--theme-border-color) 0%, var(--theme-link-color) 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.theme-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--theme-link-color);
    cursor: pointer;
    border: 2px solid var(--white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.theme-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(var(--primary-rgb, 255, 107, 0), 0.4);
}

.theme-range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--theme-link-color);
    cursor: pointer;
    border: 2px solid var(--white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.theme-range-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(var(--primary-rgb, 255, 107, 0), 0.4);
}

.theme-range-number {
    width: 70px;
    height: 40px;
    border: 1px solid var(--theme-input-border);
    border-radius: 8px;
    padding: 0 12px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: var(--theme-input-bg);
    color: var(--theme-input-text);
    text-align: center;
    transition: all 0.2s ease;
}

.theme-range-number:focus {
    outline: none;
    border-color: var(--theme-link-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 255, 107, 0), 0.1);
}

.theme-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--theme-border-color);
    background: var(--theme-card-bg);
    display: flex;
    gap: 12px;
}

.theme-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.theme-btn-primary {
    background: var(--theme-button-bg);
    color: var(--theme-button-text);
}

.theme-btn-primary:hover {
    background: var(--theme-button-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 255, 107, 0), 0.3);
}

.theme-btn-secondary {
    background: transparent;
    color: var(--theme-text-secondary);
    border: 1px solid var(--theme-border-color);
}

.theme-btn-secondary:hover {
    background: var(--theme-body-bg);
    color: var(--theme-text-primary);
}

.theme-btn svg {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .theme-drawer {
        width: 100%;
        right: -100%;
    }
    
    .theme-settings-fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, #1a0a00 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb, 255, 107, 0), 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--primary-rgb, 255, 107, 0), 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-card {
    background: var(--theme-card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 460px;
    padding: 48px 40px;
    position: relative;
    z-index: 1;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo .logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--theme-button-bg), var(--theme-button-hover));
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb, 255, 107, 0), 0.35);
}

.auth-logo .auth-logo-bg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-button-bg), var(--theme-button-hover));
    border-radius: var(--radius);
    padding: 12px 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb, 255, 107, 0), 0.35);
}

.auth-logo .logo-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

.auth-logo h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.auth-logo span {
    color: var(--primary);
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 28px;
}

/* ---- Form Controls ---- */
.form-label {
    font-weight: 500;
    font-size: 13px;
    color: var(--dark-2);
    margin-bottom: 6px;
}

.form-control, .form-select {
    border: 1.5px solid var(--theme-input-border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--theme-input-text);
    background: var(--theme-input-bg);
    transition: var(--transition);
    width: 100%;
}

.form-control:focus, .form-select:focus {
    border-color: var(--theme-link-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 255, 107, 0), 0.12);
    outline: none;
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: var(--danger);
}

.input-group .form-control { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; }

/* ---- Password Toggle Button ---- */
.btn-password-toggle {
    background: var(--theme-input-bg);
    color: var(--theme-text-secondary);
    border: 1.5px solid var(--theme-input-border);
    border-left: none;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0 var(--radius) var(--radius) 0;
    height: 100%;
    min-height: 42px;
    flex-shrink: 0;
}

.btn-password-toggle:hover,
.btn-password-toggle:focus {
    background: rgba(var(--primary-rgb, 255, 107, 0), 0.06);
    color: var(--theme-button-bg);
    border-color: var(--theme-button-bg);
    outline: none;
    box-shadow: none;
}

.btn-password-toggle svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.invalid-feedback {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
}

/* ---- Buttons ---- */
.btn {
    font-weight: 500;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--theme-button-bg), var(--theme-button-hover));
    color: var(--theme-button-text);
    box-shadow: 0 3px 12px rgba(var(--primary-rgb, 255, 107, 0), 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--theme-button-hover), var(--theme-button-bg));
    color: var(--theme-button-text);
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(var(--primary-rgb, 255, 107, 0), 0.45);
}

.btn-outline-primary {
    background: transparent;
    color: var(--theme-button-bg);
    border: 1.5px solid var(--theme-button-bg);
}

.btn-outline-primary:hover {
    background: var(--theme-button-bg);
    color: var(--theme-button-text);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--dark-2);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border: 1.5px solid var(--dark);
}

.btn-outline-dark:hover {
    background: var(--dark);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: var(--danger-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline-danger {
    background: transparent;
    color: var(--danger);
    border: 1.5px solid var(--danger);
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: var(--success-dark);
    color: var(--white);
}

.btn-outline-success {
    background: transparent;
    color: var(--success);
    border: 1.5px solid var(--success);
}

.btn-outline-success:hover {
    background: var(--success);
    color: var(--white);
}

.btn-outline-warning {
    background: transparent;
    color: var(--warning-dark);
    border: 1.5px solid var(--warning);
}

.btn-outline-warning:hover {
    background: var(--warning);
    color: var(--white);
}

.btn-outline-info {
    background: transparent;
    color: #0dcaf0;
    border: 1.5px solid #0dcaf0;
}

.btn-outline-info:hover {
    background: #0dcaf0;
    color: var(--white);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 13px 28px;
    font-size: 15px;
}

.btn-block { width: 100%; justify-content: center; }

/* ---- Auth Footer ---- */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--gray);
}

.auth-footer a {
    color: var(--theme-button-bg);
    font-weight: 600;
}

.auth-register-link {
    color: var(--theme-button-bg) !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: var(--transition);
}

.auth-register-link:hover {
    color: var(--theme-button-hover) !important;
    text-decoration: underline;
}

/* ---- Divider ---- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--gray-light);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */

/* ---- Sidebar ---- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--theme-sidebar-bg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--dark-3); border-radius: 2px; }

.sidebar-brand {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.sidebar-brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--theme-button-bg), var(--theme-button-hover));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(var(--primary-rgb, 255, 107, 0), 0.4);
}

.sidebar-brand-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.sidebar-brand-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--theme-sidebar-text);
    letter-spacing: -0.3px;
}

.sidebar-brand-text span {
    color: var(--primary);
}

/* Uploaded logo in sidebar */
.sidebar-logo-img {
    max-height: 40px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    /* Subtle light bg so transparent logos show on dark sidebar */
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 4px 8px;
}

/* Logo preview box in settings */
.logo-preview-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-body-bg);
    border: 1px solid var(--theme-border-color);
    border-radius: 8px;
    padding: 10px 16px;
    min-width: 120px;
    min-height: 64px;
}

.logo-preview-img {
    max-height: 56px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Favicon preview box in settings */
.favicon-preview-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-body-bg);
    border: 1px solid var(--theme-border-color);
    border-radius: 6px;
    padding: 6px;
    width: 52px;
    height: 52px;
}

.favicon-preview-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
}

.sidebar-section-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.3);
    padding: 12px 20px 6px;
    margin-top: 8px;
}

.sidebar-nav .nav-item { margin: 1px 10px; }

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--theme-sidebar-text);
    opacity: 0.7;
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 450;
    transition: var(--transition);
    text-decoration: none;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,0.07);
    opacity: 1;
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--theme-button-bg), var(--theme-button-hover));
    color: var(--theme-button-text);
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(var(--primary-rgb, 255, 107, 0), 0.35);
    opacity: 1;
}

.sidebar-nav .nav-link svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.8;
}

.sidebar-nav .nav-link.active svg { opacity: 1; }

.sidebar-nav .nav-link .badge {
    margin-left: auto;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(var(--primary-rgb, 255, 107, 0), 0.25);
    color: var(--primary-light);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.05);
}

.sidebar-user img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--theme-button-bg);
}

.sidebar-user-info { flex: 1; min-width: 0; }

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-sidebar-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 11px;
    color: var(--primary-light);
    text-transform: capitalize;
}

/* ---- Sidebar Nav Group (collapsible) ---- */

/* The toggle button inherits .nav-link styles but is a <button> */
.nav-group-toggle {
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    position: relative;
}

/* Chevron icon — sits at the far right */
.nav-group-chevron {
    width: 14px !important;
    height: 14px !important;
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.5;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

/* Rotate chevron when group is open */
.nav-group.open > .nav-group-toggle .nav-group-chevron {
    transform: rotate(90deg);
    opacity: 0.9;
}

/* Highlight toggle when any child is active (group is open) */
.nav-group.open > .nav-group-toggle {
    opacity: 1;
    background: rgba(255, 255, 255, 0.07);
}

/* Small badge on the toggle (shows trashed count) */
.nav-group-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    background: rgba(220, 53, 69, 0.25);
    color: #ff8a8a;
    margin-left: auto;
    margin-right: 4px;
}

/* Children container — animated collapse */
.nav-group-children {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.28s ease;
}

.nav-group.open > .nav-group-children {
    max-height: 200px; /* enough for any number of children */
}

/* Child nav links */
.nav-link.nav-child {
    padding-left: 36px;
    font-size: 13px;
    opacity: 0.65;
    position: relative;
}

/* Vertical connector line */
.nav-link.nav-child::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.2s ease;
}

.nav-link.nav-child:hover::before,
.nav-link.nav-child.active::before {
    background: var(--theme-button-bg);
}

.nav-link.nav-child:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.07);
}

.nav-link.nav-child.active {
    background: linear-gradient(135deg, var(--theme-button-bg), var(--theme-button-hover));
    color: var(--theme-button-text);
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(var(--primary-rgb, 255, 107, 0), 0.35);
    opacity: 1;
}

/* Inline badge inside child link (trash count) */
.nav-child-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    background: rgba(220, 53, 69, 0.25);
    color: #ff8a8a;
    margin-left: auto;
}

/* Active child — badge becomes white */
.nav-link.nav-child.active .nav-child-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ---- Main Content ---- */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Top Header ---- */
.topbar {
    height: var(--header-height);
    background: var(--theme-topbar-bg);
    border-bottom: 1px solid var(--theme-border-color);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.topbar-left { flex: 1; }

.page-title-bar h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-topbar-text);
    margin: 0;
}

.page-title-bar .breadcrumb {
    margin: 0;
    font-size: 12px;
}

.breadcrumb-item + .breadcrumb-item::before { color: var(--gray-light); }
.breadcrumb-item.active { color: var(--gray); }
.breadcrumb-item a { color: var(--theme-link-color); }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    border: 1.5px solid var(--theme-border-color);
    background: var(--theme-card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--theme-text-secondary);
    position: relative;
}

.topbar-btn:hover {
    border-color: var(--theme-button-bg);
    color: var(--theme-button-bg);
    background: var(--primary-bg);
}

.topbar-btn svg { width: 18px; height: 18px; }

.topbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--theme-button-bg);
    cursor: pointer;
}

/* ---- Page Content ---- */
.page-content {
    flex: 1;
    padding: 24px;
}

/* ---- Cards ---- */
.card {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 18px 24px;
    background: var(--theme-card-bg);
    border-bottom: 1px solid var(--theme-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-header h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--theme-heading-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h5 svg {
    width: 18px;
    height: 18px;
    color: var(--theme-button-bg);
}

.card-body { padding: 24px; }

/* ---- Stat Cards ---- */
.stat-card {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border-color);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--theme-button-bg);
    border-radius: 0;
}

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

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.orange { background: rgba(var(--primary-rgb, 255, 107, 0), 0.12); color: var(--theme-button-bg); }
.stat-icon.dark   { background: rgba(0,0,0,0.08); color: var(--dark); }
.stat-icon.green  { background: rgba(40,167,69,0.12); color: var(--success); }
.stat-icon.blue   { background: rgba(0,123,255,0.12); color: var(--info); }

.stat-icon svg { width: 24px; height: 24px; }

.stat-info { flex: 1; }

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--theme-heading-color);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--theme-text-secondary);
    font-weight: 450;
}

/* ---- Tables ---- */
.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.table thead th {
    background: var(--theme-body-bg);
    color: var(--theme-text-primary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 2px solid var(--theme-border-color);
    white-space: nowrap;
}

.table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--theme-border-color);
    color: var(--theme-text-primary);
    vertical-align: middle;
}

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

.table tbody tr:hover td { background: var(--theme-body-bg); }

/* ---- Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.badge-primary    { background: rgba(var(--primary-rgb, 255, 107, 0), 0.12); color: var(--theme-button-bg); }
.badge-success    { background: rgba(40,167,69,0.12); color: var(--success-text); }
.badge-danger     { background: rgba(220,53,69,0.12); color: var(--danger-dark); }
.badge-warning    { background: rgba(255,193,7,0.15); color: var(--warning-text); }
.badge-secondary  { background: rgba(108,117,125,0.12); color: #495057; }
.badge-dark       { background: rgba(0,0,0,0.08); color: var(--dark); }

/* ---- Alerts ---- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 13.5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: none;
    margin-bottom: 16px;
}

.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.alert-success {
    background: rgba(40,167,69,0.1);
    color: var(--success-text);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: rgba(220,53,69,0.1);
    color: var(--danger-text);
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: rgba(255,193,7,0.12);
    color: var(--warning-text);
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: rgba(0,123,255,0.08);
    color: var(--info-text);
    border-left: 4px solid var(--info);
}

/* ---- Pagination ---- */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item .page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: 1.5px solid var(--theme-border-color);
    color: var(--dark);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    background: var(--theme-card-bg);
}

.page-item .page-link:hover {
    border-color: var(--theme-button-bg);
    color: var(--theme-button-bg);
    background: rgba(var(--primary-rgb, 255, 107, 0), 0.08);
}

.page-item.active .page-link {
    background: var(--theme-button-bg);
    border-color: var(--theme-button-bg);
    color: var(--theme-button-text);
}

.page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---- Vertical Tabs (Settings) ---- */
.settings-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.settings-nav {
    width: 220px;
    flex-shrink: 0;
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border-color);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow);
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.settings-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius);
    color: var(--theme-text-primary);
    font-size: 13.5px;
    font-weight: 450;
    transition: var(--transition);
    text-decoration: none;
    margin-bottom: 2px;
}

.settings-nav .nav-link:hover {
    background: rgba(var(--primary-rgb, 255, 107, 0), 0.06);
    color: var(--theme-button-bg);
}

.settings-nav .nav-link.active {
    background: rgba(var(--primary-rgb, 255, 107, 0), 0.10);
    color: var(--theme-button-bg);
    font-weight: 600;
}

.settings-nav .nav-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: currentColor;
}

.settings-content { flex: 1; min-width: 0; }

.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
}

/* ---- Avatar ---- */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--theme-border-color);
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* ---- Search Bar ---- */
.search-bar {
    position: relative;
}

.search-bar input {
    padding-left: 38px;
}

.search-bar .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-light);
    width: 16px;
    height: 16px;
}

/* ---- Filter Bar ---- */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---- Page Actions ---- */
.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    background: var(--theme-body-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--gray-light);
}

.empty-state-icon svg { width: 32px; height: 32px; }

.empty-state h5 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 20px;
}

/* ---- Delete Account Page ---- */
.delete-account-card {
    border-top: 4px solid #dc3545;
}

.delete-warning-box {
    background: rgba(220,53,69,0.06);
    border: 1px solid rgba(220,53,69,0.2);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 24px;
}

.delete-warning-box ul {
    margin: 8px 0 0;
    padding-left: 20px;
    font-size: 13px;
    color: var(--danger-text);
}

/* ---- Public Page Layout ---- */
.public-wrapper {
    min-height: 100vh;
    background: var(--off-white);
}

.public-header {
    background: var(--dark);
    padding: 16px 0;
    box-shadow: var(--shadow-md);
}

.public-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.public-header .brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--theme-button-bg), var(--theme-button-hover));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-header .brand-icon svg { width: 18px; height: 18px; fill: white; }

.public-header .brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.public-header .brand-name span { color: var(--primary); }

.public-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px;
}

.public-page-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.public-page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.public-page-meta {
    font-size: 13px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.public-page-body {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    line-height: 1.8;
    font-size: 15px;
    color: var(--dark-2);
}

.public-page-body h2 { font-size: 22px; margin-top: 28px; margin-bottom: 12px; color: var(--dark); }
.public-page-body h3 { font-size: 18px; margin-top: 24px; margin-bottom: 10px; color: var(--dark); }
.public-page-body p  { margin-bottom: 16px; }
.public-page-body ul, .public-page-body ol { padding-left: 24px; margin-bottom: 16px; }

.public-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 20px;
    font-size: 13px;
    margin-top: 60px;
}

.public-footer a { color: var(--primary); }

/* ---- Dropdown ---- */
.dropdown-menu {
    border: 1px solid var(--theme-border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 6px;
    font-size: 13.5px;
    background: var(--theme-card-bg);
}

.dropdown-item {
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--theme-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    background: transparent;
}

.dropdown-item:hover {
    background: var(--theme-body-bg);
    color: var(--theme-button-bg);
}

.dropdown-item svg { width: 15px; height: 15px; }

.dropdown-divider { margin: 4px 0; border-color: var(--theme-border-color); }

/* Colored dropdown items */
.dropdown-item.text-warning { color: var(--warning-dark) !important; }
.dropdown-item.text-warning:hover { background: rgba(255, 193, 7, 0.1); color: var(--warning-dark) !important; }

.dropdown-item.text-danger { color: var(--danger) !important; }
.dropdown-item.text-danger:hover { background: rgba(220, 53, 69, 0.08); color: var(--danger) !important; }

.dropdown-item.text-success { color: var(--success) !important; }
.dropdown-item.text-success:hover { background: rgba(40, 167, 69, 0.08); color: var(--success) !important; }

.dropdown-item.text-info { color: #0dcaf0 !important; }
.dropdown-item.text-info:hover { background: rgba(13, 202, 240, 0.08); color: #0dcaf0 !important; }

/* Allow DataTable action dropdowns to overflow the table wrapper */
.table-wrapper { overflow: visible !important; }
#usersTable_wrapper .dataTables_scrollBody { overflow: visible !important; }

/* ---- Modal ---- */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: var(--theme-card-bg);
    color: var(--theme-text-primary);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--theme-border-color);
}

.modal-title { font-size: 16px; font-weight: 600; }

.modal-body { padding: 24px; }

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--theme-border-color);
    gap: 8px;
}

/* ---- Checkbox & Radio ---- */
.form-check-input:checked {
    background-color: var(--theme-button-bg);
    border-color: var(--theme-button-bg);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 255, 107, 0), 0.15);
    border-color: var(--theme-button-bg);
}

/* ---- Permission Grid ---- */
.permission-group {
    background: var(--theme-body-bg);
    border: 1px solid var(--theme-border-color);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}

.permission-group-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.permission-group-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--theme-button-bg);
    border-radius: 50%;
}

.permission-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
    }

    .settings-layout {
        flex-direction: column;
    }

    .settings-nav {
        width: 100%;
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .settings-nav .nav-link {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .auth-card { padding: 32px 24px; }
    .page-content { padding: 16px; }
    .public-page-body { padding: 24px; }
    .public-page-header h1 { font-size: 24px; }
}

/* ---- Utilities ---- */
.text-primary { color: var(--primary) !important; }
.text-dark    { color: var(--dark) !important; }
.text-muted   { color: var(--gray) !important; }
.bg-primary   { background: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }

.rounded-full { border-radius: 50%; }

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.overlay.show { display: block; }

/* ============================================================
   YAJRA DATATABLES — Custom Overrides
   Match the existing Basic Flow design system
   ============================================================ */

/* Hide default DataTables search/length (we use custom ones) */
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
    display: none !important;
}

/* Remove default DataTables top bar */
.dataTables_wrapper .dataTables_info { display: none !important; }

/* Table styling — inherit from .table */
table.dataTable thead th,
table.dataTable thead td {
    background: var(--theme-body-bg) !important;
    color: var(--theme-text-primary) !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 16px !important;
    border-bottom: 2px solid var(--theme-border-color) !important;
    white-space: nowrap !important;
    border-top: none !important;
}

table.dataTable tbody td {
    padding: 13px 16px !important;
    border-bottom: 1px solid var(--theme-border-color) !important;
    color: var(--theme-text-primary) !important;
    vertical-align: middle !important;
    font-size: 13.5px !important;
}

table.dataTable tbody tr:last-child td {
    border-bottom: none !important;
}

table.dataTable tbody tr:hover td {
    background: var(--theme-body-bg) !important;
}

/* Sort icons — use primary color */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
    opacity: 0.4;
}

table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:after {
    opacity: 1;
    color: var(--theme-button-bg) !important;
}

/* Processing overlay */
.dataTables_wrapper .dataTables_processing {
    background: var(--theme-card-bg) !important;
    border: 1px solid var(--theme-border-color) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    color: var(--theme-text-primary) !important;
    font-size: 13px !important;
    padding: 12px 20px !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    margin: 0 !important;
    z-index: 10 !important;
}

/* Processing spinner */
.dt-processing-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--theme-border-color);
    border-top-color: var(--theme-button-bg);
    border-radius: 50%;
    animation: dt-spin 0.7s linear infinite;
}

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

/* Footer info + pagination */
.dt-footer {
    font-size: 13px;
}

.dt-footer .text-muted {
    font-size: 13px;
}

/* Pagination inside DataTables footer */
.dt-pagination .dataTables_paginate {
    display: flex;
    align-items: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--radius) !important;
    border: 1.5px solid var(--theme-border-color) !important;
    color: var(--theme-text-primary) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: var(--transition) !important;
    background: var(--theme-card-bg) !important;
    margin: 0 2px !important;
    padding: 0 !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border-color: var(--theme-button-bg) !important;
    color: var(--theme-button-bg) !important;
    background: rgba(var(--primary-rgb, 255, 107, 0), 0.08) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--theme-button-bg) !important;
    border-color: var(--theme-button-bg) !important;
    color: var(--theme-button-text) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    color: var(--theme-text-primary) !important;
    background: var(--theme-card-bg) !important;
    border-color: var(--theme-border-color) !important;
}

/* Remove default Bootstrap DataTables border */
table.dataTable {
    border-collapse: collapse !important;
    margin: 0 !important;
}

div.dataTables_wrapper div.dataTables_scroll {
    overflow-x: auto;
}

/* Zero records / empty state inside table */
table.dataTable tbody td.dataTables_empty {
    text-align: center !important;
    padding: 0 !important;
    border: none !important;
}

