/* FoodFlow 68Ribs — Custom Styles (Tailwind CDN handles utilities) */

/* Alpine.js: ocultar elementos antes de hidratación para evitar flash y bug de primer clic */
[x-cloak] { display: none !important; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* Sidebar transitions */
.sidebar-item { transition: all 0.2s ease; }
.sidebar-item.active { 
    background-color: rgba(13, 148, 136, 0.1); 
    color: #0d9488;
    box-shadow: inset 3px 0 0 0 #0d9488;
}

/* Custom scroll (Perfect-scrollbar style) */
.custom-scroll { scrollbar-width: none; /* Firefox */ }
.custom-scroll::-webkit-scrollbar { width: 6px; display: none; }
.custom-scroll:hover::-webkit-scrollbar { display: block; }
.custom-scroll::-webkit-scrollbar-thumb { background-color: rgba(15, 23, 42, 0.2); border-radius: 4px; }
.custom-scroll::-webkit-scrollbar-thumb:hover { background-color: rgba(15, 23, 42, 0.3); }

/* Badge pulse */
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.badge-pulse { animation: pulse-dot 2s ease-in-out infinite; }

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

/* Toast animation */
@keyframes slide-in-right { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slide-out-right { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
.toast-enter { animation: slide-in-right 0.3s ease; }
.toast-exit { animation: slide-out-right 0.3s ease forwards; }

/* KPI Card hover */
.kpi-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); }

/* Data table */
.data-table th { position: sticky; top: 0; z-index: 10; }
.data-table tr:hover td { background: #f8fafc; }

/* Print styles */
@media print {
    .no-print, .sidebar, .header-bar { display: none !important; }
    .main-content { margin: 0 !important; padding: 0 !important; }
}

/* Loading spinner */
.spinner { border: 3px solid #e5e7eb; border-top-color: #0d9488; border-radius: 50%; width: 24px; height: 24px; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
