/* Modern Unified Design System for Mad CRM */

/* CSS Custom Properties for Consistency */
:root {
    /* Professional color palette */
    --primary-blue: #2563eb;
    --primary-green: #059669;
    --primary-orange: #ea580c;
    --primary-red: #dc2626;
    --primary-teal: #0d9488;
    --primary-purple: #7c3aed;
    
    /* Neutral colors */
    --light-bg: #f8fafc;
    --white: #ffffff;
    --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;
    
    /* Professional gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-info: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-danger: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    --gradient-secondary: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%);
    
    /* Header gradients */
    --gradient-header-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-header-teal: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
    --gradient-header-purple: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    
    /* Shadows and effects */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
    
    /* Typography improvements */
    --font-size-xs: 0.75rem;   /* 12px */
    --font-size-sm: 0.875rem;  /* 14px */
    --font-size-base: 1rem;    /* 16px */
    --font-size-lg: 1.125rem;  /* 18px */
    --font-size-xl: 1.25rem;   /* 20px */
    --font-size-2xl: 1.5rem;   /* 24px */
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
}

/* Base typography improvements */
body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--gray-700);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--gray-800);
    font-weight: 600;
    line-height: var(--line-height-tight);
}

h1 { font-size: var(--font-size-2xl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }
h4 { font-size: var(--font-size-base); }
h5 { font-size: var(--font-size-sm); }
h6 { font-size: var(--font-size-xs); }

p {
    color: var(--gray-600);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

div, span {
    color: inherit;
}

.page-header-modern,
.page-header-modern h1,
.page-header-modern h2,
.page-header-modern h3,
.page-header-modern h4,
.page-header-modern h5,
.page-header-modern h6,
.page-header-modern p,
.page-header-modern span,
.page-header-modern div,
.page-header-modern small,
.page-header-modern a {
    color: #ffffff;
}

/* Unified Button System with Professional Gradients */
.btn-unified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 1.4;
    border-radius: var(--border-radius);
    border: none;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    cursor: pointer;
    gap: 6px;
}

.btn-unified:hover {
    transform: translateY(-1px);
    box-shadow: var(--card-shadow-hover);
    text-decoration: none;
}

.btn-unified:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button variants with professional gradients */
.btn-unified-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-unified-primary:hover,
.btn-unified-primary:focus {
    background: linear-gradient(135deg, #5a6fd8 0%, #6b4190 100%);
    color: white;
}

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

.btn-unified-success:hover,
.btn-unified-success:focus {
    background: linear-gradient(135deg, #3e9af0 0%, #00dce6 100%);
    color: white;
}

.btn-unified-info {
    background: var(--gradient-info);
    color: white;
}

.btn-unified-info:hover,
.btn-unified-info:focus {
    background: linear-gradient(135deg, #3bd56d 0%, #30e7c9 100%);
    color: white;
}

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

.btn-unified-warning:hover,
.btn-unified-warning:focus {
    background: linear-gradient(135deg, #f8648c 0%, #ffd632 100%);
    color: white;
}

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

.btn-unified-danger:hover,
.btn-unified-danger:focus {
    background: linear-gradient(135deg, #e55555 0%, #d64444 100%);
    color: white;
}

.btn-unified-secondary {
    background: var(--gradient-secondary);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-unified-secondary:hover,
.btn-unified-secondary:focus {
    background: linear-gradient(135deg, #d1f5d9 0%, #c7d7f9 100%);
    color: var(--gray-800);
}

/* Button sizes */
.btn-unified-xs {
    padding: 4px 8px;
    font-size: var(--font-size-xs);
    border-radius: 4px;
}

.btn-unified-sm {
    padding: 6px 12px;
    font-size: var(--font-size-sm);
    border-radius: 6px;
}

.btn-unified-lg {
    padding: 12px 24px;
    font-size: var(--font-size-lg);
    border-radius: var(--border-radius-lg);
}

/* Professional Header Gradients */
.gradient-header {
    background: var(--gradient-header-primary);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.gradient-header-teal {
    background: var(--gradient-header-teal);
}

.gradient-header-purple {
    background: var(--gradient-header-purple);
}

.gradient-header h1,
.gradient-header h2,
.gradient-header h3,
.gradient-header h4,
.gradient-header h5,
.gradient-header h6 {
    color: white;
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.gradient-header p,
.gradient-header span,
.gradient-header div {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-base);
}

/* Professional Cards */
.card-professional {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

/* Stat Cards with Gradients */
.stat-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card-primary::before { background: var(--gradient-primary); }
.stat-card-success::before { background: var(--gradient-success); }
.stat-card-info::before { background: var(--gradient-info); }
.stat-card-warning::before { background: var(--gradient-warning); }
.stat-card-danger::before { background: var(--gradient-danger); }

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Professional Forms */
.form-professional {
    background: var(--white);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--gray-200);
}

.form-professional .form-group {
    margin-bottom: 20px;
}

.form-professional label {
    font-weight: 500;
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    margin-bottom: 6px;
    display: block;
}

.form-professional .form-control {
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 10px 12px;
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.form-professional .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Professional Tables */
.table-professional {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--gray-200);
}

.table-professional thead {
    background: var(--gradient-primary);
}

.table-professional thead th {
    color: white;
    font-weight: 600;
    font-size: var(--font-size-sm);
    padding: 16px 12px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-professional tbody td {
    padding: 12px;
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

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

/* Help Section Improvements */
.help-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #0ea5e9;
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin: 20px 0;
}

.help-section .alert {
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
}

.help-section h4 {
    color: #0c4a6e;
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 12px;
}

.help-section p {
    color: #0c4a6e;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    margin-bottom: 12px;
}

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

.help-section small {
    color: #075985;
    font-size: var(--font-size-sm);
}

/* Tab System Improvements */
.nav-tabs-professional {
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 24px;
}

.nav-tabs-professional li {
    margin-bottom: -2px;
}

.nav-tabs-professional li a {
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-weight: 500;
    font-size: var(--font-size-base);
    padding: 12px 24px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: var(--transition);
}

.nav-tabs-professional li a:hover {
    background: var(--gray-50);
    color: var(--gray-800);
}

.nav-tabs-professional li.active a {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

/* Filter Section */
.filter-section {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
}

.filter-section h4 {
    color: var(--gray-800);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 16px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .btn-unified {
        font-size: var(--font-size-xs);
        padding: 6px 12px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .gradient-header {
        padding: 16px;
    }
    
    .gradient-header h1,
    .gradient-header h2,
    .gradient-header h3 {
        font-size: var(--font-size-lg);
    }
}

/* Animation improvements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* Professional spacing */
.mb-professional { margin-bottom: 24px !important; }
.mt-professional { margin-top: 24px !important; }
.p-professional { padding: 24px !important; }

/* Text improvements */
.text-professional {
    font-size: var(--font-size-base);
    color: var(--gray-700);
    line-height: var(--line-height-normal);
}

.text-professional-sm {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

.text-professional-lg {
    font-size: var(--font-size-lg);
    color: var(--gray-800);
    font-weight: 500;
}

/* ===== UNIFIED DESIGN SYSTEM ===== */

:root {
    /* Primary Brand Colors */
    --primary-blue: #2563eb;
    --primary-green: #059669;
    --primary-orange: #ea580c;
    --primary-red: #dc2626;
    --primary-purple: #7c3aed;
    --primary-teal: #0d9488;
    --primary-indigo: #4f46e5;
    
    /* Background Colors */
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --panel-bg: #fafbfc;
    
    /* Text Colors */
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    
    /* Border Colors */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-dark: #94a3b8;
    
    /* Shadows */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --card-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Spacing */
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --border-radius-lg: 16px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL OVERRIDES ===== */

body {
    background-color: var(--light-bg);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--text-dark);
    line-height: var(--line-height-normal);
}

/* ===== UNIFIED BUTTON SYSTEM ===== */

.btn-unified {
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: 2px solid transparent;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
}

.btn-unified:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-unified:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Primary Button */
.btn-unified-primary {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.btn-unified-primary:hover {
    background: #1d4ed8;
    color: white;
    box-shadow: var(--card-shadow);
}

/* Success Button */
.btn-unified-success {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.btn-unified-success:hover {
    background: #047857;
    color: white;
    box-shadow: var(--card-shadow);
}

/* Warning Button */
.btn-unified-warning {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.btn-unified-warning:hover {
    background: #c2410c;
    color: white;
    box-shadow: var(--card-shadow);
}

/* Danger Button */
.btn-unified-danger {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.btn-unified-danger:hover {
    background: #b91c1c;
    color: white;
    box-shadow: var(--card-shadow);
}

/* Secondary Button */
.btn-unified-secondary {
    background: white;
    color: var(--text-dark);
    border-color: var(--border-medium);
}

.btn-unified-secondary:hover {
    background: var(--light-bg);
    color: var(--text-dark);
    border-color: var(--border-dark);
}

/* Info Button */
.btn-unified-info {
    background: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
}

.btn-unified-info:hover {
    background: #0f766e;
    color: white;
    box-shadow: var(--card-shadow);
}

/* Button Sizes */
.btn-unified-xs {
    padding: 4px 8px;
    font-size: 12px;
}

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

.btn-unified-lg {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: var(--border-radius);
}

/* ===== UNIFIED CARD SYSTEM ===== */

.card-unified {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-unified-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--panel-bg);
}

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

.card-unified-title i {
    color: var(--primary-blue);
}

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

.card-unified-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--panel-bg);
}

/* ===== UNIFIED FORM SYSTEM ===== */

.form-unified {
    margin-bottom: 0;
}

.form-group-unified {
    margin-bottom: 20px;
}

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

.form-control-unified {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background: white;
    color: var(--text-dark);
}

.form-control-unified:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control-unified:disabled {
    background: var(--light-bg);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ===== UNIFIED FILTER SYSTEM ===== */

.filter-section-unified {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.filter-header-unified {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    background: var(--panel-bg);
}

.filter-title-unified {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-body-unified {
    padding: 20px;
}

.filter-actions-unified {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

/* ===== UNIFIED TABLE SYSTEM ===== */

.table-unified {
    width: 100%;
    margin-bottom: 0;
    background: var(--card-bg);
}

.table-unified th {
    background: var(--panel-bg);
    border-bottom: 2px solid var(--border-light);
    padding: 16px 12px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-unified td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table-unified tbody tr:hover {
    background: rgba(37, 99, 235, 0.02);
}

/* ===== UNIFIED STAT CARDS ===== */

.stat-card-unified {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card-unified::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.08;
    transform: translate(30px, -30px);
}

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

.stat-card-unified.primary {
    border-left-color: var(--primary-blue);
}

.stat-card-unified.primary::before {
    background: var(--primary-blue);
}

.stat-card-unified.success {
    border-left-color: var(--primary-green);
}

.stat-card-unified.success::before {
    background: var(--primary-green);
}

.stat-card-unified.warning {
    border-left-color: var(--primary-orange);
}

.stat-card-unified.warning::before {
    background: var(--primary-orange);
}

.stat-card-unified.danger {
    border-left-color: var(--primary-red);
}

.stat-card-unified.danger::before {
    background: var(--primary-red);
}

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

.stat-icon-unified {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stat-icon-unified.primary {
    background: var(--primary-blue);
}

.stat-icon-unified.success {
    background: var(--primary-green);
}

.stat-icon-unified.warning {
    background: var(--primary-orange);
}

.stat-icon-unified.danger {
    background: var(--primary-red);
}

.stat-value-unified {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1;
}

.stat-label-unified {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 500;
}

.stat-change-unified {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stat-change-unified.positive {
    background: #dcfce7;
    color: #166534;
}

.stat-change-unified.negative {
    background: #fef2f2;
    color: #dc2626;
}

.stat-change-unified.neutral {
    background: var(--light-bg);
    color: var(--text-light);
}

/* ===== UNIFIED STATUS SYSTEM ===== */

.status-badge-unified {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* ===== UNIFIED HELP SYSTEM ===== */

.help-section-unified {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--border-radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}

.help-content-unified {
    color: #1e40af;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.help-content-unified h4 {
    color: #1e40af;
    margin-top: 0;
    margin-bottom: 8px;
}

/* ===== UNIFIED PAGINATION ===== */

.pagination-unified {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.pagination-info-unified {
    color: var(--text-light);
    font-size: 14px;
}

.pagination-controls-unified .pagination {
    margin: 0;
}

/* ===== UNIFIED GRID SYSTEM ===== */

.grid-unified {
    display: grid;
    gap: 24px;
}

.grid-unified-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-unified-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-unified-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ===== UNIFIED CONTAINER SYSTEM ===== */

.container-unified {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

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

/* ===== UNIFIED MODAL SYSTEM ===== */

.modal-content-unified {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--card-shadow-lg);
}

.modal-header-unified {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--panel-bg);
}

.modal-title-unified {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.modal-body-unified {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer-unified {
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--panel-bg);
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .container-unified {
        padding: 15px;
    }
    
    .card-unified-header,
    .card-unified-body,
    .modal-header-unified,
    .modal-body-unified {
        padding: 16px;
    }
    
    .grid-unified-2,
    .grid-unified-3,
    .grid-unified-4 {
        grid-template-columns: 1fr;
    }
    
    .filter-actions-unified {
        flex-direction: column;
    }
    
    .stat-value-unified {
        font-size: 1.8rem;
    }
}

/* ===== UTILITY CLASSES ===== */

.text-unified-primary { color: var(--primary-blue) !important; }
.text-unified-success { color: var(--primary-green) !important; }
.text-unified-warning { color: var(--primary-orange) !important; }
.text-unified-danger { color: var(--primary-red) !important; }
.text-unified-dark { color: var(--text-dark) !important; }
.text-unified-light { color: var(--text-light) !important; }
.text-unified-muted { color: var(--text-muted) !important; }

.bg-unified-primary { background-color: var(--primary-blue) !important; }
.bg-unified-success { background-color: var(--primary-green) !important; }
.bg-unified-warning { background-color: var(--primary-orange) !important; }
.bg-unified-danger { background-color: var(--primary-red) !important; }
.bg-unified-light { background-color: var(--light-bg) !important; }
.bg-unified-card { background-color: var(--card-bg) !important; }

.border-unified-light { border-color: var(--border-light) !important; }
.border-unified-medium { border-color: var(--border-medium) !important; }

.shadow-unified { box-shadow: var(--card-shadow) !important; }
.shadow-unified-hover { box-shadow: var(--card-shadow-hover) !important; }
.shadow-unified-lg { box-shadow: var(--card-shadow-lg) !important; }

.rounded-unified { border-radius: var(--border-radius) !important; }
.rounded-unified-sm { border-radius: var(--border-radius-sm) !important; }
.rounded-unified-lg { border-radius: var(--border-radius-lg) !important; } 