/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern & Elegant Color Palette */
    --primary: #0ea5e9;
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;
    --primary-dark: #0369a1;
    --primary-light: #38bdf8;
    
    --secondary: #ec4899;
    --secondary-50: #fdf2f8;
    --secondary-100: #fce7f3;
    --secondary-200: #fbcfe8;
    --secondary-300: #f9a8d4;
    --secondary-400: #f472b6;
    --secondary-500: #ec4899;
    --secondary-600: #db2777;
    --secondary-700: #be185d;
    --secondary-800: #9f1239;
    --secondary-900: #831843;
    --secondary-dark: #be185d;
    
    --accent: #8b5cf6;
    --accent-50: #faf5ff;
    --accent-100: #f3e8ff;
    --accent-200: #e9d5ff;
    --accent-300: #d8b4fe;
    --accent-400: #c084fc;
    --accent-500: #a855f7;
    --accent-600: #8b5cf6;
    --accent-700: #7c3aed;
    --accent-800: #6d28d9;
    --accent-900: #5b21b6;
    --accent-dark: #7c3aed;
    
    --success: #10b981;
    --success-50: #ecfdf5;
    --success-100: #d1fae5;
    --success-200: #a7f3d0;
    --success-300: #6ee7b7;
    --success-400: #34d399;
    --success-500: #10b981;
    --success-600: #059669;
    --success-700: #047857;
    --success-800: #065f46;
    --success-900: #064e3b;
    
    --warning: #f59e0b;
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-200: #fde68a;
    --warning-300: #fcd34d;
    --warning-400: #fbbf24;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --warning-700: #b45309;
    --warning-800: #92400e;
    --warning-900: #78350f;
    
    --danger: #ef4444;
    --danger-50: #fef2f2;
    --danger-100: #fee2e2;
    --danger-200: #fecaca;
    --danger-300: #fca5a5;
    --danger-400: #f87171;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --danger-700: #b91c1c;
    --danger-800: #991b1b;
    --danger-900: #7f1d1d;
    
    --info: #06b6d4;
    --info-50: #ecfeff;
    --info-100: #cffafe;
    --info-200: #a5f3fc;
    --info-300: #67e8f9;
    --info-400: #22d3ee;
    --info-500: #06b6d4;
    --info-600: #0891b2;
    --info-700: #0e7490;
    --info-800: #155e75;
    --info-900: #164e63;
    
    --purple: #a855f7;
    --pink: #ec4899;
    --orange: #f97316;
    --cyan: #06b6d4;
    --emerald: #10b981;
    --amber: #f59e0b;
    
    /* Sophisticated Gradients */
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
    --gradient-primary-soft: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%);
    --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #be185d 100%);
    --gradient-secondary-soft: linear-gradient(135deg, #f472b6 0%, #ec4899 50%, #db2777 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
    --gradient-accent-soft: linear-gradient(135deg, #a855f7 0%, #8b5cf6 50%, #7c3aed 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ea580c 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    --gradient-success-soft: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    --gradient-info: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
    --gradient-purple: linear-gradient(135deg, #a855f7 0%, #8b5cf6 50%, #7c3aed 100%);
    --gradient-pink: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #be185d 100%);
    --gradient-ocean: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #0891b2 100%);
    --gradient-sunset: linear-gradient(135deg, #ec4899 0%, #f59e0b 50%, #f97316 100%);
    --gradient-royal: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #4f46e5 100%);
    --gradient-rainbow: linear-gradient(135deg, #0ea5e9 0%, #ec4899 25%, #8b5cf6 50%, #f59e0b 75%, #10b981 100%);
    
    /* Elegant Glow Effects */
    --glow-primary: 0 0 20px rgba(14, 165, 233, 0.4), 0 0 40px rgba(14, 165, 233, 0.2), 0 0 60px rgba(14, 165, 233, 0.1);
    --glow-secondary: 0 0 20px rgba(236, 72, 153, 0.4), 0 0 40px rgba(236, 72, 153, 0.2), 0 0 60px rgba(236, 72, 153, 0.1);
    --glow-accent: 0 0 20px rgba(139, 92, 246, 0.4), 0 0 40px rgba(139, 92, 246, 0.2), 0 0 60px rgba(139, 92, 246, 0.1);
    --glow-success: 0 0 20px rgba(16, 185, 129, 0.4), 0 0 40px rgba(16, 185, 129, 0.2);
    --glow-warning: 0 0 20px rgba(245, 158, 11, 0.4), 0 0 40px rgba(245, 158, 11, 0.2);
    --glow-danger: 0 0 20px rgba(239, 68, 68, 0.4), 0 0 40px rgba(239, 68, 68, 0.2);
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

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

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

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

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

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

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: white;
    position: relative;
    z-index: 1;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.logo i {
    font-size: 1.75rem;
    color: var(--primary-600);
    background: var(--primary-50);
    padding: 0.75rem;
    border-radius: 0.75rem;
}

.logo h1 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.logo p {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.sidebar-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 0.75rem;
    position: relative;
    z-index: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0.25rem 0;
    border-radius: 0.5rem;
    position: relative;
    font-weight: 500;
    font-size: 0.9375rem;
    z-index: 1;
}

.nav-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.nav-item.active {
    background: var(--accent-600);
    color: white;
    font-weight: 600;
}

.nav-item.active:hover {
    background: var(--accent-700);
    color: white;
}

.nav-item i {
    width: 24px;
    text-align: center;
    font-size: 1.25rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    background: white;
    position: relative;
    z-index: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.header {
    height: 70px;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-menu-toggle {
    display: none;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.header-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.header-search i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.125rem;
}

.header-search input {
    width: 100%;
    padding: 0.875rem 1.25rem 0.875rem 3rem;
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.3s;
    background: var(--gray-50);
}

.header-search input:focus {
    border-color: var(--primary-500);
    background: white;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--gray-700);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.4s;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 217, 255, 0.6);
    color: #00d9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gradient-danger);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.6);
    animation: pulse 2s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.user-avatar-small {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--glow-primary);
    transition: all 0.4s;
    border: 2px solid rgba(0, 217, 255, 0.5);
}

.user-avatar-small:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.6), var(--glow-primary);
    animation: pulse 1s ease-in-out infinite;
}

/* Page Content */
.page-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: transparent;
    animation: slideInUp 0.6s ease-out;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 217, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInLeft 0.6s ease-out;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.page-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 500;
}

/* Cards */
.card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.btn-primary {
    background: var(--primary-600);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.btn-primary:hover {
    background: var(--primary-700);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4), var(--glow-success);
}

.btn-success:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6), var(--glow-success);
    transform: translateY(-4px) scale(1.05);
    background: var(--gradient-success-soft);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4), var(--glow-danger);
}

