/* ===================================
   NLAKAM - Enhanced Design Styles
   Modern, Professional UI Design
   =================================== */

/* Global Body Background - Modern gradient
   Using !important to ensure consistent background across all pages
   and override any conflicting inline or legacy styles */
body {
    background: linear-gradient(135deg, #f0f4f8 0%, #dfe7f0 100%) !important;
    color: #1a202c;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    font-size: clamp(14px, 2vw, 16px);
}

/* Main Content Container */
.container {
    background: transparent;
    padding-top: clamp(16px, 3vw, 24px);
    padding-bottom: clamp(16px, 3vw, 24px);
    max-width: 1400px;
}

/* Container Content Wrapper for better visual structure */
.container.py-4 {
    animation: fadeIn 0.5s ease-in;
}

/* Page Title/Header Section Enhancement */
.container .section-header,
.container header.section-header {
    animation: slideUp 0.6s ease-out;
}

/* Ensure content containers have appropriate backgrounds for readability */
.card, .modal-content {
    background: #ffffff;
    color: #2d3748;
    animation: fadeIn 0.4s ease-in;
}

/* Enhanced Button Styles */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: clamp(8px, 1.5vw, 12px) clamp(14px, 2.5vw, 20px);
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-transform: none;
    letter-spacing: 0.3px;
    font-size: clamp(13px, 1.8vw, 15px);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Primary Button (Green/Success Theme) */
.btn-primary, .btn-success {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white !important;
    border: none;
}

.btn-primary:hover, .btn-success:hover {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    color: white !important;
}

/* Secondary Button */
.btn-secondary {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white !important;
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white !important;
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white !important;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    color: white !important;
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529 !important;
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
    color: #212529 !important;
}

/* Info Button */
.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white !important;
    border: none;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    color: white !important;
}

/* Light Button */
.btn-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #212529 !important;
    border: 1px solid #dee2e6;
}

.btn-light:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #212529 !important;
}

/* Dark Button */
.btn-dark {
    background: linear-gradient(135deg, #343a40 0%, #23272b 100%);
    color: white !important;
    border: none;
}

.btn-dark:hover {
    background: linear-gradient(135deg, #23272b 0%, #1d2124 100%);
    color: white !important;
}

/* Outline Button Variants */
.btn-outline-primary, .btn-outline-success {
    background: transparent;
    color: #16a34a;
    border: 2px solid #16a34a;
}

.btn-outline-primary:hover, .btn-outline-success:hover {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white !important;
    border-color: #16a34a;
}

.btn-outline-secondary {
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white !important;
    border-color: #3b82f6;
}

.btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white !important;
    border-color: #dc3545;
}

/* Button Sizes */
.btn-sm {
    padding: clamp(6px, 1vw, 8px) clamp(10px, 2vw, 14px);
    font-size: clamp(12px, 1.5vw, 14px);
    border-radius: 6px;
}

.btn-lg {
    padding: clamp(12px, 2vw, 16px) clamp(20px, 3vw, 28px);
    font-size: clamp(15px, 2vw, 18px);
    border-radius: 10px;
}

/* Button with Icons */
.btn i, .btn .bi {
    margin-right: 4px;
}

.btn-icon-only {
    padding: 10px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-only i, .btn-icon-only .bi {
    margin-right: 0;
}

/* Enhanced Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: #ffffff;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 50%, #3b82f6 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

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

.card-header {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-bottom: 2px solid rgba(22, 163, 74, 0.15);
    padding: clamp(12px, 2vw, 16px);
    font-weight: 600;
    font-size: clamp(14px, 2vw, 16px);
    color: #16a34a;
}

.card-body {
    padding: clamp(12px, 2.5vw, 20px);
    font-size: clamp(13px, 1.8vw, 15px);
}

.card-footer {
    background: rgba(248, 249, 250, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: clamp(10px, 1.8vw, 14px) clamp(12px, 2.5vw, 20px);
    font-size: clamp(12px, 1.6vw, 14px);
}

/* Enhanced Table Styles */
.table {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: clamp(11px, 1.5vw, 13px);
    letter-spacing: 0.5px;
    padding: clamp(10px, 2vw, 14px) clamp(8px, 1.5vw, 12px);
    border: none;
    position: relative;
}

.table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(22, 163, 74, 0.06) 0%, rgba(22, 163, 74, 0.02) 100%);
    transform: translateX(4px);
}

