/* Page-specific styles for HATOD */

/* Welcome/Landing Page Styles */
.welcome-container {
    text-align: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-logo {
    width: 24rem;
    height: auto;
    margin: 0;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
    background: transparent;
    /* Remove white background - if image has white background, consider using a PNG with transparency */
    /* Using mix-blend-mode to blend with background */
    mix-blend-mode: normal;
    /* If white background persists, the image file itself needs to have transparency */
}

.welcome-tagline {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.welcome-loading-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.welcome-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.welcome-redirect-info {
    font-size: 0.9rem;
    color: #888;
    margin-top: 1rem;
}

.welcome-manual-link {
    display: block;
    margin-top: 1rem;
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

.welcome-manual-link:hover {
    text-decoration: underline;
}

/* Order Tracking Progress Bar */
.order-progress-bar {
    width: 50%;
    transition: width 1s ease-in-out;
}

.order-progress-bar.completed {
    width: 100%;
}

/* Checkout Page - Payment Method Selection */
.payment-method-radio:checked + .payment-method-label {
    border-color: var(--color-primary);
    background-color: var(--color-primary-50);
}

/* Customer Profile - Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--color-primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

.loading-spinner.hidden {
    display: none;
}

/* Form Error States */
.form-input.error {
    border-color: var(--color-error);
}

.form-input.success {
    border-color: var(--color-success);
}

/* Add to Cart Button Feedback */
.add-to-cart-btn.added {
    background-color: var(--color-success);
}

.add-to-cart-btn.added:hover {
    background-color: var(--color-success-600);
}

/* Form validation states */
.form-field-error {
    border-color: var(--color-error);
}

.form-field-success {
    border-color: var(--color-success);
}

/* Restaurant Menu - Mobile Improvements */
.menu-item-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-item-card:active {
    transform: scale(0.98);
}

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

.menu-category-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .welcome-logo {
        width: 16rem;
    }

    /* Menu item improvements for mobile */
    .menu-item-image {
        height: 200px;
    }
}
/* User Selection Page Styles */
.user-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
    margin: 2rem auto 0;
}

.user-type-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.user-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #FF6B35;
}

.user-type-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.user-type-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.user-type-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.user-type-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-type-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.user-type-btn.primary {
    background-color: #FF6B35;
    color: white;
}

.user-type-btn.primary:hover {
    background-color: #e55a2b;
    color: white;
}

.user-type-btn.secondary {
    background-color: transparent;
    color: #FF6B35;
    border: 2px solid #FF6B35;
}

.user-type-btn.secondary:hover {
    background-color: #FF6B35;
    color: white;
}

.user-type-note {
    font-size: 0.875rem;
    color: #888;
    font-style: italic;
}

.guest-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.guest-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.guest-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.guest-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Mobile Bottom Navigation Safe Area Adjustment */
nav.lg:hidden {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

/* Orders navigation icon alignment fix */
.orders-nav-icon {
    margin-top: 1px;
}

/* Mobile responsiveness for user selection */
@media (max-width: 768px) {
    .user-selection-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .user-type-card {
        padding: 1.5rem;
    }

    .user-type-icon {
        font-size: 2.5rem;
    }

    .user-type-title {
        font-size: 1.25rem;
    }

    .guest-section {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .welcome-logo {
        width: 14rem;
    }

    .user-type-card {
        padding: 1.25rem;
    }

    .user-type-actions {
        gap: 0.375rem;
    }

    .user-type-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