.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6), var(--glow-danger);
    transform: translateY(-4px) scale(1.05);
    animation: pulse 1s ease-in-out infinite;
}

.btn-warning {
    background: var(--gradient-warm);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4), var(--glow-warning);
}

.btn-warning:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6), var(--glow-warning);
    transform: translateY(-4px) scale(1.05);
}

.btn-info {
    background: var(--gradient-info);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.btn-info:hover {
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.6);
    transform: translateY(-4px) scale(1.05);
}

.btn-sm {
    padding: 0.5rem;
    font-size: 0.875rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.stat-card.primary {
    background: var(--primary-500);
    color: white;
}

.stat-card.success {
    background: var(--success-500);
    color: white;
}

.stat-card.danger {
    background: var(--danger-500);
    color: white;
}

.stat-card.accent {
    background: var(--accent-600);
    color: white;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.stat-card-title {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.stat-card.primary .stat-card-title,
.stat-card.success .stat-card-title,
.stat-card.danger .stat-card-title,
.stat-card.accent .stat-card-title {
    color: rgba(255, 255, 255, 0.9);
}

.stat-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

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

.stat-card-icon.blue {
    background: var(--success-500);
    color: white;
}

.stat-card-icon.orange {
    background: var(--danger-500);
    color: white;
}

.stat-card-icon.purple {
    background: var(--accent-600);
    color: white;
}

.stat-card-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-card.primary .stat-card-value,
.stat-card.success .stat-card-value,
.stat-card.danger .stat-card-value,
.stat-card.accent .stat-card-value {
    color: white;
}

.stat-card-change {
    font-size: 0.875rem;
    color: var(--success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.table thead {
    background: var(--gray-50);
    position: relative;
}

.table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
    position: relative;
}

.table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
    color: var(--gray-800);
    background: white;
}

.table tbody tr {
    transition: none;
    position: relative;
}

.table tbody tr:not(:last-child) td {
    border-bottom: 1px solid rgba(14, 165, 233, 0.05);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table tbody tr:hover td {
    color: var(--gray-900);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

/* Forms - Material Design Style */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.form-group.full-width {
    grid-template-columns: 1fr;
}

.form-group.full-width .form-label {
    margin-bottom: 0.75rem;
}

.form-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-top: 0.75rem;
    position: relative;
    white-space: nowrap;
}

.form-label.required::after {
    content: '*';
    color: var(--danger);
    margin-left: 0.25rem;
    font-weight: 700;
}

.form-input,
.form-select,
.form-textarea,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid var(--gray-300) !important;
    border-radius: 0.5rem !important;
    font-size: 0.9375rem !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    background: white !important;
    color: var(--gray-900) !important;
    min-height: 2.75rem !important;
    line-height: 1.5 !important;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--primary-500) !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
    background: white !important;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--gray-400);
}

.form-input:not(:placeholder-shown),
.form-select:not([value=""]),
.form-textarea:not(:placeholder-shown) {
    border-color: var(--gray-400);
    background: white;
}

/* Select2 Customization */
.select2-container {
    width: 100% !important;
    font-size: 1rem !important;
}

.select2-container--default .select2-selection--single {
    height: 3.5rem !important;
    display: flex !important;
    align-items: center !important;
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%) !important;
    border: 2px solid var(--gray-300) !important;
    border-radius: 0.75rem !important;
    padding: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: var(--primary-light) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 3.5rem !important;
    padding-left: 1.5rem !important;
    padding-right: 2.5rem !important;
    color: var(--gray-900) !important;
    font-size: 1rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 3.5rem !important;
    right: 1rem !important;
    width: 2rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--gray-500) transparent transparent transparent !important;
    border-width: 8px 6px 0 6px !important;
    margin-top: -4px !important;
    transition: all 0.3s ease !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--primary-500) transparent !important;
    border-width: 0 6px 8px 6px !important;
    margin-top: -4px !important;
}

