/* Modern Business Management System Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Kanit:wght@300;400;500;600;700&display=swap');

:root {
    /* Enhanced Color Palette */
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #a78bfa;
    --secondary-color: #f7fafc;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;
    --info-color: #4299e1;
    --dark-color: #1a202c;
    --light-color: #ffffff;

    /* Text Colors */
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-muted: #a0aec0;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;

    /* Border & Shadows */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 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);

    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    --gradient-warning: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    --gradient-danger: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    --gradient-info: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    --gradient-bg: linear-gradient(135deg, #f7fafc 0%, #edf2f7 50%, #e2e8f0 100%);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    transition: all var(--transition-normal);
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.1;
    }
}

/* Navigation Styles */
.navbar {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(90, 103, 216, 0.9)) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 1rem 0;
    transition: all var(--transition-normal);
    position: relative;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.05;
    z-index: -1;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar-brand i {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    margin: 0 0.25rem;
    text-shadow: none;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
    text-shadow: none;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 0.75rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Enhanced Card Styles */
.card {
    border: none;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-md);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.card:hover::before {
    opacity: 1;
}

/* Glass Card Variant */
.card.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Floating Card Animation */
.card.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.card-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(79, 70, 229, 0.05));
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

/* Enhanced Dashboard Cards */
.dashboard-card {
    background: var(--gradient-primary);
    color: white;
    border-radius: 1.25rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.dashboard-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.dashboard-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.dashboard-card:hover::after {
    transform: translateX(100%);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

.dashboard-card.success {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.dashboard-card.warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
}

.dashboard-card.danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
}

.dashboard-card.info {
    background: linear-gradient(135deg, var(--info-color), #2563eb);
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stats-card.success {
    border-left-color: var(--success-color);
}

.stats-card.warning {
    border-left-color: var(--warning-color);
}

.stats-card.danger {
    border-left-color: var(--danger-color);
}

.stats-card.info {
    border-left-color: var(--info-color);
}

.stats-card h3 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.stats-card p {
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* Enhanced Button Styles */
.btn {
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-normal);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.025em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}



/* Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color), #2563eb);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
    color: var(--text-primary);
}

/* Form Styles */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: white;
}

.form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.form-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.5rem;
    border: none;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: white;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Table Styles */
.table {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
}

.table thead th {
    background: var(--secondary-color);
    border: none;
    font-weight: 600;
    color: var(--text-primary);
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.table tbody td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.table-responsive {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
}

.bg-success {
    background: var(--success-color) !important;
}

.bg-warning {
    background: var(--warning-color) !important;
}

.bg-danger {
    background: var(--danger-color) !important;
}

.bg-info {
    background: var(--info-color) !important;
}

.bg-secondary {
    background: var(--text-secondary) !important;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left-color: var(--success-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border-left-color: var(--warning-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left-color: var(--danger-color);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border-left-color: var(--info-color);
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.login-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.75rem;
}

/* Icon Styles */
.icon-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .login-card {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    .stats-card h3 {
        font-size: 1.5rem;
    }

    .dashboard-card {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .card-header {
        padding: 1rem;
    }
}



/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
    transition: transform 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* E
nhanced Animations */
.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation */
.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5) {
    animation-delay: 0.5s;
}

.card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Enhanced Form Styles */
.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: var(--bg-primary);
    transform: translateY(-1px);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Enhanced Table Styles */
.table-responsive {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.table {
    background: transparent;
    margin-bottom: 0;
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 700;
    padding: 1.25rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    position: relative;
}

.table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.table tbody td {
    border: none;
    padding: 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    background: var(--bg-primary);
}

.table tbody tr {
    transition: all var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--glass-bg) !important;
    transform: scale(1.01);
}

/* Enhanced Alert Styles */
.alert {
    border: none;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.alert-success::before {
    background: var(--gradient-success);
}

.alert-warning::before {
    background: var(--gradient-warning);
}

.alert-danger::before {
    background: var(--gradient-danger);
}

.alert-info::before {
    background: var(--gradient-info);
}

/* Enhanced Badge Styles */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 1rem;
    background: var(--border-color);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: var(--gradient-primary);
    border-radius: 1rem;
    transition: width 1s ease-in-out;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Tooltip Enhancements */
.tooltip {
    font-size: 0.8rem;
}

.tooltip-inner {
    background: var(--dark-color);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    box-shadow: var(--shadow-lg);
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-2xl);
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 1.5rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 1rem;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 1rem;
    transition: all var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, var(--border-color) 25%, var(--border-light) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
        border-radius: 1rem;
    }

    .dashboard-card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding: 0.75rem;
    }

    .card-body {
        padding: 1rem;
    }

    .dashboard-card {
        padding: 1rem;
    }


}

/* Print Styles */
@media print {

    .navbar,
    .btn,
    .dropdown,
    .theme-toggle {
        display: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    body {
        background: white !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --text-secondary: #f7f7f7;
        --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Custom Utility Classes */
.text-gradient {
    color: white !important;
    font-weight: 600;
    text-shadow: none;
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.pulse {
    animation: pulse 2s infinite;
}

.bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        transform: translate3d(0, -30px, 0);
    }

    70% {
        transform: translate3d(0, -15px, 0);
    }

    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* Success Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: var(--success-color);
    stroke-miterlimit: 10;
    margin: 10% auto;
    box-shadow: inset 0px 0px 0px var(--success-color);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.success-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--success-color);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px var(--success-color);
    }
}

/* E
nhanced Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.notification {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    transform: translateX(100%);
    transition: all var(--transition-normal);
}

.notification.slide-in-right {
    animation: slideInRight 0.3s ease-out forwards;
}

.notification.slide-out-right {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.75rem;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification-success .notification-icon {
    background: var(--gradient-success);
    color: white;
}

.notification-danger .notification-icon {
    background: var(--gradient-danger);
    color: white;
}

.notification-warning .notification-icon {
    background: var(--gradient-warning);
    color: white;
}

.notification-info .notification-icon {
    background: var(--gradient-info);
    color: white;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.85rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.notification-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    width: 0;
    transition: width linear;
}

.notification-progress-active {
    animation: notificationProgress linear forwards;
}

@keyframes notificationProgress {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}

/* Enhanced Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow);
}

[data-theme="dark"] .loading-overlay {
    background: rgba(26, 32, 44, 0.95);
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.loading-spinner-large {
    width: 80px;
    height: 80px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.loading-steps {
    text-align: left;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    opacity: 0.5;
    transition: all var(--transition-normal);
}

.loading-step.active {
    opacity: 1;
}

.loading-step.completed {
    opacity: 1;
}

.loading-step.completed .loading-step-icon {
    color: var(--success-color);
}

.loading-step-icon {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
    transition: color var(--transition-normal);
}

.loading-step-text {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Enhanced Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    margin-top: 0.25rem;
}

.search-suggestions.active {
    opacity: 1;
    transform: translateY(0);
}

.search-suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion:hover {
    background: var(--secondary-color);
}

.search-suggestion.loading {
    cursor: default;
    color: var(--text-secondary);
}

/* Enhanced Table Styles */
.table-row-hover {
    background: var(--glass-bg) !important;
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

.table-row-selected {
    background: rgba(102, 126, 234, 0.1) !important;
    border-left: 3px solid var(--primary-color);
}

.table th.sort-asc,
.table th.sort-desc {
    background: var(--primary-dark) !important;
}

.bulk-actions {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 1000;
}

.bulk-actions.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bulk-actions-text {
    font-weight: 600;
    color: var(--text-primary);
}

.selected-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

/* Enhanced Form Validation */
.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.1);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 4px rgba(245, 101, 101, 0.1);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--danger-color);
    font-weight: 500;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--success-color);
    font-weight: 500;
}

