/* ========================================
   FOODHUB - INDIAN FOOD APP DESIGN
   Inspired by Zomato & Swiggy
   ======================================== */

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Vibrant Indian Theme */
    --primary-red: #E23744;
    --primary-orange: #FC8019;
    --primary-green: #48C479;
    --primary-purple: #9C27B0;
    
    /* Secondary Colors */
    --secondary-yellow: #FFC107;
    --secondary-blue: #2196F3;
    --secondary-pink: #E91E63;
    
    /* Neutral Colors */
    --dark-bg: #1C1C1C;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --text-dark: #282C3F;
    --text-light: #686B78;
    --text-muted: #93959F;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   HERO SECTION - Zomato Style
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
    color: white;
    padding: 100px 0 80px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* ========================================
   CARDS - Modern Indian Food App Style
   ======================================== */
.vendor-card, .menu-card {
    border: none;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.vendor-card:hover, .menu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.vendor-card::after, .menu-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-orange));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.vendor-card:hover::after, .menu-card:hover::after {
    transform: scaleX(1);
}

/* ========================================
   BUTTONS - Swiggy/Zomato Style
   ======================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(226, 55, 68, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 55, 68, 0.4);
}

.btn-success {
    background: var(--primary-green);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(72, 196, 121, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    border-radius: var(--radius-sm);
    padding: 10px 26px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   NAVBAR - Modern Food App Style
   ======================================== */
.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-red) !important;
}

.card-img-top {
    border-radius: 15px 15px 0 0;
}

/* ========================================
   DASHBOARD CARDS - Premium Style
   ======================================== */
.dashboard-card {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
    background: var(--white);
    position: relative;
    z-index: 3;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.dashboard-card h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ========================================
   STAT CARDS - Vibrant Indian Colors
   ======================================== */
.stat-card {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    z-index: 3;
    pointer-events: auto;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(226, 55, 68, 0.25);
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, var(--primary-green) 0%, #2ecc71 100%);
    box-shadow: 0 8px 24px rgba(72, 196, 121, 0.25);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, #3498db 100%);
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.25);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #8e24aa 100%);
    box-shadow: 0 8px 24px rgba(156, 39, 176, 0.25);
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
}

.table-responsive {
    border-radius: 15px;
    overflow: hidden;
}

/* ========================================
   BADGES - Colorful Status Indicators
   ======================================== */
.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--primary-green), #2ecc71) !important;
    box-shadow: 0 2px 8px rgba(72, 196, 121, 0.3);
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--secondary-yellow), #f39c12) !important;
    color: var(--dark-bg) !important;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--primary-red), #c0392b) !important;
    box-shadow: 0 2px 8px rgba(226, 55, 68, 0.3);
}