.select2-container--default .select2-selection--multiple {
    min-height: 3.5rem !important;
    padding: 0.5rem !important;
    border: 2px solid rgba(14, 165, 233, 0.2) !important;
    border-radius: 0.75rem !important;
    background: white !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.select2-container--default .select2-selection--multiple:hover {
    border-color: var(--primary-400) !important;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--gradient-primary) !important;
    border: none !important;
    border-radius: 0.5rem !important;
    padding: 0.625rem 1rem !important;
    color: white !important;
    font-size: 0.875rem !important;
    margin: 0.25rem !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.2s !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white !important;
    margin-right: 0.5rem !important;
    font-weight: 700 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.select2-dropdown {
    border: 2px solid rgba(14, 165, 233, 0.2) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 4px 20px rgba(14, 165, 233, 0.15) !important;
    margin-top: 0.5rem !important;
    overflow: hidden !important;
    background: white !important;
    backdrop-filter: blur(20px) !important;
    animation: slideDown 0.3s ease-out !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.select2-results__option {
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-left: 3px solid transparent !important;
    color: var(--gray-800) !important;
    background: white !important;
}

.select2-results__option:hover {
    background: var(--primary-50) !important;
    border-left-color: var(--primary-500) !important;
    padding-left: 1.75rem !important;
    color: var(--primary-700) !important;
    transform: translateX(4px);
}

.select2-results__option--highlighted {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-left-color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3) !important;
}

.select2-results__option[aria-selected="true"] {
    background: var(--primary-100) !important;
    color: var(--primary-700) !important;
    font-weight: 700 !important;
    border-left-color: var(--primary-500) !important;
}

/* Select2 Search Field */
.select2-search--dropdown {
    padding: 1rem !important;
    background: white !important;
    border-bottom: 1px solid rgba(14, 165, 233, 0.1) !important;
}

.select2-search--dropdown .select2-search__field {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 2px solid rgba(14, 165, 233, 0.2) !important;
    border-radius: 0.5rem !important;
    font-size: 0.9375rem !important;
    color: var(--gray-900) !important;
    background: var(--gray-50) !important;
    outline: none !important;
    transition: all 0.3s ease !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary-500) !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1) !important;
}

.select2-search--dropdown .select2-search__field::placeholder {
    color: var(--gray-400) !important;
}

/* Select2 Results Container */
.select2-results {
    background: white !important;
    max-height: 300px !important;
    overflow-y: auto !important;
}

.select2-results__options {
    padding: 0.5rem 0 !important;
}

.select2-results__message {
    padding: 1rem 1.5rem !important;
    color: var(--gray-600) !important;
    font-size: 0.9375rem !important;
    background: white !important;
}