/* Floating Labels */
.form-floating {
    position: relative;
}

.form-floating>.form-control,
.form-floating>.form-select {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
}

.form-floating>label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    z-index: 2;
    background: transparent;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    z-index: 3;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        margin-bottom: 0.5rem;
    }

    .loading-overlay {
        padding: 1rem;
    }

    .loading-content {
        padding: 1rem;
    }

    .bulk-actions {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        transform: translateY(100px);
    }

    .bulk-actions.active {
        transform: translateY(0);
    }

    .search-suggestions {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 1rem 1rem 0 0;
        max-height: 50vh;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {

    .notification,
    .loading-overlay,
    .search-suggestions,
    .bulk-actions {
        transition: none;
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .notification {
        border: 2px solid var(--text-primary);
    }

    .search-suggestions {
        border: 2px solid var(--text-primary);
    }

    .bulk-actions {
        border: 2px solid var(--text-primary);
    }
}

/* Print Styles */
@media print {

    .notification-container,
    .loading-overlay,
    .search-suggestions,
    .bulk-actions {
        display: none !important;
    }
}

/* Custom Scrollbar for Suggestions */
.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: transparent;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Smooth Transitions for Theme Changes */
* {
    transition: background-color var(--transition-normal),
        color var(--transition-normal),
        border-color var(--transition-normal);
}

/* Focus Indicators */
.notification-close:focus,
.search-suggestion:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading State for Buttons */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Hover Effects */
.card-hover-effect {
    transition: all var(--transition-normal);
    cursor: pointer;
}

.card-hover-effect:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.card-hover-effect:hover::before {
    opacity: 1;
}

/* Gradient Text Animation */
.text-gradient-animated {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Enhanced Report Page Styles */
.category-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 400px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.empty-state {
    padding: 3rem 2rem;
}

.empty-state-icon {
    animation: float 3s ease-in-out infinite;
}

/* Enhanced Dashboard Cards for Reports */
.dashboard-card .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Progress Indicators */
.progress-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.progress-indicator .progress {
    flex: 1;
    height: 4px;
}

.progress-indicator .progress-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: right;
}

/* Enhanced Form Floating Labels */
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Chart Type Buttons */
.btn-group .btn {
    border-radius: 0.5rem !important;
    margin: 0 2px;
    transition: all var(--transition-normal);
}

.btn-group .btn.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    transform: scale(1.05);
}

/* Enhanced Table Hover Effects */
.table-hover tbody tr:hover {
    background: var(--glass-bg) !important;
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-left: 3px solid var(--primary-color);
}

/* Staggered Animations for Table Rows */
.table tbody tr.animate-in:nth-child(1) {
    animation-delay: 0.1s;
}

.table tbody tr.animate-in:nth-child(2) {
    animation-delay: 0.2s;
}

.table tbody tr.animate-in:nth-child(3) {
    animation-delay: 0.3s;
}

.table tbody tr.animate-in:nth-child(4) {
    animation-delay: 0.4s;
}

.table tbody tr.animate-in:nth-child(5) {
    animation-delay: 0.5s;
}

/* Enhanced Modal Styles */
.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Quick Report Buttons */
.modal-body .btn {
    transition: all var(--transition-normal);
}

.modal-body .btn:hover {
    transform: translateX(8px);
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* Enhanced Tooltips */
.tooltip {
    font-size: 0.8rem;
}

.tooltip-inner {
    background: var(--dark-color);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    box-shadow: var(--shadow-lg);
    max-width: 200px;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--dark-color);
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--dark-color);
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: var(--dark-color);
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: var(--dark-color);
}