.badge.bg-info {
    background: linear-gradient(135deg, var(--secondary-blue), #3498db) !important;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-orange)) !important;
    box-shadow: 0 2px 8px rgba(226, 55, 68, 0.3);
}

/* ========================================
   SIDEBAR - Modern Dark Theme
   ======================================== */
.sidebar {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #2d2d2d 100%);
    min-height: 100vh;
    max-height: 100vh;
    padding: 24px 0;
    width: 260px;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    box-shadow: 4px 0 24px rgba(0,0,0,0.1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Webkit browsers (Chrome, Safari, Edge) */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Smooth scroll animation */
.sidebar {
    -webkit-overflow-scrolling: touch;
}

.sidebar .text-center {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.sidebar h4 {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5rem;
}

.sidebar a {
    color: rgba(255,255,255,0.8);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 4px 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    position: relative;
}

.sidebar a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-red), var(--primary-orange));
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

.sidebar a:hover, .sidebar a.active {
    background: rgba(226, 55, 68, 0.15);
    color: white;
    padding-left: 32px;
}

.sidebar a:hover::before, .sidebar a.active::before {
    height: 70%;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */
.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    background: var(--light-bg);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.token-display {
    font-size: 4rem;
    font-weight: 700;
    color: #667eea;
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.order-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: none;
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.payment-option {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.payment-option.selected {
    border-color: #667eea;
    background: #e7e9fc;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .token-display {
        font-size: 2.5rem;
        padding: 30px;
    }
}

/* ========================================
   ADMIN HEADER - Modern Dashboard Style
   ======================================== */
.admin-header {
    background: var(--white);
    padding: 20px 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.admin-header h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

.admin-header .text-muted {
    color: var(--text-light) !important;
    font-size: 0.9rem;
}

/* ========================================
   CONTENT WRAPPER - Clean Layout
   ======================================== */
.content-wrapper {
    padding: 32px;
    background: var(--light-bg);
    position: relative;
    z-index: 2;
    pointer-events: auto;
    min-height: calc(100vh - 80px);
}

/* ========================================
   TABLE STYLES - Modern Data Display
   ======================================== */
.table {
    background: var(--white);
    margin-bottom: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.table th {
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-red);
    padding: 16px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table td {
    padding: 16px;
    vertical-align: middle;
    color: var(--text-dark);
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(226, 55, 68, 0.05);
    transform: scale(1.01);
}

/* Stat Card Improvements */
.stat-card h6 {
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-card h3 {
    margin: 0;
}

/* Responsive Sidebar */
@media (max-width: 992px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
}

/* Fix for d-flex layout */
.d-flex {
    display: flex !important;
    flex-wrap: nowrap;
    position: relative;
}

.flex-grow-1 {
    flex-grow: 1 !important;
    background: #f8f9fa;
    position: relative;
    z-index: 1;
}

/* Button Improvements */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 5px 15px;
    font-size: 0.875rem;
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state svg {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Fix for blur/unclickable issue */
* {
    pointer-events: auto !important;
}

body, html {
    pointer-events: auto !important;
}

.table, .table * {
    pointer-events: auto !important;
}

.btn, button, a, input, select, textarea {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Remove any overlay */
body::before,
body::after,
.main-content::before,
.main-content::after {
    display: none !important;
}

/* Ensure all interactive elements are clickable */
.card, .dashboard-card, .stat-card {
    pointer-events: auto !important;
}

.admin-header {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
}

/* Fix table clickability */
.table-responsive {
    position: relative;
    z-index: 5;
    pointer-events: auto !important;
}

/* Remove any blur effects */
.main-content,
.content-wrapper,
.dashboard-card,
.stat-card,
.table {
    filter: none !important;
    opacity: 1 !important;
}

/* ========================================
   ADVANCED UI/UX ENHANCEMENTS
   ======================================== */

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-red), var(--primary-orange));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

/* Food Category Badges */
.category-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-yellow));
    color: white;
    box-shadow: 0 2px 8px rgba(252, 128, 25, 0.3);
}

/* Rating Stars */
.rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--primary-green);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.rating::before {
    content: '★';
    font-size: 1.1rem;
}

/* Delivery Time Badge */
.delivery-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.delivery-time::before {
    content: '🕐';
}

/* Price Tag */
.price-tag {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-tag::before {
    content: '₹';
    color: var(--primary-green);
}

/* Offer Badge */
.offer-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-red);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(226, 55, 68, 0.4);
    z-index: 10;
}

/* Veg/Non-Veg Indicator */
.veg-indicator {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-green);
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.veg-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
}

.non-veg-indicator {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-red);
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.non-veg-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 50%;
}

/* Search Bar - Zomato Style */
.search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    padding: 16px 24px 16px 56px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.search-bar::before {
    content: '🔍';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(226, 55, 68, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 32px rgba(226, 55, 68, 0.5);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast Notification - Swiggy Style */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-bg);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Image Placeholder */
.img-placeholder {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
}

/* Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Section Divider */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red), var(--primary-orange), transparent);
    margin: 48px 0;
}


/* ========================================
   RESTAURANT CARDS - Zomato Style
   ======================================== */
.restaurant-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.restaurant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.restaurant-image {
    position: relative;
    overflow: hidden;
}

.restaurant-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
}

/* ========================================
   FOOD CARDS - Swiggy Style
   ======================================== */
.food-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.food-image {
    position: relative;
    overflow: hidden;
}

/* ========================================
   SEARCH BAR - Modern Style
   ======================================== */
.search-container {
    max-width: 600px;
}

.search-container input {
    font-size: 16px;
    padding: 12px;
}

.search-container input:focus {
    outline: none;
    box-shadow: none;
}

/* ========================================
   FILTER BUTTONS - Pill Style
   ======================================== */
