/* ============================================
   TravelERP - Main Stylesheet
   ============================================ */

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

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.dark ::-webkit-scrollbar-thumb { background: #475569; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Sidebar transitions */
.sidebar { transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.sidebar-text { transition: opacity 0.2s; }
.sidebar-toggle-icon { transition: transform 0.3s; }

/* Custom data tables */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
}
.dark .dataTables_wrapper .dataTables_length select,
.dark .dataTables_wrapper .dataTables_filter input {
    background: #374151 !important;
    border-color: #4b5563 !important;
    color: #e5e7eb !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 0.5rem !important;
    padding: 0.25rem 0.75rem !important;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 0.5rem;
}
.dark .skeleton {
    background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
    background-size: 200% 100%;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    animation: toast-slide 0.3s ease-out;
}
@keyframes toast-slide {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Card hover effects */
.card-hover {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Print styles */
@media print {
    .sidebar, header, .no-print { display: none !important; }
    body { background: white !important; }
    #main-content { margin-left: 0 !important; }
}

/* Table row hover */
.table-row-hover tbody tr {
    transition: background-color 0.15s;
}

/* Modal backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Dark mode input fixes */
.dark input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* Chart containers */
.chart-container { position: relative; height: 250px; width: 100%; }
