/* Modern Clean Design System - ievent.co.il Style */

/* Global Mobile-First Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly interactive elements */
button,
.btn,
input,
select,
textarea,
a,
.clickable {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Custom Variables */
:root {
    /* Clean minimal colors matching ievent.co.il */
    --primary-color: #dc2626;        /* Clean red */
    --primary-light: #ef4444;        /* Light red */
    --secondary-color: #6b7280;      /* Gray */
    --accent-color: #f8fafc;         /* Very light gray */
    
    /* Status colors - minimal */
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --info-color: #0369a1;
    
    /* Background colors - minimal white/gray */
    --bg-primary: #ffffff;           /* Pure white */
    --bg-secondary: #ffffff;         /* Pure white for clean look */
    --bg-tertiary: #f8fafc;          /* Very light gray */
    --light-bg: #ffffff;             /* Pure white */
    
    /* Text colors - minimal */
    --text-primary: #1f2937;         /* Dark gray */
    --text-secondary: #374151;       /* Medium gray */
    --text-muted: #6b7280;           /* Light gray */
    --text-light: #9ca3af;           /* Very light gray */
    
    /* Border colors - minimal */
    --border-color: #e5e7eb;         /* Light border */
    --border-light: #f3f4f6;         /* Very light border */
    --border-dark: #d1d5db;          /* Medium border */
    
    /* Shadows - very subtle for clean look */
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
    --button-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    
    /* Border radius - minimal */
    --border-radius: 8px;            /* Slightly rounded */
    --border-radius-lg: 12px;        /* Medium rounded */
    --border-radius-xl: 16px;        /* Large rounded */
    
    /* Transitions - smooth */
    --transition: all 0.2s ease;
    --transition-fast: all 0.15s ease;
    
    /* Clean gradients for ievent style */
    --primary-gradient: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    --light-gradient: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* RTL Support */
html {
    direction: rtl;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);  /* Pure white background */
    margin: 0;
    padding: 0;
    font-weight: 400;
    letter-spacing: -0.01em;              /* Tighter letter spacing for modern look */
}

/* Navbar RTL Fixes */
.navbar-nav {
    direction: rtl;
}

.navbar-brand {
    margin-left: 0;
    margin-right: 1rem;
}

.dropdown-menu {
    direction: rtl;
    text-align: right;
}

.navbar-toggler {
    margin-left: auto;
    margin-right: 0;
}

/* Center navbar items */
.navbar-nav.mx-auto {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.navbar-nav.mx-auto .nav-item {
    margin: 0 1rem;
}

/* Mobile responsiveness for navbar */
@media (max-width: 991.98px) {
    .navbar-nav.mx-auto {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav.mx-auto .nav-item {
        margin: 0.5rem 0;
    }
}

/* Button Styles */
.btn-modern {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    color: white;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 75vh;
    display: flex;
    align-items: center;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature Cards */
.feature-card {
    transition: var(--transition);
    border-radius: var(--border-radius);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

/* Steps */
.step-number .badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Section */
.cta-section {
    background: var(--primary-gradient);
}

.btn-modern:active {
    transform: translateY(0);
}

.btn-secondary-modern {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary-modern:hover {
    border-color: #4F46E5;
    color: #4F46E5;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-success:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn-warning:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
    color: white;
}

/* Card Styles */
.card-modern {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-header-modern {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: var(--light-bg);
}

.card-body-modern {
    padding: 1.5rem;
}

.card-footer-modern {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: var(--light-bg);
}

/* Form Styles */
.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label-modern {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-input-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Table Styles - Clean ievent Style */
.table-modern {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.table-modern th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

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

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

/* Event Status Badges */
.badge-status {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-active {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.hamburger-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 200px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    margin-top: 0.25rem;
}

.menu-dropdown.show {
    display: block;
}

.menu-dropdown a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.875rem;
    gap: 0.75rem;
}

.menu-dropdown a:hover {
    background-color: var(--bg-tertiary);
    color: var(--primary-color);
}

.menu-dropdown a i {
    color: var(--text-muted);
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.menu-dropdown a:hover i {
    color: var(--primary-color);
}

/* Primary Buttons - Red ievent Style */
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    color: white;
    text-decoration: none;
}

/* Navbar Modern Clean Style */
.navbar {
    background: white !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    background-color: var(--bg-tertiary);
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: white !important;
}

/* Page Headers */
.page-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

/* Alert Styles */
.alert-modern {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Utility Classes for Clean Design */
.text-clean {
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.text-clean-title {
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.text-clean-subtitle {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.bg-clean {
    background-color: var(--bg-primary) !important;
}

.border-clean {
    border: 1px solid var(--border-color) !important;
}

.rounded-clean {
    border-radius: var(--border-radius) !important;
}

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

.shadow-clean-hover:hover {
    box-shadow: var(--card-shadow-hover) !important;
    transition: var(--transition);
}

/* Clean Container Styles */
.container-clean {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.container-clean-lg {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

/* Clean Form Styles */
.form-clean .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-clean .form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 0.875rem;
}

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

.form-clean .form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 0.875rem;
}

.form-clean .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    outline: none;
}

/* Clean Button Variations */
.btn-clean {
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.875rem;
}

.btn-clean:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-tertiary);
}

.btn-clean-outline {
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.875rem;
}

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

/* Clean Card Layout */
.card-clean {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-clean-header {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-clean-body {
    padding: 1.5rem;
}

.card-clean-footer {
    background: var(--bg-tertiary);
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Text Sizing */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .container-clean,
    .container-clean-lg {
        padding: 1.5rem;
    }
    
    .card-clean-header,
    .card-clean-body {
        padding: 1rem;
    }
    
    /* Responsive Tables */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-responsive table {
        min-width: 600px;
    }
    
    /* Mobile-first table approach */
    .table-mobile {
        border: 0;
    }
    
    .table-mobile thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    
    .table-mobile tr {
        background: white;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        display: block;
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .table-mobile td {
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-light);
    }
    
    .table-mobile td:last-child {
        border-bottom: none;
    }
    
    .table-mobile td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        text-transform: uppercase;
        color: var(--text-secondary);
        margin-left: 1rem;
        flex-shrink: 0;
        min-width: 120px;
        text-align: right;
    }
    
    /* Mobile form improvements */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
        border-radius: var(--border-radius);
    }
    
    /* Mobile button improvements */
    .btn {
        padding: 0.75rem 1.5rem;
        border-radius: var(--border-radius);
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile Toast Notifications */
    .mobile-toast {
        animation: slideInFromTop 0.3s ease;
    }
    
    @keyframes slideInFromTop {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
    
    /* Touch feedback */
    .touched {
        transform: scale(0.95);
        opacity: 0.8;
    }
    
    /* Mobile scroll improvements */
    .mobile-scroll {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

/* Additional Mobile Breakpoint for Very Small Screens */
@media (max-width: 480px) {
    .container-clean,
    .container-clean-lg {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .card-clean-header,
    .card-clean-body {
        padding: 0.75rem;
    }
    
    /* Very small table adjustments */
    .table-mobile td:before {
        min-width: 100px;
        font-size: 0.8rem;
    }
    
    .table-mobile td {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
}

.form-input-modern.error {
    border-color: var(--danger-color);
}

.form-input-modern.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-select-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: left 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-left: 2.5rem;
}

.form-select-modern:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-textarea-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    resize: vertical;
    min-height: 100px;
}

.form-textarea-modern:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Alert Styles */
.alert-modern {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Badge Styles */
.badge-modern {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    gap: 0.25rem;
}

.badge-primary {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-secondary {
    background: #f3f4f6;
    color: #374151;
}

/* Loading Styles */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    border-top-color: #4F46E5;
    animation: spin 1s ease-in-out infinite;
}

.loading-spinner-lg {
    width: 2rem;
    height: 2rem;
    border-width: 3px;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    min-width: 200px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: #374151;
}

/* Table Styles */
.table-modern {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.table-modern th {
    background: var(--light-bg);
    padding: 1rem;
    text-align: right;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.table-modern td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background: #f9fafb;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .btn-modern,
    .btn-secondary-modern {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .card-modern {
        margin-bottom: 1rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .table-modern {
        font-size: 0.875rem;
    }
    
    .table-modern th,
    .table-modern td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .form-input-modern,
    .form-select-modern,
    .form-textarea-modern {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.transition-modern {
    transition: var(--transition);
}

.border-modern {
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
}

.bg-gradient-primary {
    background: var(--primary-gradient);
}

.bg-gradient-secondary {
    background: var(--secondary-gradient);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-in-up {
    animation: slideInUp 0.5s ease-out;
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

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

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

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

/* Clean Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--button-shadow);
    min-height: 2.5rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    border-color: var(--border-dark);
    text-decoration: none;
}

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

.btn-success:hover {
    background-color: #047857;
    text-decoration: none;
    color: white;
}

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

.btn-danger:hover {
    background-color: #b91c1c;
    text-decoration: none;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-height: 2rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 3rem;
}

/* Clean Form Elements */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

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

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

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

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

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

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--bg-secondary);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-secondary);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card-modern {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    .btn-modern,
    .btn-secondary-modern {
        background: none !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }
}