/* Responsive Enhancements for Reports */
@media (max-width: 768px) {
    .dashboard-card .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .dashboard-card .icon-circle {
        align-self: center;
    }

    .chart-legend {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        margin: 2px 0;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

    .modal-body .btn {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .dashboard-card {
        padding: 1.5rem;
    }

    .dashboard-card h2 {
        font-size: 1.5rem;
    }

    .chart-container {
        height: 300px;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .category-indicator {
        width: 8px;
        height: 8px;
    }
}

/* Print Styles for Reports */
@media print {

    .btn,
    .dropdown,
    .modal,
    .tooltip {
        display: none !important;
    }

    .card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .dashboard-card {
        background: white !important;
        color: black !important;
    }

    .table {
        font-size: 0.8rem;
    }

    .chart-container {
        height: 300px;
    }
}

/* Dark Mode Specific Styles */
[data-theme="dark"] .category-indicator {
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .progress {
    background: var(--border-color);
}

[data-theme="dark"] .table tbody tr:hover {
    background: var(--secondary-color) !important;
}

[data-theme="dark"] .modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

/* Accessibility Enhancements */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .dashboard-card,
    .card,
    .btn,
    .table tbody tr,
    .modal-content {
        animation: none !important;
        transition: none !important;
    }

    .empty-state-icon {
        animation: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .category-indicator {
        border: 2px solid currentColor;
    }

    .progress-bar {
        border: 1px solid currentColor;
    }

    .dashboard-card {
        border: 2px solid currentColor;
    }
}

/* Custom Focus Styles */
.table tbody tr:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.btn-group .btn:focus {
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

/* Enhanced Loading States */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.card.loading {
    position: relative;
    overflow: hidden;
}

.card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 1.5s infinite;
}

/* Success States */
.form-control.success {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.btn.success {
    background: var(--gradient-success) !important;
    border-color: var(--success-color) !important;
}

/* Error States */
.form-control.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.btn.error {
    background: var(--gradient-danger) !important;
    border-color: var(--danger-color) !important;
    animation: shake 0.5s ease-in-out;
}

/* Enhanced Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

/* Floating Elements Animation */
.floating-element {
    position: absolute;
    animation: floatSlow 8s ease-in-out infinite;
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Theme Toggle for Login */
.theme-toggle-login {
    border-radius: 50% !important;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    color: white !important;
    transition: all var(--transition-normal);
}

.theme-toggle-login:hover {
    transform: rotate(180deg) scale(1.1);
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Enhanced Login Card */
.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: var(--shadow-2xl);
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--glass-border);
    animation: slideInUp 0.8s ease-out;
}

/* Logo Container */
.logo-container {
    position: relative;
    display: inline-block;
}

.logo-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: logoPulse 2s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes logoPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
}

.login-logo {
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Login Stats */
.login-stats {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

/* Enhanced Form Controls */
.form-floating>.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-floating>.form-control:focus {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.form-floating>label {
    color: var(--text-secondary);
    font-weight: 600;
    padding: 1.25rem 1rem;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--primary-color);
    font-weight: 700;
}

/* Password Toggle */
.password-toggle {
    color: var(--text-secondary) !important;
    transition: all var(--transition-normal);
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

.password-toggle.active {
    background: rgba(102, 126, 234, 0.15) !important;
    color: var(--primary-color) !important;
}

/* Remember Me Checkbox */
.form-check-input {
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    transition: all var(--transition-normal);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.form-check-label {
    color: var(--text-primary);
    font-weight: 500;
}

/* Enhanced Demo Accounts */
.demo-accounts {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-header h6 {
    color: var(--text-primary);
    font-weight: 700;
}

.btn-demo {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1rem 0.75rem;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    min-height: 80px;
}

.btn-demo:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-demo-admin:hover {
    background: var(--gradient-danger);
    border-color: var(--danger-color);
}

.btn-demo-hr:hover {
    background: var(--gradient-info);
    border-color: var(--info-color);
}

.btn-demo-store:hover {
    background: var(--gradient-warning);
    border-color: var(--warning-color);
}

.btn-demo-finance:hover {
    background: var(--gradient-success);
    border-color: var(--success-color);
}

.demo-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.demo-role {
    font-weight: 700;
    font-size: 0.9rem;
}

.demo-text small {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Security Badge */
.security-badge {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.security-item {
    text-align: center;
}

.security-item i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    display: block;
}

.security-item small {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Login Progress */
.login-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 1rem 1rem;
    width: 0;
    animation: loginProgress 3s ease-in-out forwards;
}

@keyframes loginProgress {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* Enhanced Button Ripple */
.btn-ripple-active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Form Validation States */
.form-control.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.15);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2348bb78' d='m2.3 6.73.94-.94 2.94 2.94L8.5 6.4l.94.94L6.5 10.27z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 4px rgba(245, 101, 101, 0.15);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23f56565'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4M8.2 4.6l-2.4 2.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}



/* Mobile Responsive */
@media (max-width: 768px) {
    .login-card {
        margin: 1rem;
        padding: 2rem 1.5rem;
        max-width: none;
    }

    .floating-element {
        display: none;
    }

    .theme-toggle-login {
        width: 40px;
        height: 40px;
    }

    .demo-accounts {
        padding: 1rem;
    }

    .btn-demo {
        padding: 0.75rem 0.5rem;
        min-height: 70px;
    }

    .demo-icon {
        font-size: 1rem;
    }

    .demo-role {
        font-size: 0.8rem;
    }

    .demo-text small {
        font-size: 0.65rem;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 1.5rem 1rem;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .security-badge .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-demo {
        min-height: 60px;
        padding: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .login-container {
        background: white !important;
    }

    .floating-element,
    .theme-toggle-login,
    .demo-accounts,
    .security-badge {
        display: none !important;
    }
}

/* Accessibility */
.login-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .floating-element,
    .login-logo,
    .logo-pulse,
    .login-card {
        animation: none !important;
    }

    .btn-demo:hover {
        transform: none !important;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    .login-card {
        border: 3px solid var(--text-primary);
    }

    .form-control {
        border: 2px solid var(--text-primary);
    }

    .btn-demo {
        border: 2px solid var(--text-primary);
    }
}

/* Missing C
SS for enhanced features */

/* Notification System Enhancements */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.notification {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    transform: translateX(100%);
    transition: all var(--transition-normal);
}

.notification.slide-in-right {
    animation: slideInRight 0.3s ease-out forwards;
}

.notification.slide-out-right {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.75rem;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification-success .notification-icon {
    background: var(--gradient-success);
    color: white;
}

.notification-danger .notification-icon {
    background: var(--gradient-danger);
    color: white;
}

.notification-warning .notification-icon {
    background: var(--gradient-warning);
    color: white;
}

.notification-info .notification-icon {
    background: var(--gradient-info);
    color: white;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.notification-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    width: 0;
    transition: width linear;
}

.notification-progress-active {
    animation: notificationProgress linear forwards;
}

@keyframes notificationProgress {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}

/* Loading Overlay Enhancements */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow);
}

[data-theme="dark"] .loading-overlay {
    background: rgba(26, 32, 44, 0.95);
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.loading-spinner-large {
    width: 80px;
    height: 80px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.loading-steps {
    text-align: left;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    opacity: 0.5;
    transition: all var(--transition-normal);
}

.loading-step.active {
    opacity: 1;
}

.loading-step.completed {
    opacity: 1;
}

.loading-step.completed .loading-step-icon {
    color: var(--success-color);
}

.loading-step-icon {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
    transition: color var(--transition-normal);
}

.loading-step-text {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Fix for missing CSS classes */
.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Enhanced button loading state */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        margin-bottom: 0.5rem;
    }

    .loading-overlay {
        padding: 1rem;
    }

    .loading-content {
        padding: 1rem;
    }
}/*
 Mobile Responsive Enhancements for Attendance */
@media (max-width: 768px) {
    /* Mobile attendance cards */
    .attendance-mobile-card {
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 1rem;
        margin-bottom: 0.75rem;
        box-shadow: var(--shadow-md);
        transition: all var(--transition-normal);
    }
    
    .attendance-mobile-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    
    .attendance-mobile-card .card-body {
        padding: 1rem;
    }
    
    .attendance-mobile-card .card-title {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }
    
    .attendance-mobile-card small {
        font-size: 0.8rem;
        color: var(--text-secondary);
    }
    
    .attendance-time-info {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .attendance-time-info i {
        width: 16px;
        text-align: center;
    }
    
    .attendance-time-info strong {
        font-size: 0.9rem;
        color: var(--text-primary);
    }
    
    /* Mobile table improvements */
    .table-responsive {
        border-radius: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile form improvements */
    .form-control, .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.75rem;
    }
    
    /* Mobile button improvements */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
        border-radius: 0.5rem;
    }
    
    .btn i {
        margin-right: 0.25rem;
    }
    
    /* Mobile badge improvements */
    .badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.625rem;
    }
    
    /* Mobile card header */
    .card-header {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Mobile spacing */
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 576px) {
    /* Extra small mobile adjustments */
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .attendance-mobile-card .card-body {
        padding: 0.75rem;
    }
    
    .row.g-2 > * {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .d-flex.align-items-center {
        gap: 0.375rem;
    }
    
    .attendance-time-info strong {
        font-size: 0.85rem;
    }
    
    .attendance-time-info small {
        font-size: 0.7rem;
    }
    
    /* Mobile typography */
    h2 {
        font-size: 1.5rem;
    }
    
    h5 {
        font-size: 1.1rem;
    }
    
    h6 {
        font-size: 0.95rem;
    }
}

/* Status-specific border colors for mobile cards */
.border-success {
    border-left-color: var(--success-color) !important;
}

.border-warning {
    border-left-color: var(--warning-color) !important;
}

.border-danger {
    border-left-color: var(--danger-color) !important;
}

.border-info {
    border-left-color: var(--info-color) !important;
}

.border-secondary {
    border-left-color: var(--text-secondary) !important;
}

.border-4 {
    border-left-width: 4px !important;
}

/* Mobile-specific animations */
@media (max-width: 768px) {
    .card {
        animation: mobileSlideUp 0.3s ease-out;
    }
    
    @keyframes mobileSlideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .attendance-mobile-card:nth-child(1) { animation-delay: 0.1s; }
    .attendance-mobile-card:nth-child(2) { animation-delay: 0.15s; }
    .attendance-mobile-card:nth-child(3) { animation-delay: 0.2s; }
    .attendance-mobile-card:nth-child(4) { animation-delay: 0.25s; }
    .attendance-mobile-card:nth-child(5) { animation-delay: 0.3s; }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px; /* iOS touch target minimum */
        padding: 0.75rem 1rem;
    }
    
    .form-control, .form-select {
        min-height: 44px;
        padding: 0.75rem;
    }
    
    .card {
        cursor: default;
    }
    
    .attendance-mobile-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
}