.table tbody td {
    padding: clamp(8px, 1.5vw, 12px) clamp(8px, 1.5vw, 12px);
    vertical-align: middle;
    font-size: clamp(13px, 1.8vw, 15px);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.015);
}

.table-striped tbody tr:nth-of-type(odd):hover {
    background: linear-gradient(90deg, rgba(22, 163, 74, 0.06) 0%, rgba(22, 163, 74, 0.02) 100%);
}

/* Enhanced Form Styles */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #d1d5db;
    padding: clamp(8px, 1.5vw, 12px) clamp(12px, 2vw, 16px);
    transition: all 0.3s ease;
    font-size: clamp(13px, 1.8vw, 15px);
}

.form-control:focus, .form-select:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 0.2rem rgba(22, 163, 74, 0.15);
    background-color: #fafafa;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: clamp(4px, 1vw, 8px);
    font-size: clamp(13px, 1.8vw, 15px);
}

.input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.input-group-text {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px solid #d1d5db;
    border-right: none;
    color: #16a34a;
    font-weight: 500;
    font-size: clamp(13px, 1.8vw, 15px);
}

.input-group .form-control {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    border-color: #16a34a;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

/* Enhanced Badge Styles */
.badge {
    padding: clamp(4px, 1vw, 6px) clamp(10px, 2vw, 14px);
    border-radius: 6px;
    font-weight: 500;
    font-size: clamp(12px, 1.6vw, 14px);
    letter-spacing: 0.3px;
}

.badge.bg-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
}

/* Enhanced Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    padding: clamp(12px, 2vw, 16px) clamp(14px, 2.5vw, 20px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-weight: 500;
    font-size: clamp(13px, 1.8vw, 15px);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

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

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Enhanced Modal Styles 
 * Z-index hierarchy to prevent Bootstrap conflicts:
 * - Base content: auto/0-999
 * - Navigation elements: 1000-1030  
 * - Modal backdrop: 1040
 * - Modal dialog: 1055
 * Using !important to override Bootstrap's default z-index and ensure modals
 * always appear above all page content including navigation
 */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    pointer-events: auto;
}

.modal-header {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-bottom: 2px solid rgba(22, 163, 74, 0.15);
    padding: clamp(12px, 2vw, 16px) clamp(16px, 2.5vw, 20px);
    border-radius: 20px 20px 0 0;
}

.modal-title {
    font-weight: 600;
    color: #16a34a;
    font-size: clamp(15px, 2.2vw, 18px);
}

.modal-body {
    padding: clamp(16px, 2.5vw, 24px);
    font-size: clamp(13px, 1.8vw, 15px);
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 16px;
}

/* Enhanced Pagination */
.pagination {
    gap: 6px;
}

.page-link {
    border-radius: 8px;
    border: 2px solid #d1d5db;
    color: #16a34a;
    font-weight: 500;
    padding: clamp(6px, 1.2vw, 10px) clamp(12px, 2vw, 16px);
    transition: all 0.3s ease;
    font-size: clamp(13px, 1.8vw, 15px);
}

.page-link:hover {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
    border-color: #16a34a;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    border-color: #16a34a;
}

/* Section Headers */
.section-header {
    margin-bottom: clamp(16px, 3vw, 24px);
    padding-bottom: 12px;
    border-bottom: 3px solid transparent;
    background: linear-gradient(to right, rgba(22, 163, 74, 0.1) 0%, transparent 50%);
    border-radius: 10px;
    padding: clamp(12px, 2vw, 18px) clamp(16px, 2.5vw, 24px);
    position: relative;
    overflow: hidden;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 50%, transparent 100%);
}