/* Select2 Loading */
.select2-results__option--loading {
    background: white !important;
    color: var(--gray-600) !important;
    padding: 1rem 1.5rem !important;
}

/* Select2 Scrollbar Styling */
.select2-results::-webkit-scrollbar {
    width: 8px !important;
}

.select2-results::-webkit-scrollbar-track {
    background: var(--gray-100) !important;
    border-radius: 4px !important;
}

.select2-results::-webkit-scrollbar-thumb {
    background: var(--primary-300) !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.select2-results::-webkit-scrollbar-thumb:hover {
    background: var(--primary-500) !important;
}

/* Normal Select Elements */
select.form-select {
    background-color: white !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334151' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px !important;
    padding-right: 2.5rem !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    color: var(--gray-900) !important;
}

select.form-select option {
    background: white !important;
    color: var(--gray-900) !important;
    padding: 0.75rem 1rem !important;
}

select.form-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230ea5e9' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
}

.form-input:not(:placeholder-shown) + .form-label-floating,
.form-input:focus + .form-label-floating {
    transform: translateY(-1.5rem) scale(0.85);
    color: var(--primary);
}

.form-label-floating {
    position: absolute;
    left: 1.25rem;
    top: 1rem;
    color: var(--gray-500);
    font-size: 0.9375rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    padding: 0 0.25rem;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    padding: 0.75rem 1rem !important;
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row > .form-group {
    grid-template-columns: 200px 1fr;
    margin-bottom: 0;
}

.form-floating {
    position: relative;
}

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

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.form-check-input:checked {
    background: var(--gradient-primary);
    border-color: var(--primary);
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--gray-700);
    cursor: pointer;
}

.input-group {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
}

.input-group-text {
    padding: 1.125rem 1.25rem;
    background: var(--gradient-primary);
    border: 2px solid rgba(0, 217, 255, 0.5);
    border-right: none;
    border-radius: 0.75rem 0 0 0.75rem;
    color: white;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    box-shadow: var(--glow-primary);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.input-group-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.input-group:hover .input-group-text::before {
    left: 100%;
}

.input-group:hover .input-group-text {
    background: var(--gray-200);
}

.input-group .form-input {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: none !important;
    flex: 1;
}

.input-group .form-input:focus {
    border-left: 1px solid var(--primary-500) !important;
}

.input-group .form-input:focus + .input-group-text,
.input-group:focus-within .input-group-text {
    border-color: var(--primary-500);
    background: var(--primary-50);
    color: var(--primary-700);
}

.input-group .input-group-text + .form-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

/* Material Design Input with Icon */
.form-input-with-icon {
    position: relative;
}

.form-input-with-icon i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.125rem;
    pointer-events: none;
    z-index: 1;
}

.form-input-with-icon .form-input {
    padding-left: 3.5rem !important;
}

.form-input-with-icon .form-input:focus + i,
.form-input-with-icon .form-input:not(:placeholder-shown) + i {
    color: var(--primary);
}

/* Modal - Full Screen Modern Tasarım */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    padding: 0;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
    box-shadow: none;
    animation: slideUp 0.3s;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

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

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    color: #1e293b;
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #1e293b;
}

.modal-close {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: #f8fafc;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.modal-lg .modal-content,
.modal-xl .modal-content {
    max-width: 100%;
}

/* Form İyileştirmeleri */
.modal-body .form-group {
    margin-bottom: 1.5rem;
}

.modal-body .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
    display: block;
}

.modal-body .form-label.required::after {
    content: ' *';
    color: #ef4444;
}

