/* =====================================================
   MCN Platform - Premium Modern Theme (Backward Compatible)
   Static CSS (No Build Required)
   Arabic RTL - YouTube-inspired Design
   ===================================================== */

/* =====================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   Preserved Brand Colors - YouTube Red
   ===================================================== */
:root {
    /* PRIMARY BRAND - YouTube Red (PRESERVED) */
    --brand: #ff0033;
    --brand-dark: #cc0029;
    --brand-light: #ff1a3d;
    
    /* Semantic Colors */
    --primary: #ff0033;
    --primary-foreground: #ffffff;
    --secondary: #2563eb;
    --secondary-foreground: #ffffff;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --info: #0ea5e9;
    
    /* Surfaces - keeping backward compatibility names */
    --background: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #f3f4f6;
    --surface-3: #eef2ff;
    --surface-dark: #1e293b;
    --surface-2-dark: #334155;
    --surface-3-dark: #475569;
    
    /* Text - backward compatible */
    --foreground: #0f172a;
    --text: #0f172a;
    --text-light: #64748b;
    --muted-foreground: #64748b;
    --text-muted: #64748b;
    
    /* Borders - backward compatible */
    --border: rgba(15, 23, 42, 0.10);
    --line: rgba(15, 23, 42, 0.10);
    --border-light: #f1f5f9;
    --line-dark: rgba(148, 163, 184, 0.18);
    
    /* Gradients - backward compatible */
    --gradient-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --gradient-accent: linear-gradient(135deg, #ff4d6d 0%, #ff0033 55%, #2563eb 110%);
    
    /* Elevation */
    --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06);
    --shadow: 0 8px 24px rgb(15 23 42 / 0.08);
    --shadow-md: 0 14px 36px rgb(15 23 42 / 0.10);
    --shadow-lg: 0 24px 60px rgb(15 23 42 / 0.14);
    --shadow-xl: 0 40px 90px rgb(15 23 42 / 0.18);
    
    /* Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Layout */
    --navbar-h: 70px;
    --navbar-height: 70px;
    --sidebar-w: 280px;
    --sidebar-width: 280px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #ff0033 0%, #d9002b 100%);
    --gradient-primary: linear-gradient(135deg, #ff0033 0%, #d9002b 100%);
    --gradient-secondary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-accent: linear-gradient(135deg, #ff4d6d 0%, #ff0033 55%, #2563eb 110%);
    --gradient-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Dark Theme */
[data-theme="dark"],
[data-bs-theme="dark"] {
    --background: #0b1220;
    --surface: #0f172a;
    --surface-2: #111c33;
    --surface-3: #0b1220;
    --foreground: #f8fafc;
    --text: #f8fafc;
    --text-light: #94a3b8;
    --muted-foreground: #94a3b8;
    --text-muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.18);
    --line: rgba(148, 163, 184, 0.18);
    --border-light: #1e293b;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow: 0 8px 24px rgb(0 0 0 / 0.3);
    --shadow-md: 0 14px 36px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 24px 60px rgb(0 0 0 / 0.5);
    --shadow-xl: 0 40px 90px rgb(0 0 0 / 0.6);
    /* Backward compatible dark theme gradients */
    --gradient-surface: linear-gradient(180deg, #0f172a 0%, #111c33 100%);
    --gradient-accent: linear-gradient(135deg, #ff4d6d 0%, #ff0033 55%, #2563eb 110%);
}

/* =====================================================
   BASE STYLES
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #0f172a;
    background: #f6f7fb;
    background-color: #f6f7fb !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Force light background as fallback - prevents black screen */
html, body, .app-shell, .dashboard-layout, .main-content, #app {
    background-color: #f6f7fb !important;
    background: #f6f7fb !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    color: var(--foreground);
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p { margin: 0 0 1rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-dark);
}

/* =====================================================
   LAYOUT
   ===================================================== */
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--background);
    height: 100dvh;
    overflow: hidden;
    padding-top: var(--navbar-h);
}

.main-content {
    flex: 1;
    background: var(--background);
    padding: 1.5rem;
    padding-top: 1rem;
    transition: var(--transition);
    min-height: 100dvh;
    margin-right: var(--sidebar-w);
}

.dashboard-layout .main-content {
    height: calc(100dvh - var(--navbar-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =====================================================
   NAVBAR (preserving existing styles)
   ===================================================== */
.navbar-modern {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    margin-right: 0 !important;
    overflow: visible !important;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 32px rgb(0 0 0 / 0.08);
    padding: 1rem 1.5rem;
    transition: var(--transition);
    height: var(--navbar-h);
}

.navbar-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.6;
}

[data-theme="dark"] .navbar-modern,
[data-bs-theme="dark"] .navbar-modern {
    background: rgba(15, 23, 42, 0.55);
    border-bottom-color: var(--line-dark);
    box-shadow: 0 4px 32px rgb(0 0 0 / 0.15);
}

/* Ensure dropdowns render above page content */
.navbar-modern .dropdown-menu {
    z-index: 2000;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
    position: fixed;
    top: var(--navbar-h);
    right: 0;
    width: var(--sidebar-w);
    height: calc(100dvh - var(--navbar-h));
    background: var(--surface);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .sidebar,
[data-bs-theme="dark"] .sidebar {
    background: var(--surface);
    border-left-color: var(--line);
}

.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(10px);
}

.brand-title {
    color: var(--foreground);
    font-weight: 800;
    font-size: 1.25rem;
}

.brand-subtitle {
    font-size: 0.75rem;
    opacity: 0.7;
}

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

.nav-item {
    margin-bottom: 0.25rem;
    padding: 0 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--muted-foreground);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--surface-2);
    color: var(--foreground);
    transform: translateX(4px);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.nav-icon {
    width: 20px;
    margin-left: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-text {
    flex: 1;
    font-weight: 500;
}

.sidebar-footer {
    border-top: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.03);
    backdrop-filter: blur(10px);
    padding: 1rem;
    margin-top: auto;
}

[data-theme="dark"] .sidebar-footer,
[data-bs-theme="dark"] .sidebar-footer {
    background: rgba(148, 163, 184, 0.08);
}

.user-info-card {
    background: rgba(15, 23, 42, 0.04);
    border-radius: var(--radius);
    padding: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-info-card:hover {
    background: rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

[data-theme="dark"] .user-info-card {
    background: rgba(148, 163, 184, 0.10);
}

[data-theme="dark"] .user-info-card:hover {
    background: rgba(148, 163, 184, 0.14);
}

.user-name {
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 600;
}

.user-role {
    font-size: 0.75rem;
}

/* Mobile Sidebar */
@media (max-width: 991.98px) {
    .dashboard-layout .main-content {
        margin-right: 0;
    }

    .dashboard-layout .sidebar {
        transform: translateX(100%);
        width: 320px;
    }
    .dashboard-layout .sidebar.show {
        transform: translateX(0);
    }
    .dashboard-layout {
        padding-top: var(--navbar-h);
    }
}

/* =====================================================
   BACKWARD COMPATIBLE CARDS
   ===================================================== */

/* Primary card class used in pages */
.card-modern {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(8px);
}

.card-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.card-modern::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(124, 58, 237, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-modern:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(37, 99, 235, 0.22);
}

.card-modern:hover::before {
    transform: scaleX(1);
}

.card-modern:hover::after {
    opacity: 1;
}

/* Card Header */
.card-header-modern {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}

.card-footer-modern {
    padding: 1rem 1.5rem;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
}

[data-theme="dark"] .card-header-modern,
[data-bs-theme="dark"] .card-header-modern {
    border-bottom-color: var(--border);
    background: var(--surface-2);
}

/* Card Body */
.card-body-modern {
    padding: 1.5rem;
    position: relative;
}

[data-theme="dark"] .card-body-modern,
[data-bs-theme="dark"] .card-body-modern {
    background: transparent;
}

/* =====================================================
   STAT CARDS - Admin Dashboard
   ===================================================== */
.admin-stat-card,
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2rem 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.admin-stat-card::before,
.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.admin-stat-card:hover,
.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.28);
}

.admin-stat-card:hover::before,
.stat-card:hover::before {
    transform: scaleX(1);
}

/* Stat Card Enhanced - Used in settlements and other detail pages */
.stat-card-enhanced {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    height: 100%;
}

.stat-card-enhanced::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.stat-card-enhanced:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.22);
}