.section-header h2, .section-header h3 {
    color: #16a34a;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(16px, 2.5vw, 20px);
}

.section-header h2 i, .section-header h3 i {
    font-size: 1em;
    opacity: 0.8;
}

/* Card with colored left border variants */
.card-border-warning {
    border-left: 4px solid #ffc107 !important;
}

.card-border-danger {
    border-left: 4px solid #dc3545 !important;
}

.card-border-success {
    border-left: 4px solid #28a745 !important;
}

.card-border-info {
    border-left: 4px solid #17a2b8 !important;
}

.card-border-primary {
    border-left: 4px solid #007bff !important;
}

/* Profile Image Styles */
.profile-image-styled {
    width: clamp(100px, 15vw, 140px);
    height: clamp(100px, 15vw, 140px);
    object-fit: cover;
    border: 4px solid #16a34a;
}

.profile-placeholder-styled {
    width: clamp(100px, 15vw, 140px);
    height: clamp(100px, 15vw, 140px);
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
}

/* Action Buttons Group */
.action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex-shrink: 0;
}

/* Responsive Utilities */
/* Mobile devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .btn {
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .btn-sm {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .btn-lg {
        padding: 10px 18px;
        font-size: 15px;
    }
    
    .card {
        border-radius: 10px;
        margin-bottom: 12px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .card-header {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table thead th {
        padding: 8px 6px;
        font-size: 11px;
    }
    
    .table tbody td {
        padding: 8px 6px;
        font-size: 13px;
    }
    
    .section-header h2, .section-header h3 {
        font-size: 16px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .form-control, .form-select {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .form-label {
        font-size: 13px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    body {
        font-size: 14px;
    }
    
    .btn {
        font-size: 13px;
        padding: 9px 16px;
    }
    
    .table thead th {
        font-size: 12px;
        padding: 10px 8px;
    }
    
    .table tbody td {
        font-size: 13px;
        padding: 9px 8px;
    }
    
    .card-header {
        font-size: 15px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    body {
        font-size: 15px;
    }
    
    .btn {
        font-size: 14px;
        padding: 10px 18px;
    }
    
    .table thead th {
        font-size: 12px;
        padding: 11px 10px;
    }
    
    .table tbody td {
        font-size: 14px;
        padding: 10px 10px;
    }
    
    .card-body {
        padding: 16px;
    }
}

/* Legacy responsive support - keeping for backwards compatibility */
@media (max-width: 768px) {
    .action-buttons .btn {
        width: 100%;
        font-size: 13px;
    }
    
    .section-header {
        padding: 10px 14px;
        margin-bottom: 14px;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 20px;
    display: block;
}

/* ===================================
   Additional Modern Enhancements
   =================================== */

/* Smooth Page Transitions - Targeted to avoid performance issues */
.btn, .card, .form-control, .form-select, .alert, .badge, .table tbody tr,
.dropdown-item, .page-link, .nav-link {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Content Area Styling */
.content-area {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Dashboard Stats Cards */
.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
}

.stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.15;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.stat-card .stat-value {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: clamp(12px, 1.6vw, 14px);
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Improved Search and Filter Forms */
.filter-form {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}

.filter-form .form-row {
    margin-bottom: 10px;
}

/* Enhanced Data Tables */
.data-table-wrapper {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.data-table-wrapper .table-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 16px;
    border-bottom: 2px solid #e0e0e0;
}

.data-table-wrapper .table-header h5 {
    margin: 0;
    color: #16a34a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(14px, 2vw, 16px);
}

/* Table Responsive Wrapper Enhancement */
.table-responsive {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    background: #ffffff;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1f4620 0%, #38a169 100%);
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 3px;
    justify-content: flex-end;
}

.table-actions .btn {
    padding: 3px 6px;
    font-size: 0.7rem;
}

/* Badge Pill Variants */
.badge-pill {
    border-radius: 50px;
    padding: 3px 8px;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-active::before {
    background: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.status-pending::before {
    background: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.status-inactive::before {
    background: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* Improved Form Groups */
.form-group-enhanced {
    margin-bottom: 12px;
}

.form-group-enhanced label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}

.form-group-enhanced label i {
    color: #16a34a;
    font-size: clamp(14px, 2vw, 16px);
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 8px;
    height: 20px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 16px;
    right: 16px;
    background: #ffffff;
    border-radius: 10px;
    padding: clamp(10px, 2vw, 14px) clamp(14px, 2.5vw, 18px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    min-width: 280px;
    animation: slideInRight 0.3s ease;
    font-size: clamp(13px, 1.8vw, 15px);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Improved Dropdown Menus */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 6px;
}

.dropdown-item {
    border-radius: 6px;
    padding: 8px 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    color: #16a34a;
}

/* Progress Bars */
.progress {
    border-radius: 10px;
    height: 12px;
    background: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 12px 0;
    margin-bottom: 24px;
}

.breadcrumb-item a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: clamp(13px, 1.8vw, 15px);
}

.breadcrumb-item a:hover {
    color: #22c55e;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Tooltips */
.tooltip-inner {
    background: #16a34a;
    border-radius: 8px;
    padding: clamp(6px, 1.2vw, 10px) clamp(10px, 2vw, 14px);
    font-size: clamp(12px, 1.6vw, 14px);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
}

/* Selection Styling */
::selection {
    background: rgba(22, 163, 74, 0.2);
    color: #16a34a;
}

::-moz-selection {
    background: rgba(22, 163, 74, 0.2);
    color: #16a34a;
}

/* Focus States - Enhanced for accessibility 
   Using both outline and box-shadow is intentional:
   - Outline provides high-contrast fallback across all browsers
   - Box-shadow adds brand-colored emphasis and extra visibility
   This dual approach ensures maximum accessibility */
button:focus, a:focus, input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
    outline: 2px solid #16a34a;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .card, .modal-content {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

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

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

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

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

.zoom-in {
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================
   Accessibility: Reduced Motion Support
   =================================== */

/* Respect user's motion preferences for accessibility 
   Note: Universal selector (*) is intentional here to ensure ALL elements
   respect motion preferences, including third-party components.
   This is the recommended approach per WCAG guidelines. */
@media (prefers-reduced-motion: reduce) {
    /* Completely disable all animations and transitions for users who prefer reduced motion */
    *,
    *::before,
    *::after {
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
    
    /* Completely disable animations on page load elements */
    .container.py-4,
    .container .section-header,
    .container header.section-header,
    .card,
    .modal-content,
    .fade-in,
    .slide-up,
    .zoom-in {
        animation: none !important;
    }
    
    /* Keep functional transitions but make them instant */
    .btn, .card, .form-control, .form-select, .alert, .badge, .table tbody tr,
    .dropdown-item, .page-link, .nav-link {
        transition-duration: 0s !important;
    }
    
    /* Remove all hover transforms that might cause motion issues */
    .card:hover,
    .btn:hover,
    .stat-card:hover,
    .table tbody tr:hover,
    .navbar nav a:hover,
    .navbar .brand-logo:hover,
    .user-info:hover,
    .dropdown-item:hover {
        transform: none !important;
    }
    
    /* Disable animated underlines and pseudo-element animations */
    .navbar nav a::after {
        display: none !important;
    }
    
    /* Keep focus indicators visible but remove animations */
    .btn:focus, .card:focus, .form-control:focus, .form-select:focus,
    input:focus, select:focus, textarea:focus {
        transition: none !important;
    }
    
    /* Disable loading skeleton animations */
    .loading-skeleton {
        animation: none !important;
        background: #e0e0e0 !important;
    }
    
    /* Disable toast notification animations */
    .toast-notification {
        animation: none !important;
    }
}

.empty-state h3 {
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
}

.empty-state p {
    margin-bottom: 24px;
}
