/* Modern EasyPark Design System */
/* Premium Color Palette with Gradients */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Primary Colors - Vibrant Orange Gradient */
    --primary-orange: #FF6B35;
    --primary-orange-light: #FF8C5A;
    --primary-orange-dark: #E85A2B;
    --primary-gradient: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 50%, #FFA07A 100%);

    /* Secondary Colors - Deep Navy with Purple Tint */
    --navy-blue: #1E3A5F;
    --navy-blue-light: #2A4A7C;
    --navy-blue-dark: #0F1F35;
    --navy-gradient: linear-gradient(135deg, #0F1F35 0%, #1E3A5F 50%, #2A4A7C 100%);

    /* Accent Colors - Vibrant Green */
    --accent-green: #4ECDC4;
    --accent-green-light: #6FE5DC;
    --accent-green-dark: #3DB8AF;
    --green-gradient: linear-gradient(135deg, #3DB8AF 0%, #4ECDC4 50%, #6FE5DC 100%);

    /* Neutral Colors */
    --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;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Admin Layout */
.admin-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--gray-50);
}


/* Sidebar with Glassmorphism */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0F1F35 0%, #1E3A5F 50%, #2A4A7C 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-2xl);
    z-index: 100;
    transition: width var(--transition-slow);
}

/* Collapsed Sidebar State */
.sidebar.collapsed {
    width: 80px;
}

.sidebar::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.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}



.sidebar-header {
    padding: 32px 24px;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    transition: padding var(--transition-slow);
}

.sidebar.collapsed .sidebar-header {
    padding: 32px 12px;
    text-align: center;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.sidebar-header h3 {
    margin: 0;
    color: var(--white);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: font-size var(--transition-slow);
}

.sidebar.collapsed .sidebar-header h3 {
    font-size: 18px;
}


/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(135deg, #F9FAFB 0%, #E5E7EB 100%);
}

/* Top Bar with Glassmorphism */
.top-bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 40px;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    position: relative;
    z-index: 50;
    gap: 20px;
}

/* Sidebar Toggle Button (Hamburger Menu) */
.sidebar-toggle {
    background: var(--primary-gradient);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.sidebar-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.sidebar-toggle:hover::before {
    width: 100px;
    height: 100px;
}

.sidebar-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.sidebar-toggle:active {
    transform: translateY(0);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 18px;
    position: relative;
    z-index: 1;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

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

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

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.user-info:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


.content-area {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom Scrollbar */
.content-area::-webkit-scrollbar {
    width: 10px;
}

.content-area::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.content-area::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange-dark);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 24px 0;
    overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

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

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
}

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

.nav-section-title {
    padding: 12px 24px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-green);
    letter-spacing: 1.5px;
    opacity: 0.8;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    margin: 4px 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-base);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 14px 8px;
    margin: 4px 8px;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform var(--transition-base);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateX(8px);
}

.sidebar.collapsed .nav-item:hover {
    transform: translateX(0) scale(1.05);
}

.nav-item:hover::before {
    transform: scaleY(1);
}

.nav-item.active {
    background: var(--primary-gradient);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-icon {
    margin-right: 14px;
    font-size: 20px;
    transition: transform var(--transition-base);
}

.sidebar.collapsed .nav-icon {
    margin-right: 0;
}

.nav-item:hover .nav-icon {
    transform: scale(1.2) rotate(5deg);
}

.nav-text {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0F1F35 0%, #1E3A5F 50%, #2A4A7C 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    animation: float 6s ease-in-out infinite;
}

.login-container::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.3) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-title {
    text-align: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    font-weight: 800;
    font-size: 32px;
    letter-spacing: -1px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-base);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: var(--gray-400);
}

/* Button Styles */
.btn {
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

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

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

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

.btn-primary:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-block {
    width: 100%;
}

.btn-success {
    background: var(--green-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-700) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

.btn-outline-light {
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    background: transparent;
    box-shadow: none;
}

.btn-outline-light:hover {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

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

/* Alert Styles */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-color: #dc3545;
}

/* Table Styles */
.table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    overflow: visible;
    border: 1px solid var(--gray-200);
}

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

.table thead {
    background: var(--navy-gradient);
    color: var(--white);
}

.table thead th {
    border: none;
    padding: 16px;
    font-weight: 700;
    font-size: 13px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    position: relative;
}

.table thead th:first-child {
    border-top-left-radius: var(--radius-md);
}

.table thead th:last-child {
    border-top-right-radius: var(--radius-md);
}

/* Sortable Column Headers */
.table thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-base);
}

.table thead th.sortable:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.table thead th.sortable:active {
    transform: translateY(0);
}