.stat-card-enhanced:hover::before {
    transform: scaleX(1);
}

.stat-card-enhanced .stat-content {
    position: relative;
    z-index: 1;
}

.stat-card-enhanced .stat-value {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: var(--foreground);
    margin: 0;
    line-height: 1.2;
}

.stat-card-enhanced .stat-label {
    color: var(--muted-foreground);
    font-size: 0.875rem !important;
    font-weight: 500;
    margin: 0.5rem 0 0 0;
}

/* Stat content */
.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stat-content .stat-value {
    font-size: 2.4rem !important;
    font-weight: 800 !important;
    color: var(--foreground);
    margin: 0;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.stat-content .stat-label {
    color: var(--muted-foreground);
    font-size: 1rem !important;
    font-weight: 600;
    margin: 0.35rem 0 0 0;
    opacity: .85;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

/* Stat icon */
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.stat-icon.creators {
    background: rgba(22, 78, 99, 0.1);
    color: var(--brand);
}

.stat-icon.channels {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.stat-icon.revenue {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
}

.stat-icon.monthly {
    background: rgba(217, 119, 6, 0.1);
    color: var(--warning);
}

/* Stat trend */
.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.stat-trend.positive {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
}

.stat-trend.negative {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: 1px solid transparent;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.35);
    color: white;
}

.btn-outline-primary {
    border: 1px solid rgba(37, 99, 235, 0.35);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
    backdrop-filter: blur(12px);
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-3);
    color: var(--foreground);
}

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

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

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

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius);
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
}

/* Focus states */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--foreground);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 0, 51, 0.1);
}

.form-control::placeholder {
    color: var(--muted-foreground);
}

.form-control:disabled {
    background: var(--surface-2);
    cursor: not-allowed;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    padding-left: 2.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--foreground);
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 0.375rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin-top: 0.375rem;
}

/* Input Groups */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    flex: 1;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* =====================================================
   BACKWARD COMPATIBLE TABLES
   ===================================================== */

/* Legacy table support - for pages using Bootstrap table classes */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--foreground);
    vertical-align: top;
    border-color: var(--border);
}

.table > :not(caption) > * > * {
    padding: 0.75rem 1rem;
    background-color: transparent;
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px transparent;
}

.table > thead {
    vertical-align: bottom;
}

.table-light,
.table-light > th,
.table-light > td {
    background-color: var(--surface-2);
    color: var(--text);
}

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

.table-hover tbody tr:hover {
    background-color: var(--surface-2);
}

.table-modern {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern th {
    background: var(--surface-2);
    color: var(--text);
    font-weight: 600;
    padding: 1rem;
    border: none;
    font-size: 0.875rem;
}

.table-modern td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 0.875rem;
    color: var(--foreground);
}

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

.table-modern tbody tr:hover {
    background: var(--surface-2);
}

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

/* Table responsive */
.table-responsive > .table-modern {
    min-width: 720px;
}

@media (max-width: 992px) {
    .table-responsive > .table-modern {
        min-width: 640px;
    }
}

