/* body {
    background-color: skyblue;
} */
/* Color de fondo del body ahora se controla por JavaScript según el tema */

/* UX Mejoras UI Meseros */
#category-filter-container::-webkit-scrollbar {
    display: none;
}
#category-filter-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes pulse-anim {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.pulse-anim {
    animation: pulse-anim 0.3s ease-in-out;
}

.local-qty-input::-webkit-outer-spin-button,
.local-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.local-qty-input[type=number] {
  -moz-appearance: textfield;
}

/* --- Micro-animations for Premium UX --- */
@keyframes pulse-success { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes bounce-cart { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes highlight-fade { 0% { background-color: rgba(16, 183, 89, 0.2); } 100% { background-color: transparent; } }
@keyframes slide-in-right { 0% { transform: translateX(20px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
.anim-pulse-success { animation: pulse-success 0.3s ease-in-out; }
.anim-bounce-cart { animation: bounce-cart 0.4s ease-in-out; }
.anim-highlight { animation: highlight-fade 1s ease-out; }
.anim-slide-in { animation: slide-in-right 0.3s ease-out; }
.glass-card { background: rgba(255, 255, 255, 0.8) !important; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3); }

/* --- Kitchen KDS Alerts --- */
@keyframes flash-red {
    0% { background-color: #ef4444; box-shadow: 0 0 0px rgba(239, 68, 68, 0); }
    50% { background-color: #b91c1c; box-shadow: 0 0 20px rgba(239, 68, 68, 0.6); }
    100% { background-color: #ef4444; box-shadow: 0 0 0px rgba(239, 68, 68, 0); }
}

.kds-alert-warning .card-header { 
    background-color: #f59e0b !important; 
    color: white !important; 
}
.kds-alert-warning {
    border-color: #f59e0b !important;
    border-width: 2px !important;
}

.kds-alert-danger .card-header { 
    animation: flash-red 1s infinite; 
    color: white !important; 
    border-bottom: none !important;
}
.kds-alert-danger { 
    border-color: #ef4444 !important; 
    border-width: 3px !important; 
    transform: scale(1.02);
    z-index: 10;
}

/* --- Waiter Dashboard Alerts --- */
@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.03); }
    28% { transform: scale(1); }
    42% { transform: scale(1.03); }
    70% { transform: scale(1); }
}
.heartbeat {
    animation: heartbeat 2s ease-in-out infinite;
    border-color: #dc3545 !important;
    box-shadow: 0 0 12px rgba(220, 53, 69, 0.25);
    z-index: 5;
}

.badge-alert-danger {
    border: 1.5px solid #dc3545 !important;
    color: #dc3545 !important;
    background-color: white !important;
    font-weight: 800 !important;
}

/* --- Premium Call Waiter Button --- */
.btn-call-waiter-premium {
    background: linear-gradient(135deg, #10b759 0%, #059669 100%) !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(16, 183, 89, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.btn-call-waiter-premium:hover {
    transform: scale(1.1) translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(16, 183, 89, 0.5) !important;
}

.btn-call-waiter-premium:active {
    transform: scale(0.9) !important;
}

.btn-call-waiter-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    animation: ring-pulse 2.5s infinite;
}

@keyframes ring-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Entrada elástica satisfactoria */
.satisfactory-pop {
    animation: elastic-pop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes elastic-pop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
