
body {
    font-family: 'Inter', sans-serif;
    background-color: #f7f7f7;
    color: #333;
}

.no-scroll {
    overflow: hidden;
}

/* Custom scrollbar for better aesthetics */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Tooltip-specific styles */
.tooltip {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    transform: translateY(10px);
}

.branch-container:hover .tooltip,
.branch-container:focus-within .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

.menu-card {
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Modal styles */
#cart-modal-content, #auth-modal-content {
    transition: transform 0.3s ease-out;
    transform: scale(0.95);
}

#cart-modal:not(.hidden) #cart-modal-content,
#auth-modal:not(.hidden) #auth-modal-content {
    transform: scale(1);
}

/* User Dropdown Styles */
#user-dropdown {
    transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none; /* Prevent interaction when hidden */
}

#user-dropdown:not(.hidden) {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto; /* Allow interaction when visible */
}


/* Preference Button Styles */
.preference-btn {
    transition: background-color 0.2s, color 0.2s;
    background-color: #fff;
    color: #4b5563; /* gray-600 */
}
.preference-btn.bg-blue-500 {
     background-color: #3b82f6; /* blue-500 */
     color: white;
}


/* Spinner for Place Order Button */
#place-order-button .spinner {
    display: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-left-color: #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.8s linear infinite;
}

#place-order-button.loading .spinner {
    display: inline-block;
}

#place-order-button.loading span {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}