@media (max-width: 768px) {
    .table-responsive {
        overflow-x: visible;
    }

    .table-responsive > .table-modern {
        min-width: 100%;
    }

    .table-modern thead {
        display: none;
    }

    .table-modern tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        background: var(--surface);
        border-radius: var(--radius-lg);
        margin-bottom: 1rem;
        box-shadow: var(--shadow-sm);
    }

    .table-modern tbody tr:last-child {
        margin-bottom: 0;
    }

    .table-modern td {
        padding: 0;
        border: none;
    }

    .table-modern td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: var(--muted-foreground);
        margin-bottom: 0.35rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .table-modern tbody tr {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   BOOTSTRAP CARD COMPATIBILITY
   ===================================================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    padding: 1rem 1.5rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card-text:last-child {
    margin-bottom: 0;
}

.card-link {
    color: var(--primary);
    text-decoration: none;
}

.card-link:hover {
    color: var(--brand-dark);
}

/* Card with shadow */
.card.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.card.shadow {
    box-shadow: var(--shadow);
}

.card.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* Card backgrounds */
.bg-primary {
    background-color: var(--primary) !important;
    color: white;
}

.bg-success {
    background-color: var(--success) !important;
    color: white;
}

.bg-warning {
    background-color: var(--warning) !important;
    color: white;
}

.bg-danger {
    background-color: var(--danger) !important;
    color: white;
}

.bg-info {
    background-color: var(--info) !important;
    color: white;
}

.bg-secondary {
    background-color: var(--muted-foreground) !important;
    color: white;
}

.bg-dark {
    background-color: var(--surface-dark) !important;
    color: white;
}

.bg-white {
    background-color: var(--surface) !important;
}

.bg-light {
    background-color: var(--surface-2) !important;
}

/* Text colors */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }
.text-secondary { color: var(--muted-foreground) !important; }
.text-dark { color: var(--foreground) !important; }
.text-white { color: white !important; }
.text-muted { color: var(--muted-foreground) !important; }
.text-body { color: var(--foreground) !important; }
.text-black { color: #000 !important; }

/* Badge backgrounds */
.text-bg-primary {
    background-color: var(--primary) !important;
    color: white;
}

.text-bg-secondary {
    background-color: var(--surface-2) !important;
    color: var(--foreground);
}

.text-bg-success {
    background-color: var(--success) !important;
    color: white;
}

.text-bg-warning {
    background-color: var(--warning) !important;
    color: white;
}

.text-bg-danger {
    background-color: var(--danger) !important;
    color: white;
}

.text-bg-info {
    background-color: var(--info) !important;
    color: white;
}

.text-bg-light {
    background-color: var(--surface-2) !important;
    color: var(--foreground);
}

.text-bg-dark {
    background-color: var(--surface-dark) !important;
    color: white;
}

/* Alert styles */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.3);
    color: var(--success);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #b45309;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
    color: var(--danger);
}

.alert-info {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    color: var(--info);
}

.alert-light {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--foreground);
}

.alert-dark {
    background: var(--surface-dark);
    border-color: var(--surface-dark);
    color: white;
}

.alert-dismissible {
    padding-right: 3rem;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem 1.25rem;
}

/* Badge subtle backgrounds */
.bg-primary-subtle {
    background-color: rgba(255, 0, 51, 0.1) !important;
    color: var(--primary);
}

.bg-success-subtle {
    background-color: rgba(22, 163, 74, 0.1) !important;
    color: var(--success);
}

.bg-warning-subtle {
    background-color: rgba(245, 158, 11, 0.1) !important;
    color: var(--warning);
}

.bg-danger-subtle {
    background-color: rgba(220, 38, 38, 0.1) !important;
    color: var(--danger);
}

.bg-info-subtle {
    background-color: rgba(14, 165, 233, 0.1) !important;
    color: var(--info);
}

/* =====================================================
   TAILWIND-LIKE UTILITIES (Minimal set for broken pages)
   ===================================================== */

/* Spacing utilities */
.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.5rem !important; }
.p-6 { padding: 2rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }

.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 0.75rem !important; }
.m-4 { margin: 1rem !important; }
.m-5 { margin: 1.5rem !important; }
.m-auto { margin: auto !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-5 { margin-top: 1.5rem !important; }
.mt-auto { margin-top: auto !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.5rem !important; }
.mb-auto { margin-bottom: auto !important; }

.ms-0 { margin-left: 0 !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 0.75rem !important; }
.ms-4 { margin-left: 1rem !important; }
.ms-5 { margin-left: 1.5rem !important; }
.ms-auto { margin-left: auto !important; }

.me-0 { margin-right: 0 !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 0.75rem !important; }
.me-4 { margin-right: 1rem !important; }
.me-5 { margin-right: 1.5rem !important; }
.me-auto { margin-right: auto !important; }

.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: 0.25rem !important; margin-right: 0.25rem !important; }
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.mx-3 { margin-left: 0.75rem !important; margin-right: 0.75rem !important; }
.mx-4 { margin-left: 1rem !important; margin-right: 1rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 0.75rem !important; margin-bottom: 0.75rem !important; }
.my-4 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }

/* Gap utilities */
.gap-0 { gap: 0 !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.5rem !important; }

/* Width utilities */
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

/* Height utilities */
.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-75 { height: 75% !important; }
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }
.h-screen { height: 100vh !important; }

/* Display utilities */
.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

/* Flex utilities */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-row-reverse { flex-direction: row-reverse !important; }
.flex-column-reverse { flex-direction: column-reverse !important; }

.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-wrap-reverse { flex-wrap: wrap-reverse !important; }

.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.justify-content-evenly { justify-content: space-evenly !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-stretch { align-items: stretch !important; }

.flex-grow-0 { flex-grow: 0 !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-shrink-1 { flex-shrink: 1 !important; }

/* Position utilities */
.position-static { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }

/* Text utilities */
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }
.text-center { text-align: center !important; }

.text-wrap { white-space: normal !important; }
.text-nowrap { white-space: nowrap !important; }

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-break {
    word-wrap: break-word !important;
    word-break: break-word !important;
}

.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }

