:root {
    /* Modern 2025 Color Palette */
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --secondary-light: #34d399;
    --secondary-dark: #059669;
    --accent-color: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    --info-color: #3b82f6;

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

    /* Typography */
    --font-family-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-monospace: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Border Radius */
    --border-radius-sm: 0.125rem;
    --border-radius: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem;
    --border-radius-3xl: 2rem;
    --border-radius-full: 9999px;
}

/* Base styles */
body {
    font-family: var(--font-family-sans-serif);
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px; /* For fixed navbar */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

/* Navbar */
.navbar-2025 {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand-2025 {
    font-weight: 700;
    font-size: 1.4rem;
    color: white !important;
}

.navbar-dark .navbar-nav .nav-link-2025 {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link-2025:hover,
.navbar-dark .navbar-nav .nav-link-2025:focus {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Cards */
.card-2025 {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

.card-header-2025 {
    background-color: transparent;
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

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

.card-footer-2025 {
    background-color: transparent;
    border-top: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

/* Stats Cards */
.stats-card-2025 {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.stats-card-2025::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stats-icon-2025 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-value-2025 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stats-label-2025 {
    font-size: 1rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Buttons */
.btn-2025 {
    border-radius: var(--border-radius);
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.btn-primary-2025 {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
}

.btn-primary-2025:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-secondary-2025 {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border: none;
    color: white;
}

.btn-secondary-2025:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
}

.btn-accent-2025 {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    border: none;
    color: white;
}

.btn-accent-2025:hover {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent-color));
}

.btn-outline-2025 {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* Forms */
.form-control-2025 {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control-2025:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-label-2025 {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

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

/* Tables */
.table-2025 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-2025 th {
    font-weight: 600;
    color: var(--gray-700);
    border-top: none;
    border-bottom: 2px solid var(--gray-300);
    padding: 1rem;
    text-align: left;
}

.table-2025 td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid var(--gray-200);
}

.table-2025 tbody tr {
    transition: all 0.3s ease;
}

.table-2025 tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.05);
}

.table-responsive-2025 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--gray-200);
    max-height: 500px;
    overflow-y: auto;
    border-radius: var(--border-radius);
}

/* Custom scrollbar */
.table-responsive-2025::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-responsive-2025::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 10px;
}

.table-responsive-2025::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

/* Charts */
.chart-container-2025 {
    position: relative;
    height: 300px;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

/* Badges */
.badge-2025 {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.badge-secondary-2025 {
    background-color: var(--secondary-color);
    color: white;
}

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

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

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

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

/* Notifications */
.notification-item-2025 {
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    background-color: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--gray-300);
}

.notification-item-2025:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.notification-overdue-2025 {
    border-left-color: var(--danger-color);
}

.notification-pending-2025 {
    border-left-color: var(--warning-color);
}

.notification-upcoming-2025 {
    border-left-color: var(--success-color);
}

/* Login/Register Forms */
.auth-container-2025 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    padding: 2rem;
}

.auth-card-2025 {
    width: 100%;
    max-width: 450px;
    background-color: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.auth-header-2025 {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.auth-body-2025 {
    padding: 2rem;
}

.auth-footer-2025 {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-50);
}

.auth-logo-2025 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-title-2025 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-subtitle-2025 {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Progress Steps for Registration */
.progress-steps-2025 {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.progress-steps-2025::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--gray-300);
    transform: translateY(-50%);
    z-index: 1;
}

.step-2025 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gray-500);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-active-2025 {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step-completed-2025 {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

/* Tabs for Edit Customer */
.tabs-2025 {
    display: flex;
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-2025::-webkit-scrollbar {
    display: none;
}

.tab-2025 {
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: var(--gray-600);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-2025:hover {
    color: var(--primary-color);
}

.tab-active-2025 {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Dark Mode Toggle */
.dark-mode-toggle-2025 {
    width: 50px;
    height: 26px;
    border-radius: 13px;
    background-color: var(--gray-300);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode-toggle-2025.active {
    background-color: var(--primary-color);
}

.dark-mode-toggle-2025::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    transition: all 0.3s ease;
}

.dark-mode-toggle-2025.active::before {
    left: 27px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-2025 {
    animation: fadeIn 0.3s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-card-2025 {
        padding: 1.25rem;
    }

    .stats-value-2025 {
        font-size: 2rem;
    }

    .stats-icon-2025 {
        font-size: 2rem;
    }

    .card-header-2025, .card-body-2025, .card-footer-2025 {
        padding: 1.25rem;
    }

    .auth-card-2025 {
        max-width: 100%;
    }

    .auth-header-2025, .auth-body-2025 {
        padding: 1.5rem;
    }

    .btn-2025 {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .tabs-2025 {
        flex-wrap: nowrap;
    }

    .tab-2025 {
        padding: 0.75rem 1rem;
    }
}

/* Dark Mode Styles */
.dark-mode {
    background-color: var(--gray-900);
    color: var(--gray-100);
}

.dark-mode .card-2025,
.dark-mode .stats-card-2025,
.dark-mode .auth-card-2025,
.dark-mode .notification-item-2025 {
    background-color: var(--gray-800);
    color: var(--gray-100);
}

.dark-mode .card-header-2025 {
    border-bottom-color: var(--gray-700);
}

.dark-mode .card-footer-2025 {
    border-top-color: var(--gray-700);
}

.dark-mode .form-control-2025 {
    background-color: var(--gray-800);
    border-color: var(--gray-700);
    color: var(--gray-100);
}

.dark-mode .table-2025 th {
    color: var(--gray-300);
    border-bottom-color: var(--gray-700);
}

.dark-mode .table-2025 td {
    border-top-color: var(--gray-700);
}

.dark-mode .table-2025 tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

.dark-mode .auth-footer-2025 {
    background-color: var(--gray-800);
    border-top-color: var(--gray-700);
}

.dark-mode .tabs-2025 {
    border-bottom-color: var(--gray-700);
}

.dark-mode .tab-2025 {
    color: var(--gray-400);
}

.dark-mode .tab-2025:hover {
    color: var(--primary-light);
}

.dark-mode .tab-active-2025 {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
}

.dark-mode h1, .dark-mode h2, .dark-mode h3,
.dark-mode h4, .dark-mode h5, .dark-mode h6 {
    color: var(--gray-100);
}

.dark-mode .stats-value-2025 {
    color: var(--gray-100);
}

.dark-mode .stats-label-2025 {
    color: var(--gray-400);
}

/* Fixed Header and Scrollable Content */
.navbar-fixed-2025 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.content-with-fixed-header {
    padding-top: 70px; /* Adjust based on navbar height */
}

/* Custom Scrollbar */
.custom-scrollbar-2025 {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-500) var(--gray-100);
}

.custom-scrollbar-2025::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar-2025::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

.custom-scrollbar-2025::-webkit-scrollbar-thumb {
    background-color: var(--primary-500);
    border-radius: 10px;
    border: 2px solid var(--gray-100);
}

.custom-scrollbar-2025::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-600);
}

.dark-mode .custom-scrollbar-2025 {
    scrollbar-color: var(--primary-400) var(--gray-800);
}

.dark-mode .custom-scrollbar-2025::-webkit-scrollbar-track {
    background: var(--gray-800);
}

.dark-mode .custom-scrollbar-2025::-webkit-scrollbar-thumb {
    background-color: var(--primary-400);
    border: 2px solid var(--gray-800);
}

.dark-mode .custom-scrollbar-2025::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-300);
}

/* Notification Scroll Container */
.notification-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Note Cards */
.note-card-2025 {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.note-header-2025 {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--gray-50);
}

.note-body-2025 {
    padding: 1rem;
}

/* Dark mode for note cards */
.dark-mode .note-card-2025 {
    background-color: var(--gray-800);
}

.dark-mode .note-header-2025 {
    border-bottom-color: var(--gray-700);
    background-color: var(--gray-800);
}
