/* BusForUs Admin Panel - Travelie Modern Theme */

/* ========================================================================
   RENK PALETİ - MAVİ TEMA
   ======================================================================== */
:root {
    /* Ana Renkler */
    --primary: #4A90E2;
    --primary-light: #5BA0F2;
    --primary-dark: #3A7BC8;
    --primary-soft: rgba(74, 144, 226, 0.1);
    --primary-softer: rgba(74, 144, 226, 0.05);
    
    /* Arka Plan Renkleri */
    --bg-body: #F5F7FA;
    --bg-sidebar: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-header: #FFFFFF;
    
    /* Metin Renkleri */
    --text-dark: #1E293B;
    --text-primary: #334155;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --text-white: #FFFFFF;
    
    /* Durum Renkleri */
    --success: #22C55E;
    --success-light: #DCFCE7;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --info: #0EA5E9;
    --info-light: #E0F2FE;
    
    /* Border & Shadow */
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Sidebar Genişliği */
    --sidebar-width: 280px;
}

/* ========================================================================
   RESET & BASE
   ======================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ========================================================================
   ADMIN WRAPPER
   ======================================================================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ========================================================================
   SIDEBAR - MODERN DROPDOWN SYSTEM
   ======================================================================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: transform 0.3s ease;
    overscroll-behavior: contain;
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Sidebar Header */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: var(--bg-sidebar);
    z-index: 10;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.sidebar-logo {
    max-width: 160px;
    height: auto;
}

.sidebar-brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
    flex-shrink: 0;
}

.sidebar-brand-text h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.sidebar-brand-text p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 12px;
}

/* Navigation Sections */
.nav-section {
    margin-bottom: 8px;
}

.nav-section-title {
    padding: 12px 14px 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}

/* Navigation Links */
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

.nav-link:hover {
    background: var(--primary-softer);
    color: var(--primary);
}

.nav-link:hover i {
    opacity: 1;
}

.nav-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

.nav-link.active i {
        opacity: 1;
}

.nav-link.nav-logout {
    color: var(--danger);
}

.nav-link.nav-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Dropdown Container */
.nav-dropdown {
    margin-bottom: 2px;
}

/* Dropdown Toggle */
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.nav-dropdown-toggle i:first-child {
    font-size: 16px;
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

.nav-dropdown-toggle span {
    flex: 1;
}

.nav-dropdown-toggle .nav-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown-toggle:hover {
    background: var(--primary-softer);
    color: var(--primary);
}

.nav-dropdown-toggle:hover i {
    opacity: 1;
}

/* Dropdown Active State (parent has active child) */
.nav-dropdown.active > .nav-dropdown-toggle {
    color: var(--primary);
    font-weight: 600;
}

.nav-dropdown.active > .nav-dropdown-toggle i:first-child {
    opacity: 1;
}

/* Dropdown Open State */
.nav-dropdown.open > .nav-dropdown-toggle {
    background: var(--primary-softer);
    color: var(--primary);
    font-weight: 600;
}

.nav-dropdown.open > .nav-dropdown-toggle i:first-child {
    opacity: 1;
}

.nav-dropdown.open > .nav-dropdown-toggle .nav-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Dropdown Menu */
.nav-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease,
                padding 0.25s ease;
    padding-left: 0;
    margin-left: 14px;
    border-left: 2px solid var(--border-light);
}

.nav-dropdown.open > .nav-dropdown-menu {
    max-height: 500px;
    opacity: 1;
    padding: 6px 0 6px 0;
    overflow: visible;
}

/* Dropdown Items */
.nav-dropdown-item {
    display: block;
    padding: 9px 14px 9px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin: 1px 0;
    border-radius: 0 6px 6px 0;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease,
                transform 0.2s ease, opacity 0.15s ease;
    opacity: 0;
    transform: translateY(-4px);
}

.nav-dropdown.open > .nav-dropdown-menu > .nav-dropdown-item {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation - açılırken */
.nav-dropdown.open > .nav-dropdown-menu > .nav-dropdown-item:nth-child(1) { transition-delay: 0.04s; }
.nav-dropdown.open > .nav-dropdown-menu > .nav-dropdown-item:nth-child(2) { transition-delay: 0.07s; }
.nav-dropdown.open > .nav-dropdown-menu > .nav-dropdown-item:nth-child(3) { transition-delay: 0.10s; }
.nav-dropdown.open > .nav-dropdown-menu > .nav-dropdown-item:nth-child(4) { transition-delay: 0.13s; }
.nav-dropdown.open > .nav-dropdown-menu > .nav-dropdown-item:nth-child(5) { transition-delay: 0.16s; }

/* Kapanırken delay yok - hızlı kapansın */
.nav-dropdown:not(.open) > .nav-dropdown-menu > .nav-dropdown-item {
    transition-delay: 0s;
    opacity: 0;
    transform: translateY(-4px);
}

.nav-dropdown-item:hover {
    background: var(--primary-softer);
    color: var(--primary);
    padding-left: 20px;
}

.nav-dropdown-item.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
    border-left: 2px solid var(--primary);
    margin-left: -2px;
}

