/* Global Styles */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #48dbfb;
    --accent-color: #1dd1a1;
    --dark-color: #2f3542;
    --light-color: #f1f2f6;
    --gray-color: #a4b0be;
    --white-color: #ffffff;
    --black-color: #000000;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #ff6b6b;
    --secondary-color: #48dbfb;
    --accent-color: #1dd1a1;
    --dark-color: #f1f2f6;
    --light-color: #2f3542;
    --gray-color: #747d8c;
    --white-color: #2f3542;
    --black-color: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-outline-light {
    background-color: transparent;
    border: 2px solid var(--white-color);
    color: var(--white-color);
}

.btn-outline-light:hover {
    background-color: var(--white-color);
    color: var(--dark-color);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.85rem;
}

.btn-danger {
    background-color: #ff4757;
    color: var(--white-color);
}

.btn-danger:hover {
    background-color: #ff6b81;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark-color);
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto;
    border-radius: 2px;
}

/* Header Styles */
.header {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.auth-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--white-color);
    min-width: 160px;
    box-shadow: var(--shadow);
    border-radius: 5px;
    z-index: 1;
    margin-top: 5px;
}

.dropdown-item {
    color: var(--dark-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: var(--transition);
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.show {
    display: block;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 100px 0;
    text-align: center;
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2));
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.search-bar button {
    border-radius: 0 5px 5px 0;
    padding: 0 25px;
}

/* Banner Section */
.banner {
    padding: 40px 0;
}

.promo-banner {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.promo-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.promo-banner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white-color);
    padding: 20px;
}

.banner-text h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

/* Categories Section */
.categories {
    padding: 60px 0;
    background-color: var(--white-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.category-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 500;
}

/* Offers Section */
.offers {
    padding: 60px 0;
    background-color: var(--light-color);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.offer-card {
    border-radius: 10px;
    padding: 30px;
    color: var(--white-color);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.offer-primary {
    background-color: var(--primary-color);
}

.offer-secondary {
    background-color: var(--secondary-color);
}

.offer-accent {
    background-color: var(--accent-color);
}

.offer-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.offer-card p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 60px 0;
    background-color: var(--white-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    transition: var(--transition);
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray-color);
}

/* Restaurants Section */
.restaurants {
    padding: 60px 0;
    background-color: var(--light-color);
}

.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.restaurant-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.restaurant-img {
    height: 150px;
    overflow: hidden;
}

.restaurant-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.restaurant-card:hover .restaurant-img img {
    transform: scale(1.05);
}

.restaurant-info {
    padding: 15px;
}

.restaurant-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.rating {
    margin-bottom: 8px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.stars {
    font-size: 0.9rem;
}

.review-count {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-left: 5px;
}

.restaurant-info p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Recommended Section */
.recommended {
    padding: 60px 0;
    background-color: var(--white-color);
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.food-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.food-img {
    height: 150px;
    overflow: hidden;
}

.food-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.food-card:hover .food-img img {
    transform: scale(1.05);
}

.food-info {
    padding: 15px;
}

.food-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.food-info p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.food-description {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.food-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Footer Styles */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p {
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--white-color);
    opacity: 0.8;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: var(--white-color);
    margin: 10% auto;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

.modal-scrollable {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-scrollable::-webkit-scrollbar {
    width: 8px;
}

.modal-scrollable::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 10px;
}

.modal-scrollable::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.close:hover {
    color: var(--dark-color);
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

/* Dashboard Layout */
#dashboardContainer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--dark-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-main {
    flex: 1;
    padding: 30px 0;
    position: relative;
}

.dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.dashboard-nav a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.dashboard-nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

.user-dropdown {
    position: relative;
}

#userMenuBtn {
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: var(--transition);
}

#userMenuBtn:hover {
    background-color: rgba(255,255,255,0.1);
}

#userDropdown {
    right: 0;
    left: auto;
    min-width: 200px;
    margin-top: 5px;
}

#userDropdown a {
    color: var(--dark-color);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

#userDropdown a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.dashboard-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.dashboard-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.welcome-message {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.05);
}

.welcome-message p {
    font-size: 1.05rem;
    color: var(--dark-color);
    margin-bottom: 0;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.dashboard-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.dashboard-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
}

.dashboard-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.order-list {
    margin-top: 20px;
}

.order-card {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.order-card:hover {
    border-color: var(--primary-color);
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.order-id {
    font-weight: 600;
    color: var(--dark-color);
}

.order-date {
    color: var(--gray-color);
    font-size: 0.85rem;
}

.order-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.order-status.delivered {
    background-color: #d1fae5;
    color: #065f46;
}

.order-status.in-progress {
    background-color: #dbeafe;
    color: #1e40af;
}

.order-status.pending {
    background-color: #fff3bf;
    color: #5c4800;
}

.order-status.canceled {
    background-color: #fee2e2;
    color: #b91c1c;
}

.order-details {
    margin-bottom: 15px;
}

.order-details p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.back-to-dashboard {
    margin-top: 30px;
    text-align: center;
}

.back-to-dashboard a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: var(--transition);
}

.back-to-dashboard a:hover {
    background-color: rgba(255, 107, 107, 0.1);
    text-decoration: none;
}

/* User Profile Section */
.profile-section {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.05);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 2rem;
    color: var(--primary-color);
}

.profile-info h2 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.profile-info p {
    color: var(--gray-color);
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.profile-detail-card {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 8px;
}

.profile-detail-card h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--dark-color);
}

