* {
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

#app {
    max-width: 100%;
    margin: 0 auto;
    padding: 1.25rem;
}

html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, video, svg, iframe {
    max-width: 100%;
    height: auto;
}

button, input, textarea, select {
    font-family: inherit;
}

/* Button Styles - These will work! */
button {
    cursor: pointer;
}

.btn-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 9999px;
    border: none;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.btn-green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 9999px;
    border: none;
    transition: all 0.3s ease;
}

.btn-green:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
}

.btn-gray {
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 9999px;
    border: none;
    transition: all 0.3s ease;
}

.btn-gray:hover {
    background: #e5e7eb;
}

/* Login button specific */
.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: white !important;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

/* Role buttons */
.role-active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.role-inactive {
    background: #e5e7eb;
    color: #4b5563;
}

.role-inactive:hover {
    background: #d1d5db;
}

/* Cart button */
.cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: white !important;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 9999px;
    border: none;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

/* Add to cart button */
.add-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 9999px;
    border: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.add-btn:hover {
    transform: scale(1.05);
}

.order-card {
    transition: all 0.3s ease;
    border-left: 4px solid #f97316;
    background: white;
}

.order-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.scroll-custom::-webkit-scrollbar {
    width: 6px;
}

.scroll-custom::-webkit-scrollbar-track {
    background: #fef3c7;
    border-radius: 10px;
}

.scroll-custom::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 10px;
}

.nav-tab {
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 600;
}

.nav-tab.active {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.nav-tab.inactive {
    background-color: #fff7ed;
    color: #64748b;
}

.nav-tab.inactive:hover {
    background-color: #ffedd5;
    color: #f97316;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ef4444;
    transition: 0.3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #22c55e;
}

input:checked + .slider:before {
    transform: translateX(28px);
}

.food-card {
    transition: all 0.3s ease;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.food-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.input-field {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.input-field:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    padding: 12px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast-info {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

@media (max-width: 768px) {
    #app {
        padding: 0.9rem;
    }

    .btn-orange,
    .btn-green,
    .btn-gray,
    .login-btn,
    .cart-btn,
    .add-btn {
        width: 100%;
        padding: 12px 16px;
    }

    .nav-tab {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .order-card,
    .food-card {
        width: 100%;
    }

    .toast {
        left: 10px;
        right: 10px;
        width: auto;
    }

    .toggle-switch {
        width: 48px;
        height: 24px;
    }

    .slider:before {
        width: 20px;
        height: 20px;
    }
}