.font-weight-normal { font-weight: 400 !important; }
.font-weight-medium { font-weight: 500 !important; }
.font-weight-semibold { font-weight: 600 !important; }
.font-weight-bold { font-weight: 700 !important; }

.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }

.fst-italic { font-style: italic !important; }
.fst-normal { font-style: normal !important; }

.lh-1 { line-height: 1 !important; }
.lh-sm { line-height: 1.25 !important; }
.lh-base { line-height: 1.5 !important; }
.lh-lg { line-height: 2 !important; }

/* Visibility */
.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

/* Overflow */
.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }
.overflow-scroll { overflow: scroll !important; }

.overflow-auto { overflow: auto !important; }
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }

/* Border utilities */
.border { border: 1px solid var(--border) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--border) !important; }
.border-end { border-right: 1px solid var(--border) !important; }
.border-bottom { border-bottom: 1px solid var(--border) !important; }
.border-start { border-left: 1px solid var(--border) !important; }

.border-primary { border-color: var(--primary) !important; }
.border-secondary { border-color: var(--muted-foreground) !important; }
.border-success { border-color: var(--success) !important; }
.border-warning { border-color: var(--warning) !important; }
.border-danger { border-color: var(--danger) !important; }
.border-info { border-color: var(--info) !important; }
.border-light { border-color: var(--border) !important; }
.border-dark { border-color: var(--foreground) !important; }
.border-white { border-color: white !important; }

/* Rounded utilities */
.rounded-0 { border-radius: 0 !important; }
.rounded { border-radius: var(--radius) !important; }
.rounded-1 { border-radius: 0.25rem !important; }
.rounded-2 { border-radius: 0.5rem !important; }
.rounded-3 { border-radius: var(--radius-lg) !important; }
.rounded-4 { border-radius: var(--radius-xl) !important; }
.rounded-5 { border-radius: var(--radius-2xl) !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 9999px !important; }

.rounded-top { border-top-left-radius: var(--radius) !important; border-top-right-radius: var(--radius) !important; }
.rounded-end { border-top-right-radius: var(--radius) !important; border-bottom-right-radius: var(--radius) !important; }
.rounded-bottom { border-bottom-right-radius: var(--radius) !important; border-bottom-left-radius: var(--radius) !important; }
.rounded-start { border-bottom-left-radius: var(--radius) !important; border-top-left-radius: var(--radius) !important; }

/* Shadow utilities */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-none { box-shadow: none !important; }

/* Sizing utilities - min/max width/height */
.min-vw-100 { min-width: 100vw !important; }
.min-vh-100 { min-height: 100vh !important; }
.vw-100 { width: 100vw !important; }
.vh-100 { height: 100vh !important; }

/* Alignment for inline elements */
.align-baseline { vertical-align: baseline !important; }
.align-top { vertical-align: top !important; }
.align-middle { vertical-align: middle !important; }
.align-bottom { vertical-align: bottom !important; }
.align-text-top { vertical-align: text-top !important; }
.align-text-bottom { vertical-align: text-bottom !important; }

/* Object fit */
.object-fit-contain { object-fit: contain !important; }
.object-fit-cover { object-fit: cover !important; }
.object-fit-fill { object-fit: fill !important; }
.object-fit-none { object-fit: none !important; }

/* Aspect ratio */
.aspect-ratio-1x1 { aspect-ratio: 1 / 1 !important; }
.aspect-ratio-16x9 { aspect-ratio: 16 / 9 !important; }
.aspect-ratio-4x3 { aspect-ratio: 4 / 3 !important; }
.aspect-ratio-21x9 { aspect-ratio: 21 / 9 !important; }

