:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #7c3aed;
    --secondary: #f093fb;
    --accent: #ffd23f;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-light: #a0aec0;
    --bg-primary: #ffffff;
    --bg-secondary: #cbd5e0;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-color1: #667eea;
    --gradient-color2: #764ba2;
    --gradient: linear-gradient(135deg, var(--gradient-color1) 0%, var(--gradient-color2) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Optimisation des images */
.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

/* Header */
.header {
    background: var(--gradient);
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    /* animation: float 20s ease-in-out infinite; */
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.header-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    animation: slideUp 1s ease-out;
    padding: 1.5rem 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.restaurant-logo {
    width: 130px;
    height: 130px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin: 0 auto 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    border: 3px solid rgba(255,255,255,0.3);
    cursor: pointer;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.restaurant-name {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.restaurant-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.restaurant-info {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.95rem;
    margin-top: 1.2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Navigation */
.nav-container {
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    overflow-x: auto;
    padding: 1rem 0;
    gap: 1rem;
    scroll-behavior: smooth;
    position: relative;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav-item {
    flex-shrink: 0;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 25px;
    border: 2px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}





.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.nav-item.active {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    position: relative;
}

/* Règles supplémentaires pour s'assurer que l'état actif est toujours visible */
.nav-item.active,
.nav-item.active:hover,
.nav-item.active:focus,
.nav-item.active:active {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 2px;
    animation: pulseIndicator 2s ease-in-out infinite;
}

@keyframes pulseIndicator {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1.2);
    }
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light), var(--primary));
    border-radius: 27px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}



/* Animation pour les nouveaux éléments de navigation */
.nav-item.new-item {
    animation: newItemSlide 0.8s ease-out forwards;
}

@keyframes newItemSlide {
    0% {
        opacity: 0;
        transform: translateX(-50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Sections */
.section {
    margin: 3rem 0;
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    border: none;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.add-btn {
    background: var(--gradient);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn:hover {
    transform: scale(1.1);
}

/* Horizontal Scroll Products */
.products-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}

.products-scroll::-webkit-scrollbar {
    display: none;
}

.scroll-card {
    flex-shrink: 0;
    width: 280px;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 340px;
    display: flex;
    flex-direction: column;
    border: none;
}

.scroll-card:hover {
    transform: translateY(-4px);
}

.scroll-card .product-image {
    height: 160px;
}

.scroll-card .product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.scroll-card .product-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scroll-card .product-description {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scroll-card .product-price {
    font-size: 1.1rem;
}

/* Cart Button */
.cart-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--secondary) 0%, #ff8a65 100%);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cart-btn:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Configuration Panel - Design Moderne et Accessible */
.config-panel {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: var(--bg-card);
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    max-width: 380px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    display: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.config-panel.active {
    display: flex;
    flex-direction: column;
    animation: slideInConfig 0.3s ease-out;
}

@keyframes slideInConfig {
    from {
        opacity: 0;
        transform: translateX(-100%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Header du panneau de configuration */
.config-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.config-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.config-title {
    margin: 0;
    color: white;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.config-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
    min-width: 36px;
    min-height: 36px;
}

.config-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.config-close:active {
    transform: scale(0.95);
}

.config-close i {
    font-size: 1.1rem;
    pointer-events: none;
}

/* Zone cliquable étendue pour le bouton de fermeture */
.config-close::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: transparent;
    z-index: -1;
}

/* Amélioration pour les écrans tactiles */
@media (max-width: 768px) {
    .config-close {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .config-close i {
        font-size: 1.1rem;
    }
    
    .config-close::before {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }
}

/* Contenu scrollable */
.config-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.config-content::-webkit-scrollbar {
    width: 6px;
}

.config-content::-webkit-scrollbar-track {
    background: transparent;
}

.config-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.config-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Sections de configuration */
.config-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.config-section:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.config-section:last-child {
    margin-bottom: 0;
}

.config-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.config-section h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
    border-radius: 1px;
}

/* Input de fichier amélioré */
.file-input {
    width: 100%;
    padding: 1.5rem;
    border: 2px dashed var(--border);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.file-input::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.file-input:hover::before {
    transform: translateX(100%);
}

.file-input:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.file-input:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.file-input i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.file-input p {
    margin: 0;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Boutons améliorés avec accessibilité */
.sample-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    text-decoration: none;
    outline: none;
}

.sample-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.sample-btn:hover::before {
    transform: translateX(100%);
}

.sample-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.sample-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.sample-btn:active {
    transform: translateY(0);
}

.sample-btn:first-child {
    margin-top: 0;
}

.sample-btn i {
    font-size: 1rem;
    opacity: 0.9;
}

/* Variantes de boutons pour différentes actions */
.sample-btn.danger {
    background: #ef4444;
}

.sample-btn.danger:hover {
    background: #dc2626;
}

.sample-btn.success {
    background: #10b981;
}

.sample-btn.success:hover {
    background: #059669;
}

.sample-btn.warning {
    background: #f59e0b;
}

.sample-btn.warning:hover {
    background: #d97706;
}

.sample-btn.info {
    background: #3b82f6;
}

.sample-btn.info:hover {
    background: #2563eb;
}

/* Groupes d'inputs de couleur améliorés */
.color-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.color-input-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
}

.color-input-wrapper label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-input-wrapper input[type="color"] {
    width: 100%;
    height: 48px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    outline: none;
}

.color-input-wrapper input[type="color"]:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.color-input-wrapper input[type="color"]:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
}

/* Améliorations responsives */
@media (max-width: 768px) {
    .config-panel {
        max-width: 95%;
        left: 50%;
        transform: translateX(-50%);
        top: 0.5rem;
    }
    
    .color-input-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .config-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .config-content {
        padding: 1rem;
    }
}

/* Améliorations d'accessibilité */
.config-panel:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Support pour les lecteurs d'écran */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Indicateurs de focus visibles */
.config-panel *:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Animation de chargement pour les actions */
.sample-btn.loading {
    position: relative;
    color: transparent;
}

.sample-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Styles pour les options d'arrondi des prix */
label[onclick*="selectRoundingOption"] {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

label[onclick*="selectRoundingOption"]:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

label[onclick*="selectRoundingOption"] input[type="radio"] {
    accent-color: var(--primary);
}

/* Animation pour les changements de prix */
.price-change-animation {
    animation: priceChange 0.6s ease-in-out;
}

@keyframes priceChange {
    0% {
        background-color: var(--secondary);
        transform: scale(1);
    }
    50% {
        background-color: var(--primary);
        transform: scale(1.05);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

.promos-display {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.theme-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.theme-toggle-btn i:last-child {
    transition: transform 0.3s ease;
}

.theme-toggle-btn.expanded i:last-child {
    transform: rotate(180deg);
}

/* Theme Presets */
.theme-presets {
    margin-top: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.preset-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.preset-btn {
    border: none;
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.preset-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.preset-btn:hover::before {
    transform: translateX(100%);
}

.preset-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Effets spéciaux pour les thèmes sombres ultra-modernes */
.preset-btn[onclick*="dark-obsidian"]:hover {
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}

.preset-btn[onclick*="dark-neon"]:hover {
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.3));
}

.preset-btn[onclick*="dark-aurora"]:hover {
    filter: drop-shadow(0 0 8px rgba(6, 255, 165, 0.3));
}

.preset-btn[onclick*="dark-midnight-pro"]:hover {
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
}

.preset-btn[onclick*="dark-crimson"]:hover {
    filter: drop-shadow(0 0 8px rgba(255, 0, 102, 0.3));
}

.preset-btn[onclick*="dark-ocean-deep"]:hover {
    filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.3));
}

.preset-btn[onclick*="dark-emerald-matrix"]:hover {
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
}

.preset-btn[onclick*="dark-golden-luxury"]:hover {
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.3));
}

.preset-btn[onclick*="dark-rose-noir"]:hover {
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.3));
}

.preset-btn[onclick*="dark-cosmic"]:hover {
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.3));
}

.preset-name {
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
    position: relative;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Effets spéciaux pour les thèmes élégants ultra-colorés */
.preset-btn[onclick*="electric-purple"]:hover {
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
    transform: translateY(-2px) scale(1.03);
}

.preset-btn[onclick*="neon-pink"]:hover {
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.3));
    transform: translateY(-2px) scale(1.03);
}

.preset-btn[onclick*="electric-blue"]:hover {
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
    transform: translateY(-2px) scale(1.03);
}

.preset-btn[onclick*="neon-green"]:hover {
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
    transform: translateY(-2px) scale(1.03);
}

.preset-btn[onclick*="golden-fire"]:hover {
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.3));
    transform: translateY(-2px) scale(1.03);
}

.preset-btn[onclick*="crimson-fire"]:hover {
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.3));
    transform: translateY(-2px) scale(1.03);
}

