/* Variables CSS */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
}

/* Styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

/* Category Pills */
.category-pills .nav-link {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    background-color: white;
    color: var(--primary-color);
    border: 2px solid #e5e7eb;
}

.category-pills .nav-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.category-pills .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Menu Item Card */
.menu-item-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.menu-item-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item-card:hover .card-img-top {
    transform: scale(1.1);
}

.menu-item-card .card-body {
    padding: 1.25rem;
}

.menu-item-card .item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.menu-item-card .item-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-card .item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.menu-item-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Cart Sidebar */
.cart-sidebar {
    top: 100px;
}

.cart-sidebar .card {
    border: none;
    border-radius: 15px;
}

.cart-item {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.cart-item:hover {
    background-color: #f8fafc;
}

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

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

.cart-item-options {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

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

.cart-item-remove {
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-item-remove:hover {
    color: #dc2626;
    transform: scale(1.1);
}

/* Options dans le modal */
.option-group {
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.option-group h6 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.option-item {
    padding: 0.75rem;
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-item:hover {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.option-item.selected {
    border-color: var(--primary-color);
    background-color: #dbeafe;
}

.option-item label {
    cursor: pointer;
    margin-bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-price {
    font-weight: 600;
    color: var(--primary-color);
}

/* Dashboard Stats Cards */
.stat-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Order Cards */
.order-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.order-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.order-card .card-header {
    border-bottom: none;
    background-color: white;
    padding: 1.25rem;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.order-card .card-body {
    padding: 1.25rem;
}

.order-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.order-time {
    font-size: 0.875rem;
    color: #6b7280;
}

.order-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-pending {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-preparing {
    background-color: #fef3c7;
    color: #92400e;
}

.status-ready {
    background-color: #ccfbf1;
    color: #0f766e;
}

.status-completed {
    background-color: #dcfce7;
    color: #166534;
}

/* Order Tracking Steps */
.order-tracking-steps {
    position: relative;
    padding: 2rem 0;
}

.tracking-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 60px;
}

.tracking-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 50px;
    width: 2px;
    height: calc(100% + 2rem);
    background-color: #e5e7eb;
}

.tracking-step.active:not(:last-child)::before {
    background-color: var(--primary-color);
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.tracking-step.active .step-icon {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.tracking-step.completed .step-icon {
    background-color: var(--success-color);
    color: white;
}

.step-content h6 {
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.tracking-step.active .step-content h6,
.tracking-step.completed .step-content h6 {
    color: var(--dark-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Responsive */
@media (max-width: 991px) {
    .cart-sidebar {
        position: static !important;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-item-card .card-img-top {
        height: 150px;
    }

    .order-tracking-steps {
        padding-left: 0;
    }

    .tracking-step {
        padding-left: 50px;
    }
}

/* Boutons personnalisés */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

/* Loader */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Badge styles */
.badge {
    font-weight: 600;
    padding: 0.35rem 0.65rem;
}

/* Card shadows */
.shadow-sm {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}
