/* Global Font Enforcement - Excluding Icons */
*:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fad):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
    font-family: 'Roboto', sans-serif !important;
}

/* Glassmorphism & Elegant Touches */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.elegant-shadow {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
}

.gradient-text {
    background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/*User editing*/
::placeholder {
    color: #9ca3af;
    opacity: 1;
    font-size: inherit;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Button Hover Effects */
.btn-hover-effect {
    transition: all 0.3s ease;
}

.btn-hover-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scale-in {
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modal Animations */
/* We will apply classes directly in HTML */
/* Slide to Act Button */
.slider-container {
    position: relative;
    width: 100%;
    height: 42px !important;
    border-radius: 16px !important;
    overflow: hidden;
    user-select: none;
    touch-action: none;
    /* Prevent scroll while dragging */
}

.slider-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s;
    font-size: 0.8rem;
}

.slider-thumb {
    position: absolute;
    left: 4px;
    top: 4px;
    height: 34px !important;
    width: 80px !important;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 2;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.05s linear;
}

.slider-thumb:active {
    cursor: grabbing;
}

.slider-thumb i {
    color: #4b5563;
}

/* Login Feedback Animations */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes successScale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.login-error {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
    border: 2px solid #ef4444 !important;
}

.login-success {
    animation: successScale 0.5s ease-out both;
    background-color: #dcfce7 !important;
    /* green-100 */
    border: 2px solid #22c55e !important;
    /* green-500 */
}

/* Pulse Fade Animation for Chef Headers */
@keyframes pulse-fade {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse-fade {
    animation: pulse-fade 2s infinite ease-in-out;
}

/* Status Badges */
.badge {
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-pending {
    background-color: #f3f4f6;
    color: #4b5563;
}

/* yellow-100, yellow-600 */
.badge-cooking {
    background-color: #ffedd5;
    color: #ea580c;
}

/* orange-100, orange-600 */
.badge-ready {
    background-color: #dbeafe;
    color: #2563eb;
}

/* blue-100, blue-600 */
.badge-delivery {
    background-color: #e0e7ff;
    color: #4f46e5;
}

/* indigo-100, indigo-600 */
.badge-done {
    background-color: #dcfce7;
    color: #16a34a;
}

/* green-100, green-600 */
.badge-canceled {
    background-color: #fee2e2;
    color: #dc2626;
}

/* red-100, red-600 */

/* Online Indicator */
.online-indicator {
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Fade Out Slow Animation */
@keyframes fadeOutSlow {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.fade-out-slow {
    animation: fadeOutSlow 1s ease-out forwards;
    pointer-events: none;
    /* Prevent clicks during fade */
}