/* 
 * File: assets/css/style.css
 * Main stylesheet for Clothes Inventory Management System
 * Mobile-first responsive design
 * Updated with header spacing and button positioning fixes
 */

/* ===== CSS RESET & BASE STYLES ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

/* ===== BODY AND BACKGROUND ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    min-height: 100vh;
    padding-top: 76px; /* Increased from 56px to account for larger navbar */
}

/* Alternative light background */
body.light-theme {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

body.blue-theme {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

body.purple-theme {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
}

/* ===== LAYOUT STYLES ===== */
.main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease;
    min-height: calc(100vh - 76px); /* Updated to match new padding */
    padding-bottom: 80px; /* Account for footer */
    padding-top: 2rem; /* Additional top padding for breathing room */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Desktop sidebar offset */
@media (min-width: 768px) {
    .main-content {
        margin-left: 250px !important;
        padding-top: 4.5rem !important; /* Changed from 1.5rem to 4.5rem for more space */
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .footer.ms-md-250 {
        margin-left: 250px;
    }
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
    border-right: 1px solid #e9ecef;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    padding: 1rem !important;
    margin-top: 0 !important;
    min-height: calc(100vh - 76px) !important;
    overflow-y: auto !important;
}

/* Desktop sidebar positioning */
@media (min-width: 768px) {
    .sidebar {
        top: 76px !important;
        height: calc(100vh - 76px) !important;
        position: fixed !important;
        left: 0 !important;
        width: 250px !important;
        z-index: 1025 !important;
    }
}

.sidebar .list-group-item {
    background: transparent;
    border: none;
    border-radius: 8px;
    margin-bottom: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.2s ease;
    color: #495057;
    font-weight: 500;
    white-space: nowrap !important;
}

.sidebar .list-group-item:hover {
    background-color: #e9ecef;
    color: #007bff;
    transform: translateX(2px);
}

.sidebar .list-group-item.active {
    background-color: #007bff;
    color: white;
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

.sidebar .list-group-item i {
    width: 20px;
    text-align: center;
}

/* Sidebar sections styling */
.sidebar .mt-4,
.sidebar .mb-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.sidebar h6 {
    padding: 0.5rem 1rem !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
}

.sidebar .text-muted {
    padding: 0.25rem 1rem !important;
    font-size: 0.875rem !important;
}

/* ===== CARD STYLES ===== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* ===== BUTTON STYLES ===== */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    padding: 0.5rem 1rem;
}

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

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

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

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

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 10px;
}

/* ===== HEADER BUTTON POSITIONING FIXES ===== */
/* Fix for page header button positioning and visibility */
.container-fluid {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.container-fluid .d-flex.justify-content-between {
    flex-wrap: wrap !important;
    gap: 1rem !important;
    align-items: flex-start;
    margin-bottom: 1.5rem !important;
}

.container-fluid .d-flex.justify-content-between .d-flex {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    min-width: auto;
    overflow: visible;
    align-items: center !important;
}

.container-fluid .d-flex.justify-content-between .d-flex .btn {
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0.125rem !important;
}

/* Ensure Update Stock button is always visible */
button[data-bs-target="#stockModal"],
.btn[data-bs-toggle="modal"],
.btn-primary {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    z-index: 1020;
}

/* Fix for button groups in page headers */
.d-flex.gap-2 {
    gap: 0.5rem !important;
    flex-wrap: wrap;
}

.d-flex.gap-2 .btn {
    margin: 0.125rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* Prevent button overflow in header */
.page-header-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Force visibility for all interactive elements */
.btn, .list-group-item, .sidebar * {
    position: relative !important;
    z-index: auto !important;
    overflow: visible !important;
}

/* Responsive header buttons */
@media (max-width: 991.98px) {
    .container-fluid .d-flex.justify-content-between {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .container-fluid .d-flex.justify-content-between .d-flex {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .d-flex.gap-2 {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .d-flex.gap-2 .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* ===== FORM STYLES ===== */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
    padding: 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.input-group {
    border-radius: 8px;
    overflow: hidden;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
    color: #6c757d;
}

/* ===== TABLE STYLES ===== */
.table {
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    font-weight: 600;
    color: #495057;
    padding: 1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.875rem 1rem;
    border-color: #f8f9fa;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ===== BADGE STYLES ===== */
.badge {
    border-radius: 20px;
    padding: 0.5em 0.75em;
    font-weight: 500;
    font-size: 0.75em;
}

/* ===== PAGINATION STYLES ===== */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 2px solid #e9ecef;
    color: #495057;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* ===== MODAL STYLES ===== */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border: none;
    padding: 1rem 2rem 2rem;
}

/* ===== MODAL POSITIONING ===== */
.modal {
    z-index: 1060; /* Ensure modals appear above everything */
}

.modal-backdrop {
    z-index: 1055;
}

/* ===== TOAST STYLES ===== */
.toast {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Fix for flash messages positioning */
.toast-container {
    position: fixed;
    top: 86px; /* Position below navbar */
    right: 1rem;
    z-index: 1040;
}

/* Alternative: If you prefer flash messages to stack from top */
.position-fixed.top-0.end-0 {
    top: 76px !important; /* Position below navbar */
}

/* ===== LOADING OVERLAY ===== */
.loading {
    display: none;
    position: fixed;
    top: 76px; /* Start below navbar */
    left: 0;
    width: 100%;
    height: calc(100vh - 76px); /* Full height minus navbar */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading.show {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== NAVBAR ENHANCEMENTS ===== */
.navbar {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    min-height: 76px; /* Ensure consistent height */
    z-index: 1030; /* Bootstrap's navbar z-index */
}

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

.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    background: #ffffff;
    z-index: 1050; /* Ensure dropdowns appear above navbar */
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    color: #495057;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #007bff;
}

/* ===== QUICK STATS WIDGETS ===== */
.stat-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== ALTERNATIVE STAT CARDS (Light Theme) ===== */
.stat-card-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-card-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.stat-card-gradient-blue {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
}

.stat-card-gradient-green {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border: 1px solid #a5d6a7;
}

.stat-card-gradient-orange {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 1px solid #ffcc02;
}

.stat-card-gradient-purple {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border: 1px solid #ce93d8;
}

/* ===== DASHBOARD CHART STYLES ===== */
.chart-container {
    position: relative;
    height: 400px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

/* ===== PRODUCT IMAGE STYLES ===== */
.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

.product-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

/* ===== SEARCH & FILTER STYLES ===== */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: 2.5rem;
}

.search-box .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 5;
}

.filter-panel {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

/* ===== FIX FOR STICKY ELEMENTS ===== */
.sticky-top {
    top: 76px !important; /* Position sticky elements below navbar */
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 767.98px) {
    body {
        font-size: 14px;
        padding-top: 66px; /* Slightly less padding on mobile */
    }
    
    .main-content {
        padding-bottom: 100px;
        padding-top: 0.75rem; /* Less padding on mobile */
        min-height: calc(100vh - 66px);
    }
    
    .navbar {
        min-height: 66px; /* Smaller navbar on mobile */
    }
    
    /* Position flash messages below mobile navbar */
    .position-fixed.top-0.end-0 {
        top: 66px !important;
    }
    
    .loading {
        top: 66px;
        height: calc(100vh - 66px);
    }
    
    .sticky-top {
        top: 66px !important;
    }
    
    .card {
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
        border-radius: 8px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.5rem;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-card .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
    
    .chart-container {
        height: 300px;
        padding: 1rem;
    }
    
    /* Hide certain columns on mobile */
    .table .d-none-mobile {
        display: none !important;
    }
    
    /* Stack form elements on mobile */
    .row.mobile-stack > [class*="col-"] {
        margin-bottom: 0.75rem;
    }
    
    /* Ensure buttons and interactive elements are not covered */
    .btn.position-fixed,
    .floating-action-btn {
        bottom: 90px; /* Account for mobile navigation if present */
    }
}

/* ===== TABLET STYLES ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    .table thead th,
    .table tbody td {
        padding: 0.75rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.75rem;
    }
}

/* ===== LARGE SCREEN OPTIMIZATIONS ===== */
@media (min-width: 1200px) {
    .container-fluid {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .chart-container {
        height: 450px;
    }
    
    .stat-card .stat-value {
        font-size: 2.5rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.4;
        padding-top: 0 !important; /* Remove padding for print */
    }
    
    .sidebar,
    .navbar,
    .btn,
    .pagination,
    .no-print,
    .modal,
    .toast,
    .loading {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    .table {
        border-collapse: collapse;
        width: 100%;
    }
    
    .table th,
    .table td {
        border: 1px solid #ccc !important;
        padding: 8px !important;
    }
    
    .page-break {
        page-break-before: always;
    }
    
    .page-break-inside {
        page-break-inside: avoid;
    }
}

/* ===== LIGHT THEME OVERRIDE ===== */
/* Force light theme and remove dark mode */
@media (prefers-color-scheme: dark) {
    /* Override dark mode preferences */
    body {
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
        color: #333 !important;
    }
    
    .card {
        background-color: #ffffff !important;
        border-color: #e9ecef !important;
        color: #333 !important;
    }
    
    .table {
        background-color: #ffffff !important;
        color: #333 !important;
    }
    
    .table thead th {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
        color: #495057 !important;
    }
    
    .form-control,
    .form-select {
        background-color: #ffffff !important;
        border-color: #e9ecef !important;
        color: #333 !important;
    }
    
    .modal-content {
        background-color: #ffffff !important;
        color: #333 !important;
    }
    
    .dropdown-menu {
        background-color: #ffffff !important;
        color: #333 !important;
    }
    
    .dropdown-item {
        color: #495057 !important;
    }
}

/* ===== ENHANCED LIGHT THEME COMPONENTS ===== */
.light-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.light-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.gradient-card-blue {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #90caf9;
}

.gradient-card-green {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border: 1px solid #a5d6a7;
}

.gradient-card-orange {
    background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%);
    border: 1px solid #ffcc02;
}

.gradient-card-purple {
    background: linear-gradient(135deg, #f3e5f5 0%, #e8eaf6 100%);
    border: 1px solid #ce93d8;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #007bff;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* ===== FORCE LIGHT THEME ELEMENTS ===== */
/* Ensure all dark elements are converted to light */
.bg-dark, .bg-black, .text-dark {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #495057 !important;
}

.table-dark {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    color: #495057 !important;
}

.table-dark th, .table-dark td {
    border-color: #e9ecef !important;
    background: transparent !important;
}

.card.bg-dark, .card-dark {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 1px solid #e9ecef !important;
    color: #495057 !important;
}

/* Dashboard specific overrides */
.dashboard-card-dark {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%) !important;
    border: 1px solid #90caf9 !important;
    color: #1565c0 !important;
}

/* Ensure all text remains readable */
.text-white-force-dark {
    color: #495057 !important;
}

/* Additional light theme utilities */
.bg-light-blue { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important; }
.bg-light-green { background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%) !important; }
.bg-light-orange { background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%) !important; }
.bg-light-purple { background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%) !important; }
.bg-light-pink { background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%) !important; }

/* ===== SPACING UTILITY CLASSES ===== */
/* Use these classes to add extra spacing where needed */
.mt-navbar {
    margin-top: 76px;
}

.pt-navbar {
    padding-top: 76px;
}

.mt-navbar-mobile {
    margin-top: 66px;
}

@media (min-width: 768px) {
    .mt-navbar-mobile {
        margin-top: 76px;
    }
}

/* ===== ANIMATION UTILITIES ===== */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

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

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

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}

.shadow-medium {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
}

.shadow-strong {
    box-shadow: 0 8px 30px rgba(0,0,0,0.16) !important;
}

.border-gradient {
    position: relative;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 12px;
    padding: 2px;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: white;
    border-radius: 10px;
    z-index: -1;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== FOCUS INDICATORS ===== */
.form-control:focus,
.form-select:focus,
.btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* ===== ERROR STATES ===== */
.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===== SUCCESS STATES ===== */
.is-valid {
    border-color: #28a745 !important;
}

.valid-feedback {
    display: block;
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}