/* Responsive display (hide on specific breakpoints) */
@media (min-width: 576px) {
    .d-sm-none { display: none !important; }
    .d-sm-inline { display: inline !important; }
    .d-sm-inline-block { display: inline-block !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
    .d-sm-inline-flex { display: inline-flex !important; }
}

@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-inline { display: inline !important; }
    .d-md-inline-block { display: inline-block !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
    .d-md-inline-flex { display: inline-flex !important; }
}

@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-inline { display: inline !important; }
    .d-lg-inline-block { display: inline-block !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
    .d-lg-inline-flex { display: inline-flex !important; }
}

@media (min-width: 1200px) {
    .d-xl-none { display: none !important; }
    .d-xl-inline { display: inline !important; }
    .d-xl-inline-block { display: inline-block !important; }
    .d-xl-block { display: block !important; }
    .d-xl-flex { display: flex !important; }
    .d-xl-inline-flex { display: inline-flex !important; }
}

/* Responsive text alignment */
@media (min-width: 576px) {
    .text-sm-start { text-align: left !important; }
    .text-sm-end { text-align: right !important; }
    .text-sm-center { text-align: center !important; }
}

@media (min-width: 768px) {
    .text-md-start { text-align: left !important; }
    .text-md-end { text-align: right !important; }
    .text-md-center { text-align: center !important; }
}

@media (min-width: 992px) {
    .text-lg-start { text-align: left !important; }
    .text-lg-end { text-align: right !important; }
    .text-lg-center { text-align: center !important; }
}

/* =====================================================
   ADMIN PANEL CONTENT WRAPPER
   ===================================================== */
.admin-panel-content {
    padding: 1.5rem;
}

/* =====================================================
   BADGES & PILLS
   ===================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-primary {
    background: rgba(255, 0, 51, 0.1);
    color: var(--primary);
}

.badge-success {
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.badge-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.badge-info {
    background: rgba(14, 165, 233, 0.1);
    color: var(--info);
}

.badge-secondary {
    background: var(--surface-2);
    color: var(--muted-foreground);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
    border: 1px solid transparent;
}

.status-badge.status-pending,
.status-badge.status-pending_approval {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
    color: #b45309;
}

.status-badge.status-draft {
    background: rgba(100, 116, 139, 0.12);
    border-color: rgba(100, 116, 139, 0.25);
    color: var(--muted-foreground);
}

.status-badge.status-approved {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.25);
    color: var(--success);
}

.status-badge.status-rejected,
.status-badge.status-failed {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.25);
    color: var(--danger);
}

.status-badge.status-processed,
.status-badge.status-paid {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.25);
    color: var(--info);
}

.status-badge.status-credited {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
    color: var(--secondary);
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.04);
    color: var(--foreground);
}

.status-pill--primary,
.status-pill.primary { 
    background: rgba(255, 0, 51, 0.10); 
    border-color: rgba(255, 0, 51, 0.18); 
    color: var(--primary); 
}

.status-pill--success,
.status-pill.success { 
    background: rgba(22, 163, 74, 0.12); 
    border-color: rgba(22, 163, 74, 0.20); 
    color: var(--success); 
}

.status-pill--warning,
.status-pill.warning { 
    background: rgba(245, 158, 11, 0.14); 
    border-color: rgba(245, 158, 11, 0.22); 
    color: #b45309; 
}

.status-pill--danger,
.status-pill.danger { 
    background: rgba(220, 38, 38, 0.12); 
    border-color: rgba(220, 38, 38, 0.20); 
    color: var(--danger); 
}

.status-pill--info,
.status-pill.info { 
    background: rgba(14, 165, 233, 0.12); 
    border-color: rgba(14, 165, 233, 0.22); 
    color: var(--info); 
}

.status-pill--neutral,
.status-pill.neutral { 
    background: rgba(100, 116, 139, 0.10); 
    border-color: rgba(100, 116, 139, 0.18); 
    color: var(--muted-foreground); 
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.page-link:hover {
    background: var(--surface-2);
    color: var(--foreground);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow);
}

.page-item.disabled .page-link {
    background: var(--surface-2);
    color: var(--muted-foreground);
    border-color: var(--border);
    cursor: not-allowed;
    opacity: 0.6;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.5), 0 0 60px rgba(99, 102, 241, 0.3);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in,
.animate-fade-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-scale {
    animation: fadeInScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-slide-left {
    animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-right {
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Skeleton Loader */
.loading-shimmer {
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.10), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

[data-theme="dark"] .loading-shimmer,
[data-bs-theme="dark"] .loading-shimmer {
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.18), transparent);
    background-size: 200% 100%;
}

/* Hover lift effect */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* =====================================================
   UTILITIES & HELPERS
   ===================================================== */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }
.text-muted { color: var(--muted-foreground) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-surface { background-color: var(--surface) !important; }

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

/* =====================================================
    ENGLISH/LATIN FONT FOR NUMBERS
    Ensures numeric values display with Latin numerals
    ===================================================== */
.font-en,
.num,
.stat-value,
.stat-trend span,
.metric-value,
.status-value,
.quick-metric-item .metric-value,
.channel-value,
.rank-number {
    font-family: Inter, Roboto, Arial, sans-serif !important;
    direction: ltr;
    unicode-bidi: isolate;
}

/* Ensure currency symbols display correctly */
.stat-value[data-prefix="$"],
.metric-value {
    font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif !important;
}

.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 0.75rem; }
.ms-1 { margin-left: 0.25rem; }
.ms-2 { margin-left: 0.5rem; }
.ms-3 { margin-left: 0.75rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;
}

.row > * {
    padding: 0.75rem;
}

.col-12 { width: 100%; }
.col-6 { width: 50%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }

@media (max-width: 991.98px) {
    .col-lg-12 { width: 100%; }
    .col-lg-6 { width: 50%; }
    .col-lg-4 { width: 33.333%; }
    .col-lg-3 { width: 25%; }
}

@media (max-width: 767.98px) {
    .col-md-12 { width: 100%; }
    .col-md-6 { width: 50%; }
    
    .main-content {
        padding: 1rem;
    }
    
    .card-modern,
    .stat-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .col-sm-12 { width: 100%; }
}

/* =====================================================
   SCROLLBAR & SELECTION
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-2);
    border-radius: var(--radius);
}

::-webkit-scrollbar-thumb {
    background: var(--muted-foreground);
    border-radius: var(--radius);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--foreground);
}

::selection {
    background: rgba(255, 0, 51, 0.2);
    color: var(--foreground);
}

/* RTL Icon Arrangement */
html[dir="rtl"] .nav-link,
html[dir="rtl"] .menu-item,
html[dir="rtl"] .notification-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-icon,
html[dir="rtl"] .menu-icon {
    margin-left: 0 !important;
    margin-right: 0.75rem !important;
}

/* =====================================================
   EMPTY STATES
   ===================================================== */
.empty-state,
.empty-state-modern {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0.9rem;
    padding: 1.25rem;
    border-radius: var(--radius-xl);
    border: 1px dashed var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.9));
}

[data-theme="dark"] .empty-state,
[data-bs-theme="dark"] .empty-state-modern {
    background: rgba(15, 23, 42, 0.35);
}

.empty-state__icon,
.empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.10);
    color: var(--secondary);
    border: 1px solid rgba(37, 99, 235, 0.18);
    font-size: 1.35rem;
}

.empty-state__title,
.empty-title {
    font-weight: 800;
    color: var(--foreground);
    font-size: 1.125rem;
}

.empty-state__desc,
.empty-description {
    color: var(--muted-foreground);
    margin-top: 0.15rem;
}

/* =====================================================
   DROPDOWNS
   ===================================================== */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
}

