/* ============================================================
   PAFS Warehouse Management System - Styles
   ============================================================ */

/* Base */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    min-height: 100vh;
}

/* Loading overlay */
#loadingOverlay {
    transition: opacity 0.3s ease;
}

/* Modal animations */
.modal-backdrop {
    animation: fadeIn 0.2s ease;
}

.modal-content {
    animation: slideUp 0.3s ease;
}

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

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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

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

/* Dropdown styling */
#materialPrimarySupplierDropdown,
#stockMaterialDropdown,
#materialCategoryDropdown,
#materialSubCategoryDropdown {
    z-index: 100;
}

/* Focus states */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Import dropzone */
.import-dropzone {
    border: 2px dashed #d1d5db;
    transition: all 0.2s ease;
}

.import-dropzone:hover {
    border-color: #f97316;
    background-color: #fff7ed;
}

/* Progress bar animation */
#importProgressBar {
    transition: width 0.5s ease;
}

/* Prevent iOS Safari auto-zoom on input focus (requires >= 16px) */
@media (max-width: 1024px) {
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Responsive table */
@media (max-width: 768px) {
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
    
    table th, table td {
        white-space: nowrap;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
}