/* No transition class for initial load - sayfa açılışında flash olmasın */
.sidebar.no-transition .nav-dropdown-menu,
.sidebar.no-transition .nav-dropdown-item,
.sidebar.no-transition .nav-arrow,
.sidebar.no-transition .nav-dropdown-toggle {
    transition: none !important;
    transition-delay: 0s !important;
}

.sidebar.no-transition .nav-dropdown.open > .nav-dropdown-menu {
    max-height: 500px;
    opacity: 1;
    padding: 6px 0 6px 0;
}

.sidebar.no-transition .nav-dropdown.open > .nav-dropdown-menu > .nav-dropdown-item {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Sidebar */
.sidebar-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4);
    transition: all 0.3s ease;
}

.sidebar-mobile-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(74, 144, 226, 0.5);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar-mobile-toggle {
    display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

/* ========================================================================
   MAIN CONTENT
   ======================================================================== */
.main-content {
    flex: 1 1 auto;
    width: calc(100% - var(--sidebar-width));
    max-width: none;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ========================================================================
   TOP HEADER - TRAVELIE STYLE
   ======================================================================== */
.top-header {
    background: var(--bg-header);
    padding: 16px 32px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.header-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-subtitle i {
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.header-search input {
    width: 280px;
    padding: 10px 16px 10px 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 14px;
    background: var(--bg-body);
    color: var(--text-primary);
    transition: all 0.2s;
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
    background: white;
}

.header-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

/* Header Icons */
.header-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.header-icon:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.header-icon .notification-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.user-info:hover {
    background: var(--bg-body);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
}

.user-dropdown-icon {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 8px;
}

/* ========================================================================
   CONTENT AREA
   ======================================================================== */
.content-area {
    padding: 28px 20px;
    min-height: calc(100vh - 80px);
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

@media (min-width: 1400px) {
    .content-area {
        padding: 28px 16px;
    }
}

/* ========================================================================
   STAT CARDS - TRAVELIE STYLE
   ======================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

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

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-card-icon.primary {
    background: var(--primary-soft);
    color: var(--primary);
}

.stat-card-icon.success {
    background: var(--success-light);
    color: var(--success);
}

.stat-card-icon.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-card-icon.danger {
    background: var(--danger-light);
    color: var(--danger);
}

.stat-card-icon.info {
    background: var(--info-light);
    color: var(--info);
}

.stat-card-content {
    flex: 1;
}

.stat-card-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.stat-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.stat-card-trend.up {
    background: var(--success-light);
    color: var(--success);
}

.stat-card-trend.down {
    background: var(--danger-light);
    color: var(--danger);
}

/* ========================================================================
   CARDS - MODERN STYLE
   ======================================================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

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

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--primary);
    font-size: 18px;
}

.card-actions {
    display: flex;
    gap: 12px;
}

.card-body {
    padding: 24px;
}

/* Card Dropdown Button */
.card-dropdown {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.card-dropdown:hover {
    background: var(--primary-dark);
}

/* ========================================================================
   DASHBOARD GRID LAYOUT
   ======================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-grid-full {
    grid-column: 1 / -1;
}

/* ========================================================================
   MODERN TABLE
   ======================================================================== */
.table-container {
    overflow-x: auto;
}

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

.table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table tbody tr {
    transition: all 0.2s;
}

.table tbody tr:hover {
    background: var(--primary-softer);
}

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

/* Table Cell Styles */
.ticket-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.ticket-code i {
    font-size: 12px;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.package-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.amount-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--success);
}

.date-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.date-text i {
    color: var(--text-muted);
    font-size: 12px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.status-badge i {
    font-size: 10px;
}

.status-success {
    background: var(--success-light);
    color: var(--success);
}

.status-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.status-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.status-info {
    background: var(--info-light);
    color: var(--info);
}

.status-secondary {
    background: var(--bg-body);
    color: var(--text-secondary);
}

/* ========================================================================
   PENDING LIST / ACTIVITY LIST
   ======================================================================== */
.pending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pending-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
}

.pending-item:hover {
    background: white;
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.pending-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.pending-icon.warning {
    background: linear-gradient(135deg, var(--warning), #F97316);
}

.pending-icon.info {
    background: linear-gradient(135deg, var(--info), var(--primary));
}

.pending-icon.success {
    background: linear-gradient(135deg, var(--success), #10B981);
}

.pending-icon.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.pending-icon.danger {
    background: linear-gradient(135deg, var(--danger), #DC2626);
}

.pending-content {
    flex: 1;
}

.pending-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.pending-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.pending-arrow {
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0;
    transition: all 0.2s;
}

.pending-item:hover .pending-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.activity-list::-webkit-scrollbar {
    width: 4px;
}

.activity-list::-webkit-scrollbar-track {
    background: transparent;
}

.activity-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.activity-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.activity-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-icon.success-bg {
    background: linear-gradient(135deg, var(--success), #10B981);
}

.activity-icon.warning-bg {
    background: linear-gradient(135deg, var(--warning), #F97316);
}

.activity-icon.primary-bg {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.activity-icon.danger-bg {
    background: linear-gradient(135deg, var(--danger), #DC2626);
}

.activity-icon.secondary-bg {
    background: linear-gradient(135deg, #6B7280, #4B5563);
}

.activity-details {
    flex: 1;
    min-width: 0;
}

.activity-user {
    font-size: 14px;
    margin-bottom: 4px;
}

.activity-user strong {
    color: var(--text-dark);
    font-weight: 600;
}

.activity-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.activity-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.activity-time i {
    font-size: 10px;
}

/* ========================================================================
   MINI CALENDAR
   ======================================================================== */
.mini-calendar {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    padding: 16px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.calendar-day-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 0;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.calendar-day.today {
    background: var(--primary);
    color: white;
    font-weight: 700;
}

.calendar-day.other-month {
    color: var(--text-muted);
}

.calendar-day.has-event {
    position: relative;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

/* ========================================================================
   TOP DESTINATIONS / PIE CHART
   ======================================================================== */
.destinations-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.destination-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.destination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.destination-info {
    flex: 1;
}

.destination-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.destination-count {
    font-size: 12px;
    color: var(--text-muted);
}

.destination-percentage {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ========================================================================
   BUTTONS
   ======================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

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

.btn-success:hover {
    background: #16A34A;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

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

.btn-danger:hover {
    background: #DC2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    padding: 0;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-link:hover {
    color: var(--primary-dark);
    gap: 10px;
}

/* ========================================================================
   FORMS
   ======================================================================== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: white;
}

.form-control:hover {
    border-color: #CBD5E1;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

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

select.form-control {
    cursor: pointer;
    appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

select.form-control:hover {
    border-color: #CBD5E1;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-body);
}

.file-upload:hover {
    border-color: var(--primary);
    background: var(--primary-softer);
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-icon {
    font-size: 40px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.file-upload-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.file-upload-text span {
    color: var(--primary);
    font-weight: 600;
}

/* ========================================================================
   FORM CARD
   ======================================================================== */
.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* ========================================================================
   PAGE HEADER
   ======================================================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* ========================================================================
   ALERTS
   ======================================================================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert i {
    font-size: 18px;
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
}

.alert-error {
    background: var(--danger-light);
    color: var(--danger);
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.alert-info {
    background: var(--info-light);
    color: var(--info);
}

/* ========================================================================
   TOAST NOTIFICATIONS
   ======================================================================== */
.toast-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    max-width: 400px;
    min-width: 320px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    animation: toastSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid;
}

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

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--danger);
}

.toast-warning {
    border-left-color: var(--warning);
}

.toast-info {
    border-left-color: var(--info);
}

.toast-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: linear-gradient(135deg, var(--success), #10B981);
}

.toast-error .toast-icon {
    background: linear-gradient(135deg, var(--danger), #DC2626);
}

.toast-warning .toast-icon {
    background: linear-gradient(135deg, var(--warning), #F97316);
}

.toast-info .toast-icon {
    background: linear-gradient(135deg, var(--info), var(--primary));
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
}

.toast-close {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.toast-close:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* ========================================================================
   LOGIN PAGE
   ======================================================================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/bussback.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.login-container::after {
    display: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, -50px) rotate(5deg); }
    50% { transform: translate(0, -100px) rotate(0deg); }
    75% { transform: translate(-50px, -50px) rotate(-5deg); }
}

.login-box {
    background: white;
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo-img {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.login-logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: white;
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.3);
}

.login-logo h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.login-logo p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========================================================================
   EMPTY STATE
   ======================================================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    color: var(--border-color);
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 15px;
}

/* ========================================================================
   TABLE RESPONSIVE
   ======================================================================== */
.table-responsive {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow-x: auto;
}

/* ========================================================================
   BADGES
   ======================================================================== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-info {
    background: var(--info-light);
    color: var(--info);
}

.badge-primary {
    background: var(--primary-soft);
    color: var(--primary);
}

/* ========================================================================
   COUNT BADGE
   ======================================================================== */
.count-badge {
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    min-width: 24px;
    text-align: center;
}

/* ========================================================================
   IMAGE PREVIEW
   ======================================================================== */
.image-preview {
    margin-top: 16px;
    max-width: 300px;
}

.image-preview img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* ========================================================================
   ACTION BUTTONS
   ======================================================================== */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ========================================================================
   UPCOMING TRIPS / SIDEBAR WIDGET
   ======================================================================== */
.upcoming-trips {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trip-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.trip-card:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.trip-image {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.trip-content {
    flex: 1;
}

.trip-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.trip-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.trip-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.trip-meta i {
    font-size: 11px;
}

/* ========================================================================
   MESSAGES LIST
   ======================================================================== */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.message-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.message-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.message-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

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

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.message-sender {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.message-time {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}

.message-text {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-unread {
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
}

/* ========================================================================
   PROGRESS BAR
   ======================================================================== */
.progress-bar {
    height: 8px;
    background: var(--border-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

/* ========================================================================
   STATS MODERN GRID (For Dashboard)
   ======================================================================== */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card-modern {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

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

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-icon-primary {
    background: var(--primary-soft);
    color: var(--primary);
}

.stat-icon-success {
    background: var(--success-light);
    color: var(--success);
}

.stat-icon-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-icon-info {
    background: var(--info-light);
    color: var(--info);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 12px;
}

.stat-value-secondary {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-muted);
}

.stat-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.stat-info {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================================================
   DASHBOARD GRID LAYOUT
   ======================================================================== */
.dashboard-grid-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    margin-bottom: 32px;
    align-items: start;
}

.dashboard-secondary-grid {
    margin-bottom: 32px;
    grid-template-areas:
        "chart side"
        "bookings side";
}

.dashboard-chart { grid-area: chart; }
.dashboard-bookings { grid-area: bookings; }
.dashboard-side { grid-area: side; }

.dashboard-chart-box {
    height: 220px;
    position: relative;
}

.dashboard-card-large,
.dashboard-card-small {
    min-width: 0;
}

/* ========================================================================
   CARD MODERN
   ======================================================================== */
.card-modern {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

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

.card-title-modern {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.card-title-modern i {
    color: var(--primary);
    font-size: 18px;
}

.card-body-modern {
    padding: 24px;
}

/* ========================================================================
   TABLE WRAPPER MODERN
   ======================================================================== */
.table-wrapper-modern {
    overflow-x: auto;
    margin: -24px;
}

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead {
    background: var(--bg-body);
}

.table-modern th {
    padding: 14px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.table-modern td {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table-modern tbody tr {
    transition: all 0.2s;
}

.table-modern tbody tr:hover {
    background: var(--primary-softer);
}

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

/* Ticket Code Cell */
.ticket-code-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-code-cell i {
    color: var(--primary);
    font-size: 14px;
}

.ticket-code-cell span {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

/* User Cell Flex */
.user-cell-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Package Tag */
.package-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

/* Date Cell */
.date-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.date-cell i {
    color: var(--text-muted);
    font-size: 12px;
}

/* Amount Cell */
.amount-cell {
    font-size: 15px;
    font-weight: 700;
    color: var(--success);
}

/* ========================================================================
   BTN LINK MODERN
   ======================================================================== */
.btn-link-modern {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-link-modern:hover {
    color: var(--primary-dark);
    gap: 10px;
}

/* ========================================================================
   COUNTER ANIMATION
   ======================================================================== */
.counter {
    display: inline-block;
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 1400px) {
    .dashboard-grid-layout {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 1200px) {
    .dashboard-grid-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-secondary-grid {
        grid-template-areas:
            "chart"
            "side"
            "bookings";
    }
    
    .dashboard-card-small {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: var(--sidebar-width);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .top-header {
        padding: 16px 20px;
    }
    
    .header-search {
        display: none;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .stats-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card-small {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .stat-card-modern {
        padding: 20px;
    }
    
    .stat-icon-wrapper {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .card-body-modern {
        padding: 16px;
    }
    
    .table-wrapper-modern {
        margin: -16px;
    }
}

/* ========================================================================
   MOBILE MENU TOGGLE
   ======================================================================== */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4);
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
    display: flex;
    }
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

/* ========================================================================
   UTILITY CLASSES
   ======================================================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

/* ========================================================================
   MODERN FORM STYLES - PREMIUM DESIGN
   ======================================================================== */

/* Form Grid Layouts */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.form-grid-wide {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .form-grid-2,
    .form-grid-wide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* Premium Form Card */
.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.form-card-header {
    padding: 20px 28px;
    background: linear-gradient(135deg, var(--bg-body) 0%, #EDF2F7 100%);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.3px;
}

.form-card-header i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

.form-card-body {
    padding: 28px;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Premium Form Label */
.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

.form-label .text-danger {
    color: var(--danger);
    font-weight: 700;
    font-size: 16px;
}

/* Modern Form Control */
.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.form-control:hover {
    border-color: var(--primary-soft);
    background: var(--bg-body);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.06);
}

.form-control:focus {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft), 0 4px 16px rgba(74, 144, 226, 0.1);
}

/* Select Styling - Modern Dropdown */
select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 14px center / 16px !important;
    padding: 14px 44px 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

select.form-control:hover {
    border-color: var(--primary-soft);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.08);
}

select.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
    outline: none;
}

select.form-control option {
    padding: 12px 16px;
    background: white;
    color: var(--text-dark);
    font-weight: 500;
}

select.form-control optgroup {
    font-weight: 700;
    color: var(--text-dark);
    background: var(--bg-body);
}

/* Textarea Styling */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* File Input Styling */
input[type="file"].form-control {
    padding: 10px 14px;
    cursor: pointer;
    background: var(--bg-body);
    line-height: 1.5;
}

input[type="file"].form-control::file-selector-button {
    padding: 8px 16px;
    margin-right: 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="file"].form-control::file-selector-button:hover {
    background: var(--primary-dark);
}

/* Filter Bar Styling */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 10px 36px 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    cursor: pointer;
    appearance: none;
    outline: none;
}

.filter-select:hover {
    border-color: #CBD5E1;
}

.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Form Text / Helper */
.form-text {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Info List in Form Card */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border-light);
}

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

.info-item:first-child {
    padding-top: 0;
}

.info-item span {
    color: var(--text-muted);
    font-size: 13px;
}

.info-item strong {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.form-actions-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-actions-vertical .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 15px;
}

/* Premium Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 14px 18px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}

.checkbox-label:hover {
    background: #EDF2F7;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Route Type Selector (Bus Form) */
.route-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.route-option {
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-body);
}

.route-option input {
    display: none;
}

.route-option i {
    display: block;
    font-size: 28px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

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

.route-option.red.selected {
    border-color: #EF4444;
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    color: #DC2626;
}

.route-option.red.selected i {
    color: #EF4444;
    transform: scale(1.1);
}

.route-option.blue.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: var(--primary-dark);
}

.route-option.blue.selected i {
    color: var(--primary);
    transform: scale(1.1);
}

/* Image Upload Area */
.image-upload-area {
    width: 100%;
    min-height: 220px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--bg-body) 0%, #EDF2F7 100%);
}

.image-upload-area:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary-softer) 0%, var(--primary-soft) 100%);
    transform: translateY(-2px);
}

.upload-placeholder {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px;
}

.upload-placeholder i {
    font-size: 52px;
    margin-bottom: 16px;
    color: var(--primary);
    opacity: 0.6;
    display: block;
}

.upload-placeholder p {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--text-primary);
}

.upload-placeholder span {
    font-size: 12px;
    color: var(--text-muted);
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 220px;
}

.btn-remove-image {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, var(--danger) 0%, #DC2626 100%);
    color: white;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    transition: all 0.25s ease;
}

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

/* File Upload */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--bg-body) 0%, #EDF2F7 100%);
}

.file-upload:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary-softer) 0%, var(--primary-soft) 100%);
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
    opacity: 0.7;
}

.file-upload-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.file-upload-text span {
    color: var(--primary);
    font-weight: 600;
}

/* Image Preview */
.image-preview {
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--border-light);
}

.image-preview img {
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Form Animations */
@keyframes formCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-card {
    animation: formCardFadeIn 0.4s ease-out;
}

.form-grid-2 > *:nth-child(1) .form-card,
.form-grid-wide > *:nth-child(1) .form-card {
    animation-delay: 0s;
}

.form-grid-2 > *:nth-child(2) .form-card,
.form-grid-wide > *:nth-child(2) .form-card {
    animation-delay: 0.1s;
}

/* Form Control Base */
.form-control {
    position: relative;
}

/* Validation States */
.form-control.is-valid {
    border-color: var(--success);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2322C55E'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 44px;
}

.form-control.is-invalid {
    border-color: var(--danger);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23EF4444'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 44px;
}

.form-control.is-valid:focus {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

/* Premium Button Styles for Forms */
.form-actions-vertical .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.35);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.form-actions-vertical .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.45);
}

.form-actions-vertical .btn-outline {
    border: 2px solid var(--border-color);
    background: var(--bg-card);
}

.form-actions-vertical .btn-outline:hover {
    background: var(--bg-body);
    border-color: var(--text-muted);
}

/* Floating Label Effect (Optional) */
.form-group-floating {
    position: relative;
}

.form-group-floating .form-control {
    padding-top: 24px;
    padding-bottom: 8px;
}

.form-group-floating .form-label {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    transition: all 0.25s ease;
    pointer-events: none;
    margin: 0;
    color: var(--text-muted);
}

.form-group-floating .form-control:focus + .form-label,
.form-group-floating .form-control:not(:placeholder-shown) + .form-label {
    top: 12px;
    font-size: 11px;
    color: var(--primary);
}

/* Switch Toggle */
.switch-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
}

.switch-label:hover {
    background: #EDF2F7;
}

.switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-color);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.switch input:checked + .switch-slider {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.switch input:checked + .switch-slider:before {
    transform: translateX(24px);
}

/* Number Input with +/- Buttons */
.number-input-wrapper {
    display: flex;
        align-items: center;
    gap: 0;
}

.number-input-wrapper .form-control {
    text-align: center;
    border-radius: 0;
    -moz-appearance: textfield;
}

.number-input-wrapper .form-control::-webkit-outer-spin-button,
.number-input-wrapper .form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.number-btn:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border-right: none;
}

.number-btn:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-left: none;
}

.number-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Premium Card with Icon Badge */
.form-card-premium {
    position: relative;
    overflow: visible;
}

.form-card-premium::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 28px;
    right: 28px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-full);
}

/* ========================================================================
   MODERN LIST PAGE STYLES
   ======================================================================== */

/* List Page Header */
.list-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 20px;
}

.list-page-header-left h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-page-header-left h2 i {
    color: var(--primary);
}

.list-page-header-left p {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-page-header-left .list-count {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
}

.list-page-header-right {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Modern Stats Grid */
.list-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.list-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.list-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.list-stat-card:hover::before {
    opacity: 1;
}

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

.list-stat-content {
    flex: 1;
}

.list-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.list-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.list-stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.list-stat-change.up {
    background: var(--success-light);
    color: var(--success);
}

.list-stat-change.down {
    background: var(--danger-light);
    color: var(--danger);
}

/* Modern List Card */
.list-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.list-card-header {
    padding: 22px 28px;
    background: linear-gradient(135deg, var(--bg-body) 0%, #EDF2F7 100%);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.list-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-card-title i {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

.list-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.list-card-body {
    padding: 20px 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Modern Search & Filter Bar */
.list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-body) 0%, #EDF2F7 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.list-search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.list-search-box input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}

.list-search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.list-search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.list-filter-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.list-filter-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.list-filter-select {
    min-height: 46px;
    padding: 12px 40px 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background-color: var(--bg-card);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    appearance: none;
    transition: all 0.25s ease;
}

.list-filter-select:hover {
    border-color: #CBD5E1;
}

.list-filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.list-filter-btn {
    padding: 12px 24px;
}

/* Filter Chips */
.list-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.filter-chip i {
    text-decoration: none;
    border-bottom: none;
}

.filter-chip:hover {
    background: var(--primary-softer);
    border-color: var(--primary-soft);
    color: var(--primary);
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.filter-chip-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.filter-chip.active .filter-chip-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Modern Table — tam genişlik, yatay kaydırma yok (metin sarar) */
.list-table-wrapper {
    overflow-x: visible;
    margin: 0 -16px -20px;
    width: calc(100% + 32px);
    max-width: none;
    box-sizing: border-box;
}

.list-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

/* Kullanıcı listesi (9 sütun) — sağdaki boşluğu doldur */
.list-table--wide th:nth-child(1),
.list-table--wide td:nth-child(1) { width: 15%; }
.list-table--wide th:nth-child(2),
.list-table--wide td:nth-child(2) { width: 22%; }
.list-table--wide th:nth-child(3),
.list-table--wide td:nth-child(3) { width: 11%; }
.list-table--wide th:nth-child(4),
.list-table--wide td:nth-child(4) { width: 7%; }
.list-table--wide th:nth-child(5),
.list-table--wide td:nth-child(5) { width: 10%; }
.list-table--wide th:nth-child(6),
.list-table--wide td:nth-child(6) { width: 11%; }
.list-table--wide th:nth-child(7),
.list-table--wide td:nth-child(7) { width: 9%; }
.list-table--wide th:nth-child(8),
.list-table--wide td:nth-child(8) { width: 9%; }
.list-table--wide th:nth-child(9),
.list-table--wide td:nth-child(9) { width: 6%; }

.list-table thead {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.list-table th {
    padding: 12px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid var(--border-color);
    white-space: normal;
    line-height: 1.25;
    word-break: break-word;
}

.list-table th:first-child {
    padding-left: 20px;
}

.list-table th:last-child {
    padding-right: 20px;
}

.list-table td {
    padding: 12px 10px;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    min-width: 0;
}

.list-table td:first-child {
    padding-left: 20px;
}

.list-table td:last-child {
    padding-right: 20px;
}

.list-table tbody tr {
    transition: all 0.2s ease;
}

.list-table tbody tr:hover {
    background: linear-gradient(135deg, var(--primary-softer) 0%, rgba(74, 144, 226, 0.03) 100%);
}

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

/* Tablo içi kompakt rozet / tarih / işlem */
.list-table .list-badge {
    padding: 3px 8px;
    font-size: 11px;
    gap: 4px;
}

.list-table .list-status {
    padding: 4px 8px;
    font-size: 11px;
    gap: 4px;
    white-space: normal;
    line-height: 1.2;
}

.list-table .list-date-cell span {
    font-size: 11px;
}

.list-table .list-date-cell small {
    font-size: 10px;
}

.list-table .list-actions {
    gap: 4px;
    flex-wrap: wrap;
}

.list-table .list-action-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.list-table .list-cell-email-text {
    display: inline;
    font-size: 12px;
    line-height: 1.35;
    word-break: break-all;
}

/* Table Cell Components */
.list-id-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.list-image-cell {
    width: 70px;
    height: 50px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
}

.list-image-placeholder {
    width: 70px;
    height: 50px;
    background: linear-gradient(135deg, var(--bg-body) 0%, #E2E8F0 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
}

.list-user-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.list-table .list-user-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.list-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.list-table .list-user-avatar-text {
    width: 32px;
    height: 32px;
    font-size: 12px;
    flex-shrink: 0;
}

.list-user-avatar-text {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

.list-user-info {
    min-width: 0;
}

.list-table .list-user-info h4 {
    font-size: 12px;
    margin-bottom: 2px;
    word-break: break-word;
}

.list-user-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.list-table .list-user-info p {
    font-size: 10px;
}

.list-user-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.list-title-cell h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.list-title-cell p {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.list-badge-primary {
    background: var(--primary-soft);
    color: var(--primary);
}

.list-badge-success {
    background: var(--success-light);
    color: var(--success);
}

.list-badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.list-badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.list-badge-info {
    background: var(--info-light);
    color: var(--info);
}

.list-badge-secondary {
    background: var(--bg-body);
    color: var(--text-secondary);
}

.list-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.list-status i {
    font-size: 8px;
}

.list-status-active {
    background: var(--success-light);
    color: var(--success);
}

.list-status-inactive {
    background: var(--bg-body);
    color: var(--text-muted);
}

.list-status-pending {
    background: var(--warning-light);
    color: var(--warning);
}

.list-status-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.list-date-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.list-date-cell span {
    color: var(--text-primary);
    font-weight: 500;
}

.list-date-cell small {
    color: var(--text-muted);
    font-size: 12px;
}

.list-price-cell {
    font-size: 15px;
    font-weight: 700;
    color: var(--success);
}

.list-price-cell.strikethrough {
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 12px;
}

/* Modern Action Buttons */
.list-actions {
    display: flex;
    gap: 8px;
}

.list-action-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}

.list-action-btn-view {
    background: var(--info-light);
    color: var(--info);
}

.list-action-btn-view:hover {
    background: var(--info);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.list-action-btn-edit {
    background: var(--primary-soft);
    color: var(--primary);
}

.list-action-btn-edit:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.list-action-btn-delete {
    background: var(--danger-light);
    color: var(--danger);
}

.list-action-btn-delete:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.list-action-btn-disabled {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-body);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
    border: 1px solid var(--border-color);
}

.list-action-btn-success {
    background: var(--success-light);
    color: var(--success);
}

.list-action-btn-success:hover {
    background: var(--success);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.list-action-btn-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.list-action-btn-warning:hover {
    background: var(--warning);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Modern Empty State */
.list-empty-state {
    text-align: center;
    padding: 80px 40px;
}

.list-empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--bg-body) 0%, #E2E8F0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.list-empty-icon i {
    font-size: 42px;
    color: var(--text-muted);
}

.list-empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.list-empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Modern Pagination */
.list-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 24px 28px;
    border-top: 1px solid var(--border-light);
}

.list-pagination-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.list-pagination-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.list-pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.list-pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Rating Cell */
.list-rating-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.list-rating-cell i {
    color: var(--warning);
    font-size: 13px;
}

.list-rating-cell span {
    font-weight: 600;
    color: var(--text-dark);
}

.list-rating-cell small {
    color: var(--text-muted);
    font-size: 12px;
}

/* Quick View Hover */
.list-quick-view {
    position: relative;
}

.list-quick-view-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--text-dark);
    color: white;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 100;
}

.list-quick-view-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text-dark);
}

.list-quick-view:hover .list-quick-view-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Checkbox Selection */
.list-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .list-toolbar {
        flex-direction: column;
    }
    
    .list-search-box {
        min-width: 100%;
    }
    
    .list-filter-group {
        min-width: calc(50% - 8px);
    }
}

@media (max-width: 768px) {
    .list-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .list-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .list-card-header {
        padding: 18px 20px;
    }
    
    .list-card-body {
        padding: 20px;
    }
    
    .list-table-wrapper {
        margin: 0 -20px -20px;
        width: calc(100% + 40px);
    }
    
    .list-table th:first-child,
    .list-table td:first-child {
        padding-left: 20px;
    }
    
    .list-table th:last-child,
    .list-table td:last-child {
        padding-right: 20px;
    }
    
    .list-filter-group {
        min-width: 100%;
    }
}

/* ========================================================================
   YATAY TAŞMA ÖNLEME (sayfa kaydırması yerine kart içi scroll)
   ======================================================================== */
.list-card,
.form-card {
    max-width: 100%;
    min-width: 0;
}

.list-card-body,
.form-card-body {
    max-width: 100%;
    min-width: 0;
}

.table-scroll-x {
    overflow-x: visible;
    max-width: 100%;
}

.table-scroll-x .list-table,
.table-scroll-x table {
    table-layout: fixed;
    width: 100%;
}

@media (max-width: 900px) {
    .table-scroll-x {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .list-table-wrapper {
        overflow: visible;
        margin: 0;
        width: 100%;
    }

    :is(.list-table-wrapper .list-table, .card-modern .table-modern) {
        display: block;
        width: 100%;
        min-width: 0;
        table-layout: auto;
    }

    :is(.list-table-wrapper .list-table, .card-modern .table-modern) thead {
        display: none;
    }

    :is(.list-table-wrapper .list-table, .card-modern .table-modern) tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    :is(.list-table-wrapper .list-table, .card-modern .table-modern) tr {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        border: 1px solid var(--border-light);
        border-radius: 14px;
        background: var(--bg-card);
    }

    :is(.list-table-wrapper .list-table, .card-modern .table-modern) td {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding: 0;
        border: none;
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
        text-align: left;
        min-width: 0;
    }

    :is(.list-table-wrapper .list-table, .card-modern .table-modern) td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: var(--text-muted);
        line-height: 1.3;
    }

    :is(.list-table-wrapper .list-table, .card-modern .table-modern) td[data-label=""]::before {
        display: none;
    }

    :is(.list-table-wrapper .list-table, .card-modern .table-modern) td[data-label=""] {
        grid-template-columns: 1fr;
    }

    :is(.list-table-wrapper .list-table, .card-modern .table-modern) .list-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    :is(.list-table-wrapper .list-table, .card-modern .table-modern) .badge,
    :is(.list-table-wrapper .list-table, .card-modern .table-modern) .price-badge,
    :is(.list-table-wrapper .list-table, .card-modern .table-modern) .list-status {
        white-space: nowrap;
        width: fit-content;
    }

    .list-card-header {
        align-items: stretch;
    }

    .list-card-actions {
        width: 100%;
    }

    .list-card-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

.list-card-body > .table-scroll-x,
.form-card-body > .table-scroll-x,
.list-card > .table-scroll-x {
    margin: 0;
    padding: 0 20px 20px;
}

.list-card-body > .table-scroll-x {
    margin: 0 -28px -24px;
    padding: 0 28px 24px;
}

.form-card-body > .table-scroll-x {
    margin: 0 -28px -24px;
    padding: 0 28px 24px;
}

.list-card-body > .table-scroll-x:first-child,
.form-card-body > .table-scroll-x:first-child {
    margin-top: -24px;
    padding-top: 24px;
}

/* Kullanıcı detay — profil özet kartı */
.profile-summary-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    overflow: hidden;
}

.profile-summary-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px 24px;
    width: 100%;
    min-width: 0;
}

.profile-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 260px;
    min-width: 0;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, #1E40AF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

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

.profile-info h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    word-break: break-word;
}

.profile-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 0 1 auto;
}

.profile-stats .stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    min-width: 100px;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.user-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    max-width: 100%;
}

.user-content-grid .content-column {
    min-width: 0;
}

.user-content-grid .list-table .status-tag {
    max-width: 160px;
    white-space: normal;
    line-height: 1.3;
    justify-content: center;
    text-align: center;
}

.info-table {
    width: 100%;
    table-layout: fixed;
}

.info-table .info-label {
    width: 38%;
    white-space: normal;
}

.info-table .info-value {
    word-break: break-word;
    overflow-wrap: anywhere;
}

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

@media (max-width: 768px) {
    .main-content {
        max-width: 100vw;
    }

    .profile-summary-top {
        flex-direction: column;
    }

    .profile-stats {
        width: 100%;
    }

    .profile-stats .stat-box {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }

    .profile-actions .btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .list-card-body > .table-scroll-x,
    .form-card-body > .table-scroll-x {
        margin: 0 -20px -20px;
        padding: 0 20px 20px;
    }
}