[data-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .dropdown-menu {
    background: rgba(26, 26, 26, 0.95);
    border-color: var(--border);
}

.user-dropdown {
    min-width: 280px;
}

.user-header {
    padding: 1rem;
    background: var(--surface-2);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--foreground);
}

.menu-item:hover {
    background: var(--surface-2);
    color: var(--foreground);
}

.menu-icon {
    width: 20px;
    margin-left: 0.75rem;
    text-align: center;
}

.logout-btn:hover {
    background: rgba(220, 38, 38, 0.10);
    color: var(--danger);
}

/* =====================================================
   TOAST & ALERTS
   ===================================================== */
.toast-container {
    z-index: 9999;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.3);
    color: var(--success);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #b45309;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
    color: var(--danger);
}

.alert-info {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    color: var(--info);
}

/* Modal Backdrop - MUST be hidden by default to prevent black screen */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent !important;
    z-index: -1 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 1040 !important;
}

/* =====================================================
   NAVBAR COMPONENTS
   ===================================================== */
.navbar-brand-section {
    display: flex;
    align-items: center;
}

.page-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.page-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
    line-height: 1.3;
}

.breadcrumb-nav {
    margin-top: 0.25rem;
}

.breadcrumb-nav .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
}

.breadcrumb-nav .breadcrumb-item {
    color: var(--muted-foreground);
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    padding: 0 0.5rem;
    color: var(--muted-foreground);
    opacity: 0.5;
}

.breadcrumb-nav .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-nav .breadcrumb-item a:hover {
    text-decoration: underline;
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-item {
    position: relative;
}

.control-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--foreground);
    transition: all var(--transition);
}

.control-btn:hover {
    background: var(--surface-3);
    border-color: rgba(37, 99, 235, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.control-btn::after {
    display: none;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    overflow: hidden;
}

.theme-icon-wrapper {
    position: relative;
    width: 20px;
    height: 20px;
}

.theme-icon-light,
.theme-icon-dark {
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .theme-icon-dark,
.theme-icon-dark {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-icon-light,
[data-bs-theme="dark"] .theme-icon-light {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-bs-theme="dark"] .theme-icon-dark {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Notification Badge */
.notification-badge {
    font-size: 0.65rem !important;
    padding: 0.25rem 0.5rem !important;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
}

/* Dropdown Modern */
.dropdown-menu-modern {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    padding: 0;
    min-width: 220px;
}

[data-theme="dark"] .dropdown-menu-modern,
[data-bs-theme="dark"] .dropdown-menu-modern {
    background: rgba(26, 26, 26, 0.98);
}

.notification-dropdown {
    min-width: 340px !important;
    max-width: 380px;
}

.dropdown-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--foreground);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.dropdown-divider {
    border-color: var(--border);
    opacity: 0.6;
    margin: 0;
}

/* Notification Item */
.notification-item {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.notification-item:hover {
    background: var(--surface-2);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    flex-shrink: 0;
}

/* User Menu */
.user-menu-btn {
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.user-menu-btn:hover {
    background: var(--surface-2);
    border-color: var(--border);
}

.user-menu-btn::after {
    margin-right: 0.5rem;
}

.user-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.user-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    transition: var(--transition);
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(255, 0, 51, 0.2);
}

.user-status-dot {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--success);
    border: 2px solid var(--surface);
    border-radius: 50%;
}

.user-info {
    max-width: 150px;
}

.user-info .user-name {
    color: var(--foreground);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.user-info .user-role {
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

.user-role-badge .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

/* =====================================================
   SIDEBAR COMPONENTS
   ===================================================== */
.nav-section {
    margin-bottom: 1rem;
}

.nav-section-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.section-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.section-divider {
    height: 1px;
    background: var(--border);
    opacity: 0.5;
}

.nav-section-divider {
    margin: 1rem 0;
}

.nav-indicator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    transition: all var(--transition-fast);
}

.nav-link.active .nav-indicator {
    opacity: 1;
    transform: scale(1.5);
}

/* Brand Components */
.brand-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255, 0, 51, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

/* User Card Components */
.user-details {
    flex: 1;
    min-width: 0;
}

.user-status-indicator {
    position: absolute;
    bottom: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    background: var(--success);
    border: 2px solid var(--surface);
    border-radius: 50%;
}

/* Mobile Sidebar Toggle */
.sidebar-toggle-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.sidebar-toggle-btn:hover {
    background: var(--surface-2);
}

.hamburger-icon {
    width: 20px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--foreground);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.sidebar-toggle-btn:hover .hamburger-icon span:nth-child(1) {
    transform: translateY(-1px);
}

.sidebar-toggle-btn:hover .hamburger-icon span:nth-child(3) {
    transform: translateY(1px);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* =====================================================
   ANIMATIONS
   ===================================================== */
.animate-stagger {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-stagger > .nav-item:nth-child(1) { animation-delay: 0.05s; }
.animate-stagger > .nav-item:nth-child(2) { animation-delay: 0.1s; }
.animate-stagger > .nav-item:nth-child(3) { animation-delay: 0.15s; }
.animate-stagger > .nav-item:nth-child(4) { animation-delay: 0.2s; }
.animate-stagger > .nav-item:nth-child(5) { animation-delay: 0.25s; }
.animate-stagger > .nav-item:nth-child(6) { animation-delay: 0.3s; }
.animate-stagger > .nav-item:nth-child(7) { animation-delay: 0.35s; }
.animate-stagger > .nav-item:nth-child(8) { animation-delay: 0.4s; }

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.1);
}

/* Letter Spacing */
.letter-spacing {
    letter-spacing: 0.05em;
}

/* Text Utilities */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-uppercase {
    text-transform: uppercase;
}

/* =====================================================
    MODERN STEPPER / STEP INDICATOR
    ===================================================== */

.stepper-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.stepper-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.stepper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.stepper-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stepper-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stepper-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.stepper-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
}

.stepper-badge--draft {
    background: rgba(100, 116, 139, 0.12);
    border-color: rgba(100, 116, 139, 0.25);
    color: var(--muted-foreground);
}

.stepper-badge--pending {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
    color: #b45309;
}

.stepper-badge--approved {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.25);
    color: var(--success);
}

.stepper-badge--completed {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
    color: var(--secondary);
}

/* Modern Steps - RTL First */
.modern-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    gap: 2rem;
    direction: rtl;
}

.modern-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    inset-inline-start: 60px;
    inset-inline-end: 60px;
    height: 4px;
    background: var(--surface-2);
    border-radius: var(--radius-full);
    z-index: 0;
}

.modern-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.modern-step__indicator {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    border: 3px solid var(--border);
    background: var(--surface);
    color: var(--muted-foreground);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.modern-step__indicator::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-step__content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 120px;
}

.modern-step__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
    line-height: 1.4;
}