.profile-detail-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .search-bar button {
        border-radius: 5px;
        width: 100%;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .offer-grid, .feature-grid, .restaurant-grid, .food-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .user-table, .restaurant-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        justify-content: center;
    }
    
    .auth-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
    
    .dashboard-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .dashboard-nav a {
        justify-content: center;
    }
    
    .order-actions {
        flex-wrap: wrap;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cart-actions button {
        width: 100%;
    }
}

.dashboard-form {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.05);
}

.form-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-color);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-color);
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-section {
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.search-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-filter input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray-color);
    border-radius: 5px;
}

.user-table, .restaurant-table, .delivery-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-color);
}

th {
    background-color: var(--light-color);
    font-weight: 600;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.pending {
    background-color: #fff3bf;
    color: #5c4800;
}

.status-badge.suspended, .status-badge.inactive {
    background-color: #fee2e2;
    color: #b91c1c;
}

.menu-management, .orders-management, .promotions-management {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.menu-header, .orders-header, .promotions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.menu-item-card {
    display: flex;
    border: 1px solid var(--light-color);
    border-radius: 8px;
    padding: 15px;
    transition: var(--transition);
}

.menu-item-card:hover {
    border-color: var(--primary-color);
}

.menu-item-img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
}

.menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-info {
    flex: 1;
}

.menu-item-info h4 {
    margin-bottom: 5px;
}

.menu-item-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.menu-item-desc {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

.menu-item-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.promotions-list, .assignments-list, .history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.promotion-card, .delivery-order-card {
    border: 1px solid var(--light-color);
    border-radius: 8px;
    padding: 15px;
    transition: var(--transition);
}

.promotion-card:hover, .delivery-order-card:hover {
    border-color: var(--primary-color);
}

.promotion-card h4 {
    margin-bottom: 5px;
}

.promotion-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.working-hours {
    display: grid;
    gap: 10px;
}

.day-hours {
    display: flex;
    align-items: center;
    gap: 10px;
}

.day-hours label {
    width: 80px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-item-form, .user-edit-form, .restaurant-edit-form, .delivery-edit-form {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.05);
}



.dashboard-form {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.05);
}

.form-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-color);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-color);
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-section {
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.search-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-filter input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray-color);
    border-radius: 5px;
}

.user-table, .restaurant-table, .delivery-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-color);
}