.modal-body .form-control,
.modal-body .form-select {
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.modal-body .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-body .input-group {
    display: flex;
    align-items: stretch;
}

.modal-body .input-group-text {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-right: none;
    border-radius: 0.5rem 0 0 0.5rem;
    padding: 0.625rem 0.875rem;
    color: #64748b;
}

.modal-body .input-group .form-control {
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
}

.modal-body .input-group .form-control:focus {
    border-left: 1px solid #6366f1;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column-reverse;
    }
    
    .modal-footer button {
        width: 100%;
    }
    
    .modal-body .form-row {
        grid-template-columns: 1fr;
    }
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.badge-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.badge-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.badge-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: var(--gradient-warm);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.badge-info {
    background: var(--gradient-info);
    color: white;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

/* Filters */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--gray-300);
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
    }

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

    .sidebar-toggle {
        display: block;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-search {
        max-width: none;
    }

    .page-content {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .form-group {
        grid-template-columns: 1fr !important;
    }

    .form-group .form-label {
        margin-bottom: 0.5rem;
        margin-top: 0;
    }

    #islemForm {
        grid-template-columns: 1fr !important;
    }

    .table-container {
        overflow-x: auto;
    }

    .table {
        min-width: 800px;
    }

    .card {
        padding: 1.5rem;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .form-input,
    .form-select,
    .form-textarea,
    .select2-container--default .select2-selection--single,
    .select2-container--default .select2-selection--multiple {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .card {
        padding: 1rem;
        border-radius: 1rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        width: 100%;
    }

    .stat-card-value {
        font-size: 2rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .input-group-text {
        padding: 1rem 1rem;
        font-size: 1rem;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-item {
        width: 100%;
    }
}

/* Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.hidden { display: none; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
    border: 2px solid var(--gray-100);
}

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

/* Additional Material Design Enhancements */
.form-input:invalid:not(:placeholder-shown),
.form-select:invalid:not([value=""]),
.form-textarea:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input:valid:not(:placeholder-shown),
.form-select:valid:not([value=""]),
.form-textarea:valid:not(:placeholder-shown) {
    border-color: var(--success);
}

/* Enhanced card hover effects */
.card:hover {
    border-color: var(--primary-light);
}

/* Badge Styles */
.badge-success {
    background: var(--gradient-success) !important;
    color: white !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    box-shadow: 0 0 15px rgba(16, 245, 158, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.badge-danger {
    background: var(--gradient-danger) !important;
    color: white !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.badge-warning {
    background: var(--gradient-warm) !important;
    color: white !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    box-shadow: 0 0 15px rgba(255, 176, 32, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.badge-info {
    background: var(--gradient-primary) !important;
    color: white !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* DataTables Customization */
.dataTables_wrapper {
    padding: 0;
    font-family: inherit;
}

.dataTables_wrapper .table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dataTables_wrapper .table-header-left,
.dataTables_wrapper .table-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0;
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    padding: 0.625rem 1rem;
    border: 2px solid rgba(14, 165, 233, 0.2);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.3s ease;
    background: white;
    color: var(--gray-900);
    min-height: 2.75rem;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
    background: var(--primary-50);
}

.dataTables_wrapper .dataTables_filter {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dataTables_wrapper .dataTables_filter {
    position: relative;
}

.dataTables_wrapper .dataTables_filter label {
    position: relative;
}

.dataTables_wrapper .dataTables_filter input {
    padding-left: 2.5rem;
    min-width: 250px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.dataTables_wrapper .dataTables_filter label::after {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    z-index: 2;
    pointer-events: none;
}

.dataTables_wrapper .dataTables_filter input::placeholder {
    color: var(--gray-400);
}

.dataTables_wrapper .dataTables_filter label {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dataTables_wrapper .dataTables_info {
    padding: 1rem 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate {
    padding: 1rem 0.5rem;
    margin-top: 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 2px solid rgba(14, 165, 233, 0.2);
    border-radius: 0.5rem;
    color: var(--gray-700) !important;
    background: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-50) !important;
    border-color: var(--primary-400) !important;
    color: var(--primary-700) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--gradient-primary) !important;
    border-color: var(--primary-500) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    transform: none;
    box-shadow: none;
}


.dataTables_wrapper .table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem 0.5rem 0;
    border-top: 1px solid rgba(14, 165, 233, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

/* DataTables sorting icons */
.dataTables_wrapper .table th.sorting,
.dataTables_wrapper .table th.sorting_asc,
.dataTables_wrapper .table th.sorting_desc {
    cursor: pointer;
    position: relative;
    padding-right: 2.5rem;
}

.dataTables_wrapper .table th.sorting::after,
.dataTables_wrapper .table th.sorting_asc::after,
.dataTables_wrapper .table th.sorting_desc::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.dataTables_wrapper .table th.sorting::after {
    border-top: 6px solid var(--gray-400);
    border-bottom: none;
    margin-top: -2px;
}

.dataTables_wrapper .table th.sorting_asc::after {
    border-bottom: 6px solid var(--primary-500);
    border-top: none;
}

.dataTables_wrapper .table th.sorting_desc::after {
    border-top: 6px solid var(--primary-500);
    border-bottom: none;
}

.dataTables_wrapper .table th.sorting:hover {
    background: var(--primary-100);
}

/* DataTables loading overlay */
.dataTables_processing {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-300);
    border-radius: 0.75rem;
    color: var(--primary-700);
    font-weight: 600;
    padding: 1rem 2rem !important;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.2);
}