.modern-step__description {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    opacity: 0.7;
    line-height: 1.3;
}

/* Step States */
.modern-step--completed .modern-step__indicator {
    background: var(--success) !important;
    border-color: var(--success) !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.5);
}

.modern-step--completed .modern-step__title {
    color: var(--success);
    font-weight: 700;
}

.modern-step--completed .modern-step__description {
    color: var(--success);
    opacity: 0.8;
}

.modern-step--active .modern-step__indicator {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 0, 51, 0.4);
    animation: stepPulse 2s ease-in-out infinite;
}

.modern-step--active .modern-step__title {
    color: var(--primary);
    font-weight: 700;
}

.modern-step--upcoming .modern-step__indicator {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--muted-foreground);
}

/* Connecting Lines between steps - RTL First */
.modern-step__connector {
    position: absolute;
    top: 24px;
    height: 4px;
    background: var(--surface-2);
    transition: background 0.5s ease;
    z-index: 0;
    border-radius: var(--radius-full);
}

/* RTL: connector--left goes to the right visually (toward step 1) */
.modern-step__connector--left {
    inset-inline-start: 50%;
    inset-inline-end: -50%;
    margin-inline-start: 35px;
}

/* RTL: connector--right goes to the left visually (toward step 3) */
.modern-step__connector--right {
    inset-inline-start: -50%;
    inset-inline-end: 50%;
    margin-inline-end: 35px;
}

/* Completed step - both connectors green */
.modern-step--completed .modern-step__connector--left,
.modern-step--completed .modern-step__connector--right {
    background: var(--success) !important;
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.4);
}

/* Active step - connector from previous completed step is green */
.modern-step--active .modern-step__connector--left {
    background: var(--success) !important;
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.4);
}

/* Active step - connector to next step is neutral */
.modern-step--active .modern-step__connector--right {
    background: var(--surface-2);
}

/* Progress Bar - RTL First */
.stepper-progress {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.stepper-progress__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    direction: rtl;
}

.stepper-progress__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.stepper-progress__value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    font-family: Inter, Roboto, Arial, sans-serif;
    direction: ltr;
}

.stepper-progress__bar {
    height: 10px;
    background: var(--surface-2);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.stepper-progress__fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stepper-progress__fill::after {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Animations */
@keyframes stepPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 0, 51, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 0, 51, 0.6);
        transform: scale(1.05);
    }
}

/* Responsive - RTL First */
@media (max-width: 768px) {
    .stepper-container {
        padding: 1.5rem;
    }
    
    .stepper-header {
        flex-direction: column;
        align-items: flex-end;
        gap: 1rem;
    }
    
    .modern-steps {
        flex-direction: column;
        gap: 2rem;
    }
    
    .modern-steps::before {
        display: none;
    }
    
    .modern-step {
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
        width: 100%;
    }
    
    .modern-step__content {
        text-align: end;
        flex: 1;
    }
    
    .modern-step__connector {
        display: none;
    }
}