.filter-btn {
    white-space: nowrap;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: linear-gradient(135deg, #E23744, #FC8019);
    color: white;
    border-color: transparent;
}

.filter-btn.active {
    background: linear-gradient(135deg, #E23744, #FC8019);
    color: white;
    border-color: transparent;
}

/* ========================================
   BADGES - Indian Style
   ======================================== */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

/* ========================================
   NAVBAR - Clean & Modern
   ======================================== */
.navbar {
    padding: 1rem 0;
    background: white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar-brand {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #E23744, #FC8019);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   BUTTONS - Gradient Style
   ======================================== */
.btn-primary {
    background: linear-gradient(135deg, #E23744, #FC8019);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 55, 68, 0.4);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: #1C1C1C;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 6px 16px;
    }
}

/* ========================================
   VENDOR MENU PAGE ENHANCEMENTS
   ======================================== */
.vendor-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 40px;
    margin-bottom: 40px;
}

.vendor-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.vendor-info {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.vendor-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* ========================================
   CATEGORY SECTIONS
   ======================================== */
.category-section {
    margin-bottom: 50px;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #282C3F;
    position: relative;
    padding-bottom: 12px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #E23744, #FC8019);
    border-radius: 2px;
}

/* ========================================
   CART BADGE
   ======================================== */
#cart-count {
    position: relative;
    top: -2px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 10px;
}

/* ========================================
   LOADING STATES
   ======================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   VEG/NON-VEG INDICATORS
   ======================================== */
.veg-indicator {
    width: 16px;
    height: 16px;
    border: 2px solid #48C479;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.veg-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #48C479;
    border-radius: 50%;
}

.non-veg-indicator {
    width: 16px;
    height: 16px;
    border: 2px solid #E23744;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.non-veg-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #E23744;
    border-radius: 50%;
}


/* ========================================
   RTL SCROLL - Right to Left Scrolling
   ======================================== */
.table-responsive {
    direction: rtl;
    overflow-x: auto;
}

.table-responsive table {
    direction: ltr;
}

/* Alternative: Start scroll from right */
.table-responsive.scroll-right {
    direction: ltr;
}

.table-responsive.scroll-right::-webkit-scrollbar {
    height: 8px;
}

.table-responsive.scroll-right::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive.scroll-right::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #E23744, #FC8019);
    border-radius: 10px;
}

.table-responsive.scroll-right::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FC8019, #E23744);
}

/* Start scrollbar at right position */
.table-responsive.scroll-right {
    overflow-x: auto;
    scroll-behavior: smooth;
}

/* Force scroll to start from right on load */
.scroll-start-right {
    direction: rtl;
}

.scroll-start-right > * {
    direction: ltr;
}


/* ========================================
   TABLE BUTTONS - Better Spacing & Layout
   ======================================== */
.table td {
    vertical-align: middle;
    padding: 12px 8px;
}

.table .btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.table .btn-info {
    background: linear-gradient(135deg, #2196F3, #3498db);
    border: none;
    color: white;
}

.table .btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.table .btn-success {
    background: linear-gradient(135deg, #48C479, #2ecc71);
    border: none;
    color: white;
}

.table .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 196, 121, 0.4);
}

.table .btn-danger {
    background: linear-gradient(135deg, #E23744, #c0392b);
    border: none;
    color: white;
}

.table .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 55, 68, 0.4);
}

/* Action column minimum width */
.table td:last-child {
    min-width: 180px;
}

/* Gap utilities for better spacing */
.gap-2 {
    gap: 0.5rem !important;
}

/* Flex utilities */
.flex-fill {
    flex: 1 1 auto !important;
}

.w-100 {
    width: 100% !important;
}


.table .btn-warning {
    background: linear-gradient(135deg, #FFC107, #f39c12);
    border: none;
    color: #1C1C1C;
    font-weight: 600;
}

.table .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    color: #1C1C1C;
}

/* Password strength indicator */
.password-strength {
    font-weight: 600;
    margin-top: 5px;
}


/* ========================================
   PAYMENT OPTIONS - Checkout Page
   ======================================== */
.payment-option {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-option:hover {
    border-color: #E23744;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 55, 68, 0.2);
}

.payment-option.selected {
    border-color: #E23744;
    background: linear-gradient(135deg, rgba(226, 55, 68, 0.1), rgba(252, 128, 25, 0.1));
    box-shadow: 0 4px 12px rgba(226, 55, 68, 0.3);
}

.payment-option.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #E23744, #FC8019);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.payment-option {
    position: relative;
}

/* ========================================
   PRODUCT DETAIL MODAL
   ======================================== */
.product-modal .modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
}

.product-modal .modal-header {
    background: linear-gradient(135deg, #E23744, #FC8019);
    color: white;
    border: none;
}

.product-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.product-image-container {
    height: 300px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: #E23744;
}

.product-rating {
    color: #FFC107;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-selector button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #E23744;
    background: white;
    color: #E23744;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-selector button:hover {
    background: #E23744;
    color: white;
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 6px;
    font-weight: bold;
}


/* ========================================
   FILTER SECTION FIX - Non-Sticky
   ======================================== */
.filter-section {
    background: white;
    border-bottom: 1px solid #e8e8e8;
    padding: 16px 0;
    position: relative !important;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Remove sticky behavior */
.filter-section.sticky-top {
    position: relative !important;
    top: auto !important;
}

/* Ensure filter buttons scroll naturally */
#filterButtons {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#filterButtons::-webkit-scrollbar {
    display: none;
}


/* ========================================
   POSITION FIX - All Sections Non-Sticky
   ======================================== */

/* Only navbar should be sticky */
.navbar.sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
}

/* All other sections should be relative/static */
.hero-section,
.filter-section,
section,
.restaurant-card,
.food-card,
.vendor-card,
footer {
    position: relative !important;
}

/* Remove any sticky positioning from sections */
section.sticky-top {
    position: relative !important;
    top: auto !important;
}

/* Ensure smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    overflow-x: hidden;
}

/* Fix z-index hierarchy */
.navbar {
    z-index: 1030;
}

.hero-section {
    z-index: 1;
}

.filter-section {
    z-index: 10;
}

.main-content,
.content-wrapper {
    z-index: 2;
}

/* Remove any fixed positioning */
* {
    position: static;
}

.navbar.sticky-top {
    position: sticky !important;
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.position-fixed {
    position: fixed !important;
}