.preset-btn[onclick*="electric-orange"]:hover {
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.3));
    transform: translateY(-2px) scale(1.03);
}

.preset-btn[onclick*="electric-cyan"]:hover {
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.3));
    transform: translateY(-2px) scale(1.03);
}

.preset-btn[onclick*="electric-teal"]:hover {
    filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.3));
    transform: translateY(-2px) scale(1.03);
}

.preset-btn[onclick*="electric-magenta"]:hover {
    filter: drop-shadow(0 0 8px rgba(217, 70, 239, 0.3));
    transform: translateY(-2px) scale(1.03);
}

.preset-btn[onclick*="electric-lime"]:hover {
    filter: drop-shadow(0 0 8px rgba(101, 163, 13, 0.3));
    transform: translateY(-2px) scale(1.03);
}

/* Animation de pulsation pour les thèmes premium sombres */
@keyframes premium-pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.9; 
    }
}

.preset-btn[onclick*="dark-neon"],
.preset-btn[onclick*="dark-aurora"],
.preset-btn[onclick*="dark-crimson"],
.preset-btn[onclick*="dark-cosmic"] {
    animation: premium-pulse 3s ease-in-out infinite;
}

/* Animation électrique pour les thèmes ultra-colorés */
@keyframes electric-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 3px currentColor);
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 8px currentColor);
        transform: scale(1.01);
    }
}

@keyframes neon-pulse {
    0%, 100% { 
        filter: drop-shadow(0 0 3px currentColor);
    }
    50% { 
        filter: drop-shadow(0 0 8px currentColor);
    }
}