/* Dark Mode Support */
[data-theme="dark"] .stepper-container,
[data-bs-theme="dark"] .stepper-container {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .modern-step__indicator,
[data-bs-theme="dark"] .modern-step__indicator {
    background: var(--surface-2);
}

[data-theme="dark"] .stepper-progress__bar,
[data-bs-theme="dark"] .stepper-progress__bar {
    background: var(--surface-2);
}

/* =====================================================
    SPECIFIC PAGE CLASSES
    ===================================================== */

/* Dashboard Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Top Channel Item */
.top-channel-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.top-channel-item:hover {
    background: var(--surface-2);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.channel-rank {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-left: 1rem;
}

.top-channel-item:hover .channel-rank {
    background: var(--primary);
    color: white;
}

.channel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 1rem;
    border: 2px solid var(--border);
}

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

.channel-name {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-subs {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.channel-value {
    text-align: left;
    font-weight: 700;
    color: var(--success);
    font-size: 1.125rem;
}

/* Welcome Section */
.admin-welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.admin-welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.admin-welcome-content {
    position: relative;
    z-index: 1;
}

.admin-welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.admin-welcome-text {
    opacity: 0.9;
    margin-bottom: 0;
}

.admin-quick-actions {
    display: flex;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

/* Activity Feed */
.admin-activity-feed {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

/* Sublabel for stat cards */
.stat-sublabel {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

/* Stat trend in card */
.stat-card-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.stat-card-trend.positive {
    color: var(--success);
}

.stat-card-trend.negative {
    color: var(--danger);
}

/* Form Page Styles */
.form-page-header {
    margin-bottom: 2rem;
}

.form-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-page-subtitle {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Form Sections */
.form-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* Listing Pages */
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.listing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

.listing-actions {
    display: flex;
    gap: 0.75rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Detail Page */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
}

.detail-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.detail-actions {
    display: flex;
    gap: 0.75rem;
}

.detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .detail-content {
        grid-template-columns: 1fr;
    }
}

.detail-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    height: fit-content;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.detail-section-value {
    font-size: 1rem;
    color: var(--foreground);
    font-weight: 500;
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-lg {
    width: 64px;
    height: 64px;
}

.avatar-xl {
    width: 96px;
    height: 96px;
}

/* Icon Box */
.icon-box {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box-sm {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
}

.icon-box-lg {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
}

/* List Group */
.list-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.list-group-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background: var(--surface-2);
}

.list-group-item-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    background: var(--surface-2);
}

.list-group-item-content {
    flex: 1;
}

.list-group-item-title {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.125rem;
}

.list-group-item-subtitle {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

/* Progress */
.progress {
    height: 8px;
    background: var(--surface-2);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

.progress-bar-success {
    background: var(--success);
}

.progress-bar-warning {
    background: var(--warning);
}

.progress-bar-danger {
    background: var(--danger);
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
}

.search-box-input {
    padding-right: 2.75rem;
}

/* Filters */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .card-modern,
    .stat-card,
    .form-section {
        margin-bottom: 1rem;
    }
    
    .admin-welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .admin-quick-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .listing-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .listing-actions {
        width: 100%;
    }
    
    .listing-actions .btn {
        flex: 1;
    }
    
    .detail-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .detail-actions {
        width: 100%;
    }
    
    .detail-actions .btn {
        flex: 1;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* =====================================================
   REPORT WORKFLOW STEPPER (rws) - Complete Rebuild
   RTL-first, Arabic UI, Production-ready
   ===================================================== */

.rws-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.rws-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* Header */
.rws-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    direction: rtl;
}

.rws-header__info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.rws-header__title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
}

.rws-header__title i {
    color: var(--primary);
    font-size: 1.375rem;
}

.rws-header__meta {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.rws-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Badge */
.rws-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
}

.rws-badge--draft {
    background: rgba(100, 116, 139, 0.12);
    border-color: rgba(100, 116, 139, 0.25);
    color: var(--muted-foreground);
}

.rws-badge--pending {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
    color: #b45309;
}

.rws-badge--approved {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.25);
    color: var(--success);
}

/* Stepper Track - RTL: step 1 on right, step 3 on left */
.rws-track {
    display: flex;
    flex-direction: row;
    direction: rtl;
    gap: 0;
    margin-bottom: 2rem;
}

/* Individual Step */
.rws-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Step Node (circle + connector) */
.rws-step__node {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    justify-content: center;
}

.rws-step__circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 3px solid var(--border);
    background: var(--surface);
    color: var(--muted-foreground);
}

/* Connector Line */
.rws-step__link {
    position: absolute;
    top: 50%;
    height: 4px;
    background: var(--surface-2);
    border-radius: var(--radius-full);
    z-index: 1;
    inset-inline-start: calc(50% + 26px);
    inset-inline-end: calc(50% + 26px);
    transform: translateY(-50%);
    width: auto;
}

/* Step Body (text) */
.rws-step__body {
    text-align: center;
    margin-top: 1rem;
    padding: 0 0.5rem;
}

.rws-step__label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.rws-step__status {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    opacity: 0.7;
    font-weight: 500;
}

/* ===== DONE STATE ===== */
.rws-step--done .rws-step__circle {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
}

.rws-step--done .rws-step__label {
    color: var(--success);
}

.rws-step--done .rws-step__status {
    color: var(--success);
    opacity: 0.8;
}

.rws-step--done .rws-step__link {
    background: var(--success);
    box-shadow: 0 0 6px rgba(22, 163, 74, 0.3);
}

/* ===== ACTIVE STATE ===== */
.rws-step--active .rws-step__circle {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 0, 51, 0.4);
    animation: rwsPulse 2s ease-in-out infinite;
}

.rws-step--active .rws-step__label {
    color: var(--primary);
}

.rws-step--active .rws-step__status {
    color: var(--primary);
    opacity: 0.8;
}

/* Connector from done to active = green */
.rws-step--active .rws-step__link {
    background: var(--surface-2);
}

/* ===== PENDING STATE ===== */
.rws-step--pending .rws-step__circle {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--muted-foreground);
}

.rws-step--pending .rws-step__label {
    color: var(--muted-foreground);
}

.rws-step--pending .rws-step__status {
    color: var(--muted-foreground);
    opacity: 0.6;
}

.rws-step--pending .rws-step__link {
    background: var(--surface-2);
}

/* ===== PROGRESS BAR ===== */
.rws-progress {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.rws-progress__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    direction: rtl;
}

.rws-progress__text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.rws-progress__percent {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    direction: ltr;
}

.rws-progress__track {
    height: 10px;
    background: var(--surface-2);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.rws-progress__fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    inset-inline-end: 0;
    width: 100%;
    transform-origin: right;
}

.rws-progress__fill::after {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes rwsPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 0, 51, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 0, 51, 0.6);
        transform: scale(1.05);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .rws-card {
        padding: 1.5rem;
    }

    .rws-header {
        flex-direction: column;
        gap: 1rem;
    }

    .rws-header__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .rws-track {
        flex-direction: column;
        gap: 1.5rem;
    }

    .rws-step {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .rws-step__node {
        width: auto;
        justify-content: flex-start;
    }

    .rws-step__link {
        display: none;
    }

    .rws-step__body {
        text-align: start;
        margin-top: 0;
        flex: 1;
    }
}

/* Dark Mode */
[data-theme="dark"] .rws-card,
[data-bs-theme="dark"] .rws-card {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .rws-step__circle,
[data-bs-theme="dark"] .rws-step__circle {
    background: var(--surface-2);
}

[data-theme="dark"] .rws-progress__track,
[data-bs-theme="dark"] .rws-progress__track {
    background: var(--surface-2);
}