.table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.05) 0%, rgba(78, 205, 196, 0.05) 100%);
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

.table tbody tr:hover td:first-child::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    animation: slideInLeft 0.3s ease-out;
}

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

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.table tbody td {
    padding: 16px;
    vertical-align: middle;
    position: relative;
    font-size: 14px;
}

/* Table Image Preview */
.table-image-preview {
    margin-top: 24px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(78, 205, 196, 0.08) 100%);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 2px solid rgba(255, 107, 53, 0.2);
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.4s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-preview-header {
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-preview-content {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-content img {
    max-width: 100%;
    max-height: 350px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    object-fit: contain;
    transition: transform var(--transition-base);
}

.image-preview-content img:hover {
    transform: scale(1.05);
}

/* Form Styles */
.form-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--gray-200);
}

.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.form-col {
    flex: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.pagination-info {
    text-align: center;
    margin-top: 12px;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
}

.page-link {
    padding: 10px 16px;
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--navy-blue);
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-base);
    min-width: 44px;
    text-align: center;
}

.page-link:hover {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.page-link.active {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

button.page-link {
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--navy-blue);
}

button.page-link:hover {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
}

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

/* Search and Filter */
.filter-section {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
    border: 1px solid var(--gray-200);
}

.filter-group {
    flex: 1;
    min-width: 220px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.button-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

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

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

.dashboard-card h3 {
    color: var(--navy-blue);
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.chart-container {
    height: 320px;
    position: relative;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 31, 53, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    animation: modalSlideUp 0.4s ease-out;
    border: 1px solid var(--gray-200);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content h3 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 28px;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.5px;
}

/* Image Modal */
.image-modal {
    max-width: 90vw;
    max-height: 90vh;
}

.image-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 2px solid var(--gray-200);
}

.image-modal .modal-header h3 {
    margin: 0;
    background: var(--navy-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.image-modal .btn-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0;
    width: 36px;
    height: 36px;
    line-height: 36px;
    transition: all var(--transition-base);
    border-radius: var(--radius-md);
}

.image-modal .btn-close:hover {
    color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.1);
    transform: rotate(90deg);
}

.image-modal .modal-body {
    padding: 28px;
    text-align: center;
    overflow: auto;
}

.image-preview {
    margin-top: 16px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
}

/* Validation */
.valid.modified:not([type=checkbox]) {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.1);
}

.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.validation-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

/* Error Boundary */
.blazor-error-boundary {
    background: linear-gradient(135deg, #b32121 0%, #8b1a1a 100%);
    padding: 1.2rem 1.2rem 1.2rem 4rem;
    color: var(--white);
    border-radius: var(--radius-md);
    position: relative;
    box-shadow: var(--shadow-xl);
}

.blazor-error-boundary::before {
    content: '⚠';
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
    font-weight: 600;
}

/* Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 240px;
    }

    .content-area {
        padding: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

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

    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .button-group {
        width: 100%;
    }

    .modal-content {
        max-width: 90vw;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 200px;
    }

    .login-box {
        padding: 32px 24px;
    }

    .table-container {
        padding: 16px;
        overflow-x: auto;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    max-width: 33vw;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-content.image-modal {
    max-width: 1200px;
    width: 100%;
}

.modal-header {
    padding: 24px 32px;
    background: var(--primary-gradient);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--navy-blue-dark);
}


.btn-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    line-height: 1;
    padding: 0;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 32px;
    overflow-y: scroll;
    max-height: calc(90vh - 100px);
    flex: 1;
}

.modal-body.image-modal-body {
    display: flex;
    gap: 32px;
    padding: 0;
}

/* Transaction Details Section */
.transaction-details {
    flex: 0 0 300px;
    padding: 24px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.transaction-details::-webkit-scrollbar {
    width: 6px;
}

.transaction-details::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: var(--radius-full);
}

.transaction-details::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.transaction-details::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange-dark);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.detail-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.detail-item label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 0.5px;
    margin: 0;
}

.detail-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    word-break: break-word;
}

/* Transaction Image Section */
.transaction-image {
    flex: 1;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
}

.transaction-image img {
    max-width: 100%;
    max-height: calc(90vh - 250px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    object-fit: contain;
}

/* Responsive Modal */
@media (max-width: 968px) {
    .modal-body.image-modal-body {
        flex-direction: column;
    }

    .transaction-details {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }

    .transaction-image {
        padding: 24px;
    }

    .transaction-image img {
        max-height: 400px;
    }
}

/* Custom Scrollbar for Modal */
.modal-body::-webkit-scrollbar {
    width: 12px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius-md);
}

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

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #E85A2B 0%, #FF6B35 50%, #FF8C5A 100%);
}