/* Animation pour les thèmes électriques */
.preset-btn[onclick*="electric-purple"],
.preset-btn[onclick*="electric-blue"],
.preset-btn[onclick*="electric-orange"],
.preset-btn[onclick*="electric-cyan"],
.preset-btn[onclick*="electric-teal"],
.preset-btn[onclick*="electric-magenta"],
.preset-btn[onclick*="electric-lime"] {
    animation: electric-glow 2s ease-in-out infinite;
}

/* Animation pour les thèmes néon */
.preset-btn[onclick*="neon-pink"],
.preset-btn[onclick*="neon-green"] {
    animation: neon-pulse 1.5s ease-in-out infinite;
}

/* Animation pour les thèmes feu */
.preset-btn[onclick*="golden-fire"],
.preset-btn[onclick*="crimson-fire"] {
    animation: neon-pulse 1.8s ease-in-out infinite;
}

/* Product Manager Modal */
.product-manager-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    /* backdrop-filter supprim� pour performance */
}

.product-manager-modal {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    overflow-y: auto;
}

.product-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.product-manager-title {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.product-manager-close {
    background: var(--secondary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.product-manager-close:hover {
    transform: scale(1.1);
}

.product-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Champ de recherche de produits */
.product-search-container {
    width: 100%;
    margin-bottom: 1rem;
}

.product-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.product-search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.product-search-icon {
    color: var(--text-secondary);
    margin-right: 0.75rem;
    font-size: 1rem;
}

.product-search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    padding: 0;
}

.product-search-input::placeholder {
    color: var(--text-secondary);
}

.product-search-clear {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.product-search-clear:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.product-filters-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-filter {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.product-filter.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.product-filter:hover {
    border-color: var(--primary);
}

.products-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
}

.product-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.product-item:hover {
    background: var(--bg-secondary);
}

.product-item:last-child {
    border-bottom: none;
}

.product-info {
    flex: 1;
    margin-right: 1rem;
}

.product-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.product-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-action-btn.edit {
    background: #3b82f6;
    color: white;
}

.product-action-btn.move {
    background: #f59e0b;
    color: white;
}

.product-action-btn.delete {
    background: #ef4444;
    color: white;
}

.product-action-btn:hover {
    transform: scale(1.05);
}

.edit-product-form {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-btn.save {
    background: #10b981;
    color: white;
}

.form-btn.cancel {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-btn:hover {
    transform: translateY(-1px);
}

/* Move Product Modal */
.move-product-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    /* backdrop-filter supprim� pour performance */
}

.move-product-modal {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.move-product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.move-product-title {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.move-product-close {
    background: var(--secondary);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.move-product-close:hover {
    transform: scale(1.1);
}

.move-product-description {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.category-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-option {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
}

.category-option:hover {
    border-color: var(--primary);
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.category-option.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.move-product-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.form-btn.move {
    background: #f59e0b;
    color: white;
}

/* Category Management */
.category-management {
    margin-bottom: 1rem;
    text-align: center;
}

.add-category-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.add-category-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Add Category Modal */
.add-category-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002;
    /* backdrop-filter supprim� pour performance */
}

.add-category-modal {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    max-width: 450px;
    width: 90%;
}

.add-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.add-category-title {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.add-category-close {
    background: var(--secondary);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.add-category-close:hover {
    transform: scale(1.1);
}

.add-category-content {
    text-align: left;
}

.add-category-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Auth Modal */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    /* backdrop-filter supprim� pour performance */
}

.auth-modal {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.auth-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.auth-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-btn.primary {
    background: var(--primary);
    color: white;
}

.auth-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Modal d'édition de produit - style spécifique */
#editProductModal .auth-modal {
    max-width: 900px !important;
    width: 90% !important;
    text-align: left !important;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin: 0;
}

.footer-made-by {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0.5rem 0 0 0;
    font-style: italic;
}

.footer-made-by a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-made-by a:hover {
    color: white;
    text-decoration: underline;
}

/* Footer QR Code Button */
.footer-qr-section {
    text-align: center;
    margin: 2rem 0 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-qr-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
}

.footer-qr-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.footer-qr-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-qr-btn:hover .footer-qr-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.footer-qr-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-qr-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

.footer-qr-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .footer-qr-btn {
        padding: 0.875rem 1.25rem;
        gap: 0.75rem;
    }
    
    .footer-qr-icon {
        font-size: 1.25rem;
        width: 36px;
        height: 36px;
    }
    
    .footer-qr-title {
        font-size: 0.9rem;
    }
    
    .footer-qr-subtitle {
        font-size: 0.75rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        min-height: 320px;
        padding: 1.5rem 0;
    }
    
    .header-content {
        padding: 1rem 0;
    }
    
    .restaurant-logo {
        width: 90px;
        height: 90px;
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }
    
    .restaurant-name {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    
    .restaurant-subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .restaurant-info {
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 0.8rem;
    }
    
    .info-item {
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .scroll-card {
        min-width: 280px;
    }
    
    .products-scroll {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .config-panel {
        padding: 1rem;
    }
}

/* Styles pour la gestion des images */
.image-upload-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.image-upload-btn {
    flex: 1;
    padding: 0.5rem;
    border: 2px dashed var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.image-upload-btn:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.image-preview-container {
    margin-top: 0.5rem;
    text-align: center;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
}

.image-preview-container button {
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-preview-container button:hover {
    background: var(--primary);
}

/* Styles pour la caméra */
.camera-modal {
    max-width: 600px;
}

.camera-video {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 2px solid var(--border);
}

.camera-preview {
    margin-bottom: 1rem;
}

.camera-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
}

.camera-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.camera-controls button {
    flex: 1;
    min-width: 120px;
    font-size: 0.9rem;
}

/* Responsive pour les boutons d'image */
@media (max-width: 480px) {
    .image-upload-container {
        flex-direction: column;
    }
    
    .camera-controls {
        flex-direction: column;
    }
    
    .camera-controls button {
        min-width: auto;
    }
}

/* Styles pour la configuration du restaurant */
.restaurant-config-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    /* backdrop-filter supprim� pour performance */
}

.restaurant-config-modal {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.restaurant-config-header {
    background: var(--gradient);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.restaurant-config-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.restaurant-config-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.restaurant-config-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.restaurant-config-content {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Onglets */
.config-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
}

.tab-btn {
    background: var(--bg-secondary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: var(--primary);
    color: white;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Formulaires */
.tab-panel .form-group {
    margin-bottom: 1.5rem;
}

.tab-panel .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.tab-panel .form-group input,
.tab-panel .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.tab-panel .form-group input:focus,
.tab-panel .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tab-panel .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Actions */
.restaurant-config-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

.restaurant-config-actions .form-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.restaurant-config-actions .form-btn.cancel {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.restaurant-config-actions .form-btn.cancel:hover {
    background: var(--text-light);
    color: white;
}

.restaurant-config-actions .form-btn.save {
    background: var(--primary);
    color: white;
}

.restaurant-config-actions .form-btn.save:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .restaurant-config-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .config-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .tab-btn {
        justify-content: center;
    }
    
    .restaurant-config-actions {
        flex-direction: column;
    }
    
    .restaurant-config-actions .form-btn {
        width: 100%;
        justify-content: center;
    }
} 

/* Styles spécifiques pour le panneau d'administration - isolés du thème du menu */
.config-panel {
    /* Forcer les couleurs du panneau admin pour qu'elles ne soient pas affectées par le thème */
    background: #ffffff !important;
    color: #2d3748 !important;
    border: 1px solid #e2e8f0 !important;
}

.config-panel .config-title {
    color: #2d3748 !important;
}

.config-panel .config-section h4 {
    color: #2d3748 !important;
}

.config-panel .sample-btn {
    /* Garder les couleurs originales des boutons admin */
    background: #667eea !important;
    color: white !important;
}

.config-panel .sample-btn:hover {
    background: #5a67d8 !important;
}

/* Boutons spécifiques du panneau admin avec leurs couleurs originales */
.config-panel .sample-btn[onclick*="downloadSampleCSV"] {
    background: #ffd23f !important;
    color: #2d3748 !important;
}

.config-panel .sample-btn[onclick*="exportCurrentMenu"] {
    background: #718096 !important;
    color: white !important;
}

.config-panel .sample-btn[onclick*="showQuickAddProduct"] {
    background: #10b981 !important;
    color: white !important;
}

.config-panel .sample-btn[onclick*="showProductManager"] {
    background: #3b82f6 !important;
    color: white !important;
}

.config-panel .sample-btn[onclick*="showRestaurantConfig"] {
    background: #8b5cf6 !important;
    color: white !important;
}

.config-panel .sample-btn[onclick*="showPromotionsManager"] {
    background: #dc2626 !important;
    color: white !important;
}

.config-panel .sample-btn[onclick*="showMenuInfo"] {
    background: #4a90e2 !important;
    color: white !important;
}

.config-panel .sample-btn[onclick*="resetMenu"] {
    background: #ef4444 !important;
    color: white !important;
}

.config-panel .sample-btn[onclick*="logoutAdmin"] {
    background: #dc2626 !important;
    color: white !important;
}

/* Bouton de thème dans le panneau admin */
.config-panel .theme-toggle-btn {
    background: #667eea !important;
    color: white !important;
}

.config-panel .theme-toggle-btn:hover {
    background: #5a67d8 !important;
}

/* Boutons de reset et autres dans le panneau admin */
.config-panel .sample-btn[onclick*="resetTheme"] {
    background: #9ca3af !important;
    color: white !important;
}

/* Inputs de couleur dans le panneau admin */
.config-panel .color-input-wrapper label {
    color: #2d3748 !important;
}

/* Textes dans le panneau admin */
.config-panel .promos-display {
    color: #2d3748 !important;
}

/* Modals du panneau admin */
.product-manager-overlay,
.move-product-overlay,
.add-category-overlay,
.restaurant-config-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
}

.product-manager-modal,
.move-product-modal,
.add-category-modal,
.restaurant-config-modal {
    background: #ffffff !important;
    color: #2d3748 !important;
}

.product-manager-title,
.move-product-title,
.add-category-title,
.restaurant-config-title {
    color: #2d3748 !important;
}

.product-manager-close,
.move-product-close,
.add-category-close,
.restaurant-config-close {
    color: #2d3748 !important;
}

.product-manager-close:hover,
.move-product-close:hover,
.add-category-close:hover,
.restaurant-config-close:hover {
    background: #f7fafc !important;
}

/* Formulaires dans les modals admin */
.product-manager-modal .form-group label,
.move-product-modal .form-group label,
.add-category-modal .form-group label,
.restaurant-config-modal .form-group label {
    color: #2d3748 !important;
}

.product-manager-modal .form-group input,
.move-product-modal .form-group input,
.add-category-modal .form-group input,
.restaurant-config-modal .form-group input,
.product-manager-modal .form-group textarea,
.restaurant-config-modal .form-group textarea {
    background: #ffffff !important;
    color: #2d3748 !important;
    border: 1px solid #e2e8f0 !important;
}

.product-manager-modal .form-group input:focus,
.move-product-modal .form-group input:focus,
.add-category-modal .form-group input:focus,
.restaurant-config-modal .form-group input:focus,
.product-manager-modal .form-group textarea:focus,
.restaurant-config-modal .form-group textarea:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* Boutons dans les modals admin */
.product-manager-modal .form-btn,
.move-product-modal .form-btn,
.add-category-modal .form-btn,
.restaurant-config-modal .form-btn {
    background: #667eea !important;
    color: white !important;
}

.product-manager-modal .form-btn:hover,
.move-product-modal .form-btn:hover,
.add-category-modal .form-btn:hover,
.restaurant-config-modal .form-btn:hover {
    background: #5a67d8 !important;
}

.product-manager-modal .form-btn.cancel,
.move-product-modal .form-btn.cancel,
.add-category-modal .form-btn.cancel,
.restaurant-config-modal .form-btn.cancel {
    background: #9ca3af !important;
    color: white !important;
}

.product-manager-modal .form-btn.cancel:hover,
.move-product-modal .form-btn.cancel:hover,
.add-category-modal .form-btn.cancel:hover,
.restaurant-config-modal .form-btn.cancel:hover {
    background: #6b7280 !important;
}

.product-manager-modal .form-btn.save,
.add-category-modal .form-btn.save,
.restaurant-config-modal .form-btn.save {
    background: #10b981 !important;
    color: white !important;
}

.product-manager-modal .form-btn.save:hover,
.add-category-modal .form-btn.save:hover,
.restaurant-config-modal .form-btn.save:hover {
    background: #059669 !important;
}

.product-manager-modal .form-btn.move {
    background: #8b5cf6 !important;
    color: white !important;
}

.product-manager-modal .form-btn.move:hover {
    background: #7c3aed !important;
}

/* Onglets dans la config restaurant */
.restaurant-config-modal .tab-btn {
    background: #f7fafc !important;
    color: #2d3748 !important;
    border: 1px solid #e2e8f0 !important;
}

.restaurant-config-modal .tab-btn:hover {
    background: #edf2f7 !important;
}

.restaurant-config-modal .tab-btn.active {
    background: #667eea !important;
    color: white !important;
}

/* Filtres de produits */
.product-filters {
    margin-bottom: 1.5rem;
}

.filters-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.product-filters .product-filter {
    background: #f7fafc !important;
    color: #2d3748 !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.product-filters .product-filter:hover {
    background: #edf2f7 !important;
}

.product-filters .product-filter.active {
    background: #667eea !important;
    color: white !important;
}

.categories-container {
    margin-top: 1rem;
}

.categories-expandable {
    position: relative;
}

.expand-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--text-primary, #2d3748);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.expand-toggle-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
}

.expand-toggle-btn i {
    transition: transform 0.3s ease;
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.expandable-content.expanded {
    max-height: 500px;
    opacity: 1;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 20px;
    padding: 0.25rem 0.5rem 0.25rem 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    max-width: fit-content;
}

.category-item:hover {
    box-shadow: var(--shadow, 0 2px 4px -1px rgba(0, 0, 0, 0.1));
    transform: translateY(-1px);
}

.category-item .product-filter {
    margin: 0;
    text-align: left;
    justify-content: flex-start;
    background: transparent !important;
    border: none !important;
    color: var(--text-primary, #2d3748) !important;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.category-item .product-filter:hover {
    background: var(--primary) !important;
    color: white !important;
}

.category-item .product-filter.active {
    background: var(--primary) !important;
    color: white !important;
}

.category-actions {
    display: flex;
    gap: 0.125rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 0.25rem;
}

.category-item:hover .category-actions {
    opacity: 1;
}

.category-edit-btn,
.category-delete-btn {
    background: transparent;
    border: none;
    padding: 0.125rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
}

.category-edit-btn {
    color: var(--primary);
}

.category-edit-btn:hover {
    background: var(--primary);
    color: white;
}

.category-delete-btn {
    color: #ef4444;
}

.category-delete-btn:hover {
    background: #ef4444;
    color: white;
}

/* Boutons d'action des produits */
.product-action-btn {
    background: #667eea !important;
    color: white !important;
}

.product-action-btn:hover {
    background: #5a67d8 !important;
}

.product-action-btn.edit {
    background: #3b82f6 !important;
}

.product-action-btn.edit:hover {
    background: #2563eb !important;
}

.product-action-btn.move {
    background: #8b5cf6 !important;
}

.product-action-btn.move:hover {
    background: #7c3aed !important;
}

.product-action-btn.delete {
    background: #ef4444 !important;
}

.product-action-btn.delete:hover {
    background: #dc2626 !important;
}

/* Bouton d'ajout de catégorie */
.add-category-btn {
    background: #10b981 !important;
    color: white !important;
}

.add-category-btn:hover {
    background: #059669 !important;
}

/* Sélection de catégorie */
.category-option {
    background: #f7fafc !important;
    color: #2d3748 !important;
    border: 1px solid #e2e8f0 !important;
}

.category-option:hover {
    background: #edf2f7 !important;
}

.category-option.selected {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
} 

/* Cart Modal Styles */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    /* backdrop-filter supprim� pour performance */
}

.cart-modal {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
    border-radius: 16px 16px 0 0;
}

.cart-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cart-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: 400px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cart-item-info {
    flex: 1;
    margin-right: 1rem;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-promo {
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.quantity-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.quantity-display {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    border: 1px solid var(--border);
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
    border-radius: 0 0 16px 16px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--primary);
}

.total-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.total-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

/* Cart Tip Section - Version discrète */
.cart-tip-section {
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    margin-top: 0.5rem;
}

.tip-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.tip-header h4 {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.8;
}

.tip-options {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tip-btn {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 50px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tip-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px var(--shadow-color, rgba(102, 126, 234, 0.3));
}

.tip-btn.selected {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--white) !important;
    box-shadow: 0 2px 8px var(--shadow-color, rgba(102, 126, 234, 0.3)) !important;
    transform: scale(1.05) !important;
    z-index: 10 !important;
    position: relative !important;
}

.tip-btn.selected:hover {
    background: var(--primary) !important;
    filter: brightness(0.9);
    transform: scale(1.05) translateY(-1px) !important;
}

.tip-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

.tip-btn:hover .tip-text {
    color: var(--white);
}

.tip-btn.selected .tip-text {
    color: var(--white) !important;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    flex-direction: row;
}

/* Bouton Vider le panier - Design moderne */
.clear-cart-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.7rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.3);
    font-family: inherit;
    flex: 1;
    min-width: 0;
}

.clear-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.clear-cart-btn:hover::before {
    left: 100%;
}

.clear-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.clear-cart-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.clear-cart-btn .btn-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.clear-cart-btn .btn-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.clear-cart-btn .btn-text {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.clear-cart-btn .btn-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
}

.clear-cart-btn .btn-arrow {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.clear-cart-btn:hover .btn-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* Bouton Commander - Design moderne */
.checkout-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.7rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
    font-family: inherit;
    flex: 1;
    min-width: 0;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.checkout-btn:hover::before {
    left: 100%;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: var(--secondary);
}

.checkout-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.checkout-btn .btn-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.checkout-btn .btn-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.checkout-btn .btn-text {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.checkout-btn .btn-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
}

.checkout-btn .btn-arrow {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.checkout-btn:hover .btn-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* Anciens styles supprimés - remplacés par le design moderne ci-dessus */

/* Header Buttons */
.header-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.header-tracking-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.header-tracking-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.header-tracking-btn:hover::before {
    left: 100%;
}

.header-tracking-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: var(--secondary);
}

.header-tracking-btn i {
    font-size: 1.2rem;
}

/* Modal de suivi de commande */
.order-tracking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.order-tracking-modal {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.order-tracking-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-tracking-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-tracking-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.order-tracking-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.order-tracking-content {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.tracking-search {
    margin-bottom: 1.5rem;
}

.tracking-multiple-orders {
    margin-bottom: 1rem;
}

.multiple-orders-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: var(--bg-secondary, #f8fafc);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    font-weight: 600;
    color: var(--primary);
}

.multiple-orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.order-item-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-item-select:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-item-select.selected {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.order-item-select.selected .order-item-number {
    color: var(--primary);
}

.order-item-select.selected .amount-value {
    color: var(--primary-dark);
}

.order-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.order-item-number {
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-item-number i {
    color: var(--primary);
}

.order-item-status {
    font-size: 0.85rem;
    color: #6b7280;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-pending {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.status-badge.status-paid {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.status-preparing {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-badge.status-ready {
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.status-badge.status-completed {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.order-item-time {
    font-size: 0.8rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.order-item-table {
    font-size: 0.8rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

.order-item-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.amount-value {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.click-hint {
    font-size: 0.7rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.7;
}



.tracking-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.tracking-back-btn {
    background: var(--bg-secondary, #f8fafc);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.tracking-back-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.tracking-live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    font-size: 0.85rem;
    color: #16a34a;
    font-weight: 500;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.tracking-order-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary, #f8fafc);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.tracking-order-number {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.3rem;
}

.tracking-order-time {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.tracking-order-table {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.tracking-status-container {
    margin-bottom: 1.5rem;
}

.tracking-status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.tracking-status-item.active {
    opacity: 1;
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid var(--primary);
}

.tracking-status-item.completed {
    opacity: 1;
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22c55e;
    color: #16a34a;
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #6b7280;
    transition: all 0.3s ease;
}

.tracking-status-item.active .status-icon {
    background: var(--primary);
    color: white;
}

.tracking-status-item.completed .status-icon {
    background: #22c55e;
    color: white;
}


.status-content {
    flex: 1;
}

.status-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.2rem;
}

.status-description {
    font-size: 0.85rem;
    color: #6b7280;
}

.tracking-order-items {
    margin-bottom: 1rem;
}

.tracking-order-items .order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.tracking-order-items .order-item:last-child {
    border-bottom: none;
}

.tracking-order-items .item-name {
    font-weight: 500;
    color: #1f2937;
}

.tracking-order-items .item-quantity {
    color: #6b7280;
    font-size: 0.9rem;
}

.tracking-order-total {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary, #1f2937);
    padding: 1rem;
    background: var(--bg-secondary, #f8fafc);
    border-radius: 10px;
}

.tracking-cancelled-notice {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.1);
}

.cancelled-notice-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cancelled-icon {
    color: #ef4444;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
}

.cancelled-text h3 {
    margin: 0 0 1rem 0;
    color: #dc2626;
    font-size: 1.5rem;
    font-weight: 700;
}

.cancelled-main-message {
    margin: 0 0 1rem 0;
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
}

.cancelled-details {
    margin: 0 0 1.5rem 0;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 400px;
}

.cancelled-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cancelled-action-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cancelled-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.tracking-error {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.error-icon {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.error-description {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Responsive pour le suivi de commande */
@media (max-width: 768px) {
    .header-buttons {
        top: 15px;
        right: 15px;
    gap: 8px;
    }
    
    .header-tracking-btn {
        width: 45px;
        height: 45px;
    }
    
    .header-tracking-btn i {
        font-size: 1rem;
    }
    
    .order-tracking-modal {
        width: 95%;
        margin: 1rem;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .tracking-search {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .tracking-input {
        width: 100%;
    }
    
    .tracking-search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tracking-header-controls {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .tracking-back-btn {
        justify-content: center;
    }
    
    .tracking-live-indicator {
        justify-content: center;
    }
    
    .tracking-status-container {
        max-height: 40vh;
        overflow-y: auto;
    }
    
    .tracking-status-container::-webkit-scrollbar {
        width: 4px;
    }
    
    .tracking-status-container::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 2px;
    }
    
    .tracking-status-container::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 2px;
    }
    
    /* Améliorer le scroll du modal sur mobile */
    .order-tracking-modal {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    .order-tracking-content {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

/* Modal de sélection de table */
.table-selection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.table-selection-modal {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.table-selection-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-selection-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-selection-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.table-selection-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.table-selection-content {
    padding: 2rem;
    text-align: center;
}

.table-selection-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.table-selection-description {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.table-selection-form {
    margin-bottom: 2rem;
}

.table-selection-form label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.modal-table-select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    color: #374151;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

.modal-table-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-table-select:hover {
    border-color: var(--primary);
}

.table-selection-actions {
    display: flex;
    justify-content: center;
}

.table-confirm-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.table-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.table-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive pour le modal de table */
@media (max-width: 768px) {
    .table-selection-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .table-selection-content {
        padding: 1.5rem;
    }
    
    .table-selection-icon {
        font-size: 2.5rem;
    }
    
    .table-selection-description {
        font-size: 1rem;
    }
    
    .modal-table-select {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
    
    .table-confirm-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
/* Anciens styles de sélection de table supprimés - remplacés par le modal */

/* Responsive Cart */
@media (max-width: 768px) {
    .cart-modal {
        width: 98%;
        max-height: 95vh;
        max-width: 95vw;
    }
    
    .cart-header {
        padding: 1rem;
    }
    
    .cart-title {
        font-size: 1.1rem;
    }
    
    .cart-content {
        padding: 0.5rem;
        max-height: 300px;
    }
    
    .cart-item {
        padding: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .cart-footer {
        padding: 1rem;
    }
    
    .cart-tip-section {
        padding: 0.3rem 0;
    }
    
    .tip-header h4 {
        font-size: 0.8rem;
    }
    
    .tip-options {
        gap: 0.3rem;
    }
    
    .tip-btn {
        padding: 0.3rem 0.5rem;
        min-width: 45px;
    }
    
    .tip-text {
        font-size: 0.7rem;
    }
    
    .cart-actions {
        flex-direction: row;
        gap: 0.8rem;
    }
    
    .clear-cart-btn,
    .checkout-btn {
        padding: 0.6rem;
        gap: 0.5rem;
    }
    
    .clear-cart-btn .btn-icon,
    .checkout-btn .btn-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .clear-cart-btn .btn-text,
    .checkout-btn .btn-text {
        font-size: 0.85rem;
    }
    
    .clear-cart-btn .btn-subtitle,
    .checkout-btn .btn-subtitle {
        font-size: 0.7rem;
    }
    
    .clear-cart-btn .btn-arrow,
    .checkout-btn .btn-arrow {
        width: 18px;
        height: 18px;
        font-size: 0.75rem;
    }
    
/* Anciens styles responsive supprimés */
} 

/* Popup de confirmation de commande */
.order-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    /* backdrop-filter supprim� pour performance */
}

.order-popup {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: popupSlideIn 0.4s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.order-popup-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
}

.order-popup-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.order-popup-content {
    padding: 25px 30px;
    flex: 1;
    overflow-y: auto;
}

.order-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #10b981;
}

.order-details h4 {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.order-details .order-number {
    font-size: 20px;
    font-weight: bold;
    color: #10b981;
    margin-bottom: 10px;
}

.order-details .order-time {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
}

.order-details .order-table {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    margin-bottom: 15px;
    font-weight: 600;
    color: #1f2937;
}

.order-details .order-table i {
    color: #667eea;
    font-size: 1.1rem;
}

.order-details .order-items {
    margin-bottom: 15px;
}

.order-details .order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.order-details .order-item:last-child {
    border-bottom: none;
}

.order-details .item-name {
    font-weight: 500;
    color: #374151;
}

.order-details .item-quantity {
    background: #10b981;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.order-details .order-subtotal {
    font-size: 14px;
    color: #6b7280;
    text-align: right;
    margin-top: 10px;
}

.order-details .order-tip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #059669;
    margin-top: 5px;
    padding: 5px 0;
}

.order-details .tip-label {
    font-weight: 500;
}

.order-details .tip-amount {
    font-weight: 600;
}

.order-details .order-total {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    text-align: right;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e5e7eb;
}

.payment-notice {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.payment-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.payment-notice i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.payment-notice p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.5;
}

.payment-notice p strong {
    font-size: 16px;
    font-weight: 600;
}

.order-popup-footer {
    padding: 15px 30px 20px;
    text-align: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-top: 1px solid #f3f4f6;
    background: #fafbfc;
    border-radius: 0 0 20px 20px;
}

.order-tracking-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.order-tracking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: var(--secondary);
}

.close-popup-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.close-popup-btn:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

.close-popup-btn i {
    margin-right: 8px;
}

/* Responsive pour le popup */
@media (max-width: 768px) {
    .order-popup {
        width: 95%;
        margin: 20px;
    }
    
    .order-popup-header {
        padding: 20px;
    }
    
    .order-popup-header h3 {
        font-size: 20px;
    }
    
    .success-icon {
        font-size: 36px;
    }
    
    .order-popup-content {
        padding: 20px;
    }
    
    .payment-notice {
        padding: 15px;
    }
    
    .payment-notice p {
        font-size: 13px;
    }
    
    .payment-notice p strong {
        font-size: 14px;
    }
    
    .order-popup-footer {
        padding: 15px 20px 20px;
    }
    
    .close-popup-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* Modal de présentation des produits */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal-overlay.show {
    opacity: 1;
}

.product-modal {
    background: var(--bg-card, var(--bg-primary));
    border-radius: 0;
    width: 100%;
    height: 100vh;
    max-width: none;
    max-height: none;
    overflow: auto;
    transform: none;
    transition: none;
    position: relative;
}

.product-modal-overlay.show .product-modal {
    transform: none;
}

.product-modal-header {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.product-modal-close {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.product-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.product-modal-content {
    display: flex;
    flex-direction: column;
}

.product-modal-image-container {
    position: relative;
    height: 40vh;
    min-height: 220px;
    max-height: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-promo-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary, #f093fb);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-modal-info {
    padding: 25px;
}

.product-modal-category {
    color: var(--text-secondary, #718096);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-modal-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary, #2d3748);
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-modal-description {
    color: var(--text-secondary, #718096);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-modal-price {
    margin-bottom: 25px;
}

.product-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price-original {
    text-decoration: line-through;
    color: var(--text-light, #a0aec0);
    font-size: 18px;
}

.product-price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary, #667eea);
}

.product-modal-actions {
    display: flex;
    gap: 15px;
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, var(--bg-card, #ffffff), rgba(255,255,255,0.92) 60%, rgba(255,255,255,0));
    padding-top: 10px;
    margin-top: 10px;
    padding-bottom: 10px;
    z-index: 5;
}

.product-modal-info .product-modal-options {
    margin-bottom: 16px;
}

.option-chip {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    transition: var(--transition, all .2s ease);
    margin-bottom: 8px;
}
.option-chip:hover { border-color: var(--primary); }
.option-chip.selected {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.product-modal-add-btn {
    background: var(--gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.product-modal-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive pour la modal */
@media (max-width: 768px) {
    .product-modal {
        width: 95%;
        max-height: 90vh;
        border-radius: 15px;
    }
    
    .product-modal-image-container {
        min-height: 150px;
        max-height: 250px;
    }
    
    .product-modal-image {
        max-height: 250px;
    }
    
    .product-modal-info {
        padding: 20px;
    }
    
    .product-modal-name {
        font-size: 24px;
    }
    
    .product-modal-description {
        font-size: 14px;
    }
    
    .product-price-current {
        font-size: 20px;
    }
    
    .product-modal-add-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* Styles pour les nouvelles fonctionnalités */
.stat-tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-tab-btn:hover {
    color: #0f172a;
    background: #f8fafc;
}

.stat-tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.statistics-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-manager-item:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.category-manager-item:active {
    cursor: grabbing;
}

.stock-product-item:hover {
    background: #f8fafc !important;
}

.stock-product-item[style*="background: #fef2f2"]:hover {
    background: #fee2e2 !important;
}

/* Styles pour les allergènes */
.allergen-badge {
    display: inline-block;
    transition: all 0.2s ease;
}

.allergen-badge:hover {
    transform: scale(1.05);
}

.allergen-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.allergen-filter-btn.active {
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}