/* FG Comedores ERP - Design System & Custom Styles */

:root {
    --primary: #1e3a8a;       /* Deep Navy */
    --primary-light: #3b82f6; /* Industrial Blue */
    --accent: #0284c7;        /* Cerulean */
    --surface: #ffffff;
    --background: #f8fafc;    /* Slate-50 */
    --border: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

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

/* Modal and Backdrop */
dialog::backdrop {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

dialog[open] {
    animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Sticky Headers */
.sticky-table-header th {
    position: sticky;
    top: 0;
    background-color: #f8fafc;
    z-index: 10;
}

/* Card Transitions */
.interactive-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.interactive-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Badge styling */
.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    border-width: 1px;
}

/* Pulse highlight for live price updates */
@keyframes pricePulse {
    0% { background-color: rgba(34, 197, 94, 0.25); }
    100% { background-color: transparent; }
}

.price-updated-flash {
    animation: pricePulse 2s ease-out;
}

/* Animated diagonal shimmer for Ticket AI Progress Bar */
@keyframes scanProgressStripes {
    0% { background-position: 0 0; }
    100% { background-position: 32px 0; }
}

.scan-progress-animated {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.22) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(255, 255, 255, 0.22) 75%,
        transparent 75%,
        transparent
    );
    background-size: 32px 32px;
    animation: scanProgressStripes 0.9s linear infinite;
}

/* Hide spin buttons in number inputs */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* Print Styles for Weekly Menu & Shopping List */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    header, aside, .no-print, button, nav {
        display: none !important;
    }
    .print-only {
        display: block !important;
    }
    .card, .p-6 {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}