th {
    background-color: var(--light-color);
    font-weight: 600;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.pending {
    background-color: #fff3bf;
    color: #5c4800;
}

.status-badge.suspended, .status-badge.inactive {
    background-color: #fee2e2;
    color: #b91c1c;
}

.menu-management, .orders-management, .promotions-management {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.menu-header, .orders-header, .promotions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.menu-item-card {
    display: flex;
    border: 1px solid var(--light-color);
    border-radius: 8px;
    padding: 15px;
    transition: var(--transition);
}

.menu-item-card:hover {
    border-color: var(--primary-color);
}

.menu-item-img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
}

.menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-info {
    flex: 1;
}

.menu-item-info h4 {
    margin-bottom: 5px;
}

.menu-item-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.menu-item-desc {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

.menu-item-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.promotions-list, .assignments-list, .history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.promotion-card, .delivery-order-card {
    border: 1px solid var(--light-color);
    border-radius: 8px;
    padding: 15px;
    transition: var(--transition);
}

.promotion-card:hover, .delivery-order-card:hover {
    border-color: var(--primary-color);
}

.promotion-card h4 {
    margin-bottom: 5px;
}

.promotion-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.working-hours {
    display: grid;
    gap: 10px;
}

.day-hours {
    display: flex;
    align-items: center;
    gap: 10px;
}

.day-hours label {
    width: 80px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-item-form, .user-edit-form, .restaurant-edit-form, .delivery-edit-form {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Updated - Delivery Assignment Modal Styles */
.delivery-item:hover {
    background-color: var(--light-color);
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8em;
    font-weight: 500;
}

.modal-content .close:hover {
    color: var(--primary-color);
}

/* Add these to the end of styles.css */
#realTimeOrderStatus {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.order-status-card {
    padding: 15px;
    border: 1px solid var(--light-color);
    border-radius: 8px;
}

.status-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    position: relative;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--light-color);
    z-index: 1;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.timeline-step p {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 5px;
    color: var(--gray-color);
}

.timeline-step.active p {
    color: var(--dark-color);
    font-weight: 500;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--light-color);
    border: 2px solid var(--light-color);
}

.timeline-step.active .timeline-dot {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.pending {
    background-color: #fff3bf;
    color: #5c4800;
}

.status-badge.accepted, .status-badge.preparing {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-badge.ready {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.on-the-way {
    background-color: #e0e7ff;
    color: #3730a3;
}

.status-badge.delivered {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.cancelled {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* Updated - Delivery Assignment Navigation Styles */
.dashboard-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.dashboard-card.highlight {
    background-color: rgba(255, 107, 107, 0.1);
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}
/* Add to the end of styles.css */

/* Admin Dashboard Specific Styles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: var(--white-color);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.05);
}

.stat-card h3 {
  font-size: 1rem;
  color: var(--gray-color);
  margin-bottom: 10px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-color);
}

.activity-item i {
  font-size: 1.2rem;
  color: var(--primary-color);
  width: 30px;
  text-align: center;
}

.activity-info p {
  margin-bottom: 2px;
  color: var(--dark-color);
}

.activity-info small {
  color: var(--gray-color);
  font-size: 0.8rem;
}

.btn-warning {
  background-color: #ffa502;
  color: white;
}

.btn-warning:hover {
  background-color: #e67e22;
}

/* Form Styles for Admin */
.form-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-color);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-color);
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.form-section {
  margin-bottom: 30px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.search-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-filter input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--gray-color);
  border-radius: 5px;
}

.search-filter select {
  padding: 10px;
  border: 1px solid var(--gray-color);
  border-radius: 5px;
  background-color: var(--white-color);
  color: var(--dark-color);
}

.user-table, .restaurant-table, .delivery-table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--light-color);
}

th {
  background-color: var(--light-color);
  font-weight: 600;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-badge.active {
  background-color: #d1fae5;
  color: #065f46;
}

.status-badge.pending {
  background-color: #fff3bf;
  color: #5c4800;
}

.status-badge.suspended, .status-badge.inactive {
  background-color: #fee2e2;
  color: #b91c1c;
}
.back-to-dashboard {
    margin-top: 30px;
    text-align: center;
}

.back-to-dashboard a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-to-dashboard a:hover {
    text-decoration: underline;
}

/* Delivery Dashboard Styles */
.dashboard-form {
    background: var(--white-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.search-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.search-filter input, 
.search-filter select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--light-color);
    border-radius: 4px;
}

.search-filter button {
    padding: 8px 16px;
}

.delivery-orders-list,
.delivery-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.delivery-order-card,
.delivery-history-card {
    background: var(--white-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.order-id {
    font-weight: bold;
    color: var(--dark-color);
}

.order-date {
    color: var(--gray-color);
    font-size: 0.9em;
}

.order-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: capitalize;
}

.order-status.pending {
    background-color: #fff3cd;
    color: #856404;
}

.order-status.accepted {
    background-color: #cce5ff;
    color: #004085;
}

.order-status.preparing {
    background-color: #d4edda;
    color: #155724;
}

.order-status.ready {
    background-color: #d1ecf1;
    color: #0c5460;
}

.order-status.on-the-way {
    background-color: #e2e3e5;
    color: #383d41;
}

.order-status.delivered {
    background-color: #d4edda;
    color: #155724;
}

.order-status.cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.order-details {
    margin-bottom: 15px;
}

.order-details p {
    margin: 5px 0;
}

.order-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--white-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    margin-top: 0;
    color: var(--gray-color);
    font-size: 1em;
}

.stat-value {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

.earnings-table {
    margin: 20px 0;
    overflow-x: auto;
}

.earnings-table table {
    width: 100%;
    border-collapse: collapse;
}

.earnings-table th,
.earnings-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--light-color);
}

.earnings-table th {
    background-color: var(--light-color);
    font-weight: bold;
}

.rating-summary {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    align-items: center;
}

.rating-score {
    text-align: center;
}

.rating-score h3 {
    font-size: 3em;
    margin: 0;
    color: var(--primary-color);
}

.rating-stars {
    font-size: 1.5em;
    color: #ffc107;
    margin: 5px 0;
}

.rating-distribution {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.bar-container {
    flex: 1;
    background-color: var(--light-color);
    height: 10px;
    border-radius: 5px;
}

.bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.reviews-list {
    margin-top: 20px;
}

.review-card {
    background: var(--white-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-date {
    color: var(--gray-color);
    font-size: 0.9em;
}

.review-rating {
    color: #ffc107;
    font-size: 1.1em;
}

.review-content p {
    margin: 5px 0;
}

.review-customer {
    font-style: italic;
    color: var(--gray-color);
    text-align: right;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--light-color);
    border-radius: 4px;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Add to CSS */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 5px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 250px;
    max-width: 350px;
    box-shadow: var(--shadow);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    background-color: var(--accent-color);
}

.toast-error {
    background-color: var(--primary-color);
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 15px;
    padding: 0;
}

/* Restaurant Dashboard Styles */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.menu-item-card {
    border: 1px solid var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.menu-item-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.menu-item-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-content h4 {
    margin: 0 0 10px 0;
    color: var(--dark-color);
}

.card-content .description {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.card-content .price {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.menu-item-actions {
    display: flex;
    gap: 10px;
}

/* Order Items List */
.order-item-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.order-item-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-color);
    display: flex;
    justify-content: space-between;
}

.order-item-list .price {
    color: var(--primary-color);
    font-weight: bold;
}

.special-instructions {
    font-size: 0.8rem;
    color: var(--gray-color);
    font-style: italic;
    margin-top: 5px;
}

/* Status Badges */
.status-pending {
    background-color: #fff3bf;
    color: #5c4800;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.status-accepted {
    background-color: #dbeafe;
    color: #1e40af;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.status-preparing {
    background-color: #dbeafe;
    color: #1e40af;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.status-ready {
    background-color: #d1fae5;
    color: #065f46;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.status-on-the-way {
    background-color: #d1fae5;
    color: #065f46;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.status-delivered {
    background-color: #d1fae5;
    color: #065f46;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}