/* ====== Global Styles ====== */
:root {
    --primary-color: #009092;
    --secondary-color: #74c1c2;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --white-color: #fefefe;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --accent-color: #009494;

    /* خلفيات ونصوص */
    --bg-color: #fefefe;
    --text-color: #333;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
}

/* الوضع المظلم */
[data-theme="dark"] {
    --primary-color: #009092;
    --secondary-color: #74c1c2;
    --dark-color: #f4f4f4;
    --light-color: #333;
    --white-color: #1a1a1a;
    --gray-color: #b0b0b0;
    --light-gray: #2c2c2c;
    --accent-color: #009494;

    /* خلفيات ونصوص */
    --bg-color: #121212;
    --text-color: #f4f4f4;
    --card-bg: #1e1e1e;
    --border-color: #2c2c2c;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    direction: rtl;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* إخفاء scroll bar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Mobile App Style */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--bg-color);
    min-height: calc(100vh - 120px);
    padding-bottom: 70px;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

/* Main Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.logo a {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: none;
    position: absolute;
    top: 90px;
    right: 0;
    left: 0;
    background-color: var(--white-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 10px 0;
    z-index: 1000;
    max-width: 480px;
    margin: 0 auto;
}

.nav-links.active {
    display: flex;
}

.nav-links a {
    padding: 12px 20px;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--light-gray);
}

.nav-links a:last-child {
    border-bottom: none;
}

.nav-links a.active {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.mobile-menu-toggle {
    font-size: 20px;
    cursor: pointer;
    color: var(--dark-color);
}

/* Pages Section */
.pages-section {
    padding: 15px;
    margin-bottom: 20px;
}

.pages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.page-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background-color: var(--white-color);
    border-radius: 12px;
    padding: 15px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}


.page-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 87, 34, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.page-icon i {
    font-size: 22px;
    color: var(--primary-color);
}

.page-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-color);
    text-align: center;
}

.admin-card {
    background-color: rgba(0, 123, 255, 0.1);
}

.admin-card .page-icon {
    background-color: rgba(0, 123, 255, 0.2);
}

.admin-card .page-icon i {
    color: #0077cc;
}

.admin-access-info {
    background-color: #e8f4fd;
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    border-right: 4px solid #0077cc;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.info-header i {
    font-size: 20px;
    color: #0077cc;
}

.info-header h3 {
    font-size: 16px;
    color: #0077cc;
    margin: 0;
}

.admin-access-info p {
    margin: 8px 0;
    font-size: 14px;
}

.admin-access-info a {
    color: #0077cc;
    text-decoration: none;
    font-weight: 500;
}

.admin-access-info ul {
    margin: 8px 0;
    padding-right: 20px;
}

.admin-access-info li {
    margin-bottom: 5px;
    font-size: 14px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--card-bg);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    height: 60px;
    max-width: 480px;
    margin: 0 auto;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    text-decoration: none;
    font-size: 10px;
    transition: all 0.3s ease;
    width: 20%;
}

.nav-item i {
    font-size: 18px;
    margin-bottom: 3px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* Home Page Styles */
.logo-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--white-color);
    border-bottom: 1px solid var(--light-gray);
}

.location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.location i {
    color: var(--primary-color);
}

.search-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
}

/* Welcome Banner */
.welcome-banner {
    position: relative;
    height: 280px;
    border-radius: 15px;
    margin: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 144, 146, 0.8), rgba(116, 193, 194, 0.6));
    transition: background 0.3s ease;
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    color: var(--white-color);
    text-align: center;
}

.welcome-text {
    margin-bottom: 20px;
}

.restaurant-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.restaurant-tagline {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 0;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.restaurant-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.info-item i {
    font-size: 16px;
    color: var(--white-color);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background-color: var(--white-color);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


.btn-secondary {
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Welcome Banner */
@media (max-width: 480px) {
    .welcome-banner {
        height: 260px;
        margin: 10px;
    }

    .banner-content {
        padding: 15px;
    }

    .restaurant-name {
        font-size: 20px;
    }

    .restaurant-tagline {
        font-size: 14px;
    }

    .info-item {
        font-size: 13px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .welcome-banner {
        height: 240px;
        margin: 8px;
    }

    .banner-content {
        padding: 12px;
    }

    .restaurant-name {
        font-size: 18px;
    }

    .restaurant-tagline {
        font-size: 13px;
    }

    .restaurant-info {
        gap: 6px;
        margin-bottom: 20px;
    }

    .info-item {
        font-size: 12px;
    }

    .info-item i {
        font-size: 14px;
    }

    .action-buttons {
        gap: 10px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Dark Mode Support for Welcome Banner */
[data-theme="dark"] .welcome-banner {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .banner-overlay {
    background: linear-gradient(135deg, rgba(0, 144, 146, 0.9), rgba(116, 193, 194, 0.7));
}

[data-theme="dark"] .btn-primary {
    background-color: var(--card-bg);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Fallback styles for when images fail to load */
.welcome-banner.no-image {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.welcome-banner.no-image .banner-overlay {
    background: rgba(0, 0, 0, 0.2);
}

/* Performance optimizations */
.hero-image {
    will-change: transform;
}

.btn {
    will-change: transform;
}

/* Accessibility improvements */
.welcome-banner:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

[data-theme="dark"] .btn:focus {
    outline-color: var(--primary-color);
}



/* إخفاء شريط التمرير في جميع المتصفحات */
/* للمتصفحات المبنية على Webkit (Chrome, Safari, Edge الجديد) */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* لمتصفح Firefox */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* للمتصفحات القديمة */
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* إخفاء شريط التمرير مع الحفاظ على وظيفة التمرير */
body::-webkit-scrollbar {
    display: none;
}

/* تطبيق على جميع العناصر القابلة للتمرير */
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

/* البانر الترحيبي - تصميم بسيط وعصري */
.welcome-banner {
    margin: 15px;
    padding: 25px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 144, 146, 0.15);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.welcome-text {
    margin-bottom: 20px;
}

.banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
}

.banner-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0;
    font-weight: 400;
}

.banner-features {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.feature-badge i {
    font-size: 0.9rem;
}

.banner-actions {
    text-align: center;
}

.order-now-btn {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transform: translateY(0);
}

.order-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

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

.order-now-btn i {
    font-size: 1rem;
}

/* عناصر الزينة في الخلفية */
.banner-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: float 8s ease-in-out infinite;
}

.circle-1 {
    width: 80px;
    height: 80px;
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.circle-2 {
    width: 60px;
    height: 60px;
    bottom: -15px;
    left: -15px;
    animation-delay: 2s;
}

.circle-3 {
    width: 40px;
    height: 40px;
    top: 50%;
    right: 10px;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-10px) scale(1.1);
        opacity: 0.8;
    }
}

/* تصميم متجاوب للبانر الترحيبي */
@media (max-width: 768px) {
    .welcome-banner {
        margin: 12px;
        padding: 20px 15px;
        min-height: 160px;
    }

    .banner-title {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }

    .banner-subtitle {
        font-size: 0.85rem;
    }

    .banner-features {
        gap: 8px;
        margin-bottom: 20px;
    }

    .feature-badge {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .feature-badge i {
        font-size: 0.8rem;
    }

    .order-now-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .circle-1 {
        width: 60px;
        height: 60px;
    }

    .circle-2 {
        width: 45px;
        height: 45px;
    }

    .circle-3 {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .welcome-banner {
        margin: 10px;
        padding: 18px 12px;
        min-height: 140px;
    }

    .banner-title {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .banner-subtitle {
        font-size: 0.8rem;
    }

    .banner-features {
        gap: 6px;
        margin-bottom: 18px;
    }

    .feature-badge {
        padding: 4px 8px;
        font-size: 0.7rem;
        gap: 4px;
    }

    .feature-badge i {
        font-size: 0.75rem;
    }

    .order-now-btn {
        padding: 9px 20px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .circle-1 {
        width: 50px;
        height: 50px;
        top: -15px;
        right: -15px;
    }

    .circle-2 {
        width: 35px;
        height: 35px;
        bottom: -10px;
        left: -10px;
    }

    .circle-3 {
        width: 25px;
        height: 25px;
        right: 8px;
    }
}

/* دعم الوضع المظلم للبانر */
[data-theme="dark"] .welcome-banner {
    box-shadow: 0 8px 24px rgba(0, 144, 146, 0.25);
}

[data-theme="dark"] .order-now-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

[data-theme="dark"] .order-now-btn:hover {
    background: rgba(255, 255, 255, 1);
}

[data-theme="dark"] .feature-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .feature-badge:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* تحسينات إضافية للبانر */
.welcome-banner {
    transition: all 0.3s ease;
}

.welcome-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 144, 146, 0.2);
}

[data-theme="dark"] .welcome-banner:hover {
    box-shadow: 0 12px 32px rgba(0, 144, 146, 0.3);
}

/* تأثيرات الحركة المحسنة */
.banner-content>* {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.welcome-text {
    animation-delay: 0.2s;
}

.banner-features {
    animation-delay: 0.4s;
}

.banner-actions {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين الأداء */
.welcome-banner,
.order-now-btn,
.feature-badge {
    will-change: transform;
}

/* إضافة تأثير نبضة خفيفة للزر */
.order-now-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(0, 144, 146, 0.1);
    }

    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(45deg, #ff5252, #ff7979);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-banner {
        height: 220px;
        margin: 10px;
    }

    .slide-content {
        padding: 0 20px;
        margin-right: 20px;
    }

    .slide-content h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .slide-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .cta-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 15px 10px;
    }

    .category-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .category-name {
        font-size: 12px;
    }

    .food-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .food-card {
        margin-bottom: 10px;
    }

    .food-image {
        height: 120px;
    }

    .food-info {
        padding: 10px;
    }

    .food-name {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .food-price {
        font-size: 14px;
    }

    .add-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 200px;
        margin: 8px;
    }

    .slide-content {
        padding: 0 15px;
        margin-right: 15px;
    }

    .slide-content h1 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }

    .cta-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .category-card {
        padding: 12px 8px;
    }

    .category-icon {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .category-name {
        font-size: 11px;
    }

    .food-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .food-image {
        height: 100px;
    }

    .food-info {
        padding: 8px;
    }

    .food-name {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .food-price {
        font-size: 13px;
    }

    .add-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* إخفاء شريط التمرير في الحاويات المخصصة */
.app-container,
.main-content,
.content-wrapper,
.page-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.app-container::-webkit-scrollbar,
.main-content::-webkit-scrollbar,
.content-wrapper::-webkit-scrollbar,
.page-content::-webkit-scrollbar {
    display: none;
}

/* إخفاء شريط التمرير في القوائم والشبكات */
.category-buttons,
.food-grid,
.menu-items,
.category-grid {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-buttons::-webkit-scrollbar,
.food-grid::-webkit-scrollbar,
.menu-items::-webkit-scrollbar,
.category-grid::-webkit-scrollbar {
    display: none;
}

/* Category Buttons */
.category-section {
    padding: 15px;
}

.category-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

.category-buttons {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.category-btn {
    min-width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    text-decoration: none;
    font-size: 12px;
    padding: 10px;
}

.category-btn i {
    font-size: 24px;
    margin-bottom: 5px;
}

/* Food Items */
.food-section {
    padding: 15px;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.food-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}


.food-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.food-info {
    padding: 10px;
}

.food-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.food-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--gray-color);
}

.food-price {
    font-weight: bold;
    color: var(--primary-color);
}

.add-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

/* Food Details Page */
.food-detail {
    padding: 15px;
}

.food-detail-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
}

.food-detail-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.food-detail-description {
    color: var(--gray-color);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.food-detail-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meta-label {
    font-size: 12px;
    color: var(--gray-color);
}

.meta-value {
    font-weight: bold;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--light-gray);
    border: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quantity {
    font-size: 18px;
    font-weight: bold;
}

.add-to-cart-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 12px;
    border-radius: 10px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Cart Page */
.cart-items {
    padding: 15px;
}

.cart-item {
    display: flex;
    margin-bottom: 15px;
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    padding: 0 10px;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

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

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-summary {
    background-color: var(--white-color);
    border-radius: 15px;
    padding: 15px;
    margin: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-row.total {
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
    border-top: 1px solid var(--light-gray);
    padding-top: 10px;
}

.checkout-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 12px;
    border-radius: 10px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}

/* Profile Page */
.profile-header {
    background-color: var(--white-color);
    padding: 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-gray);
}

.profile-title {
    font-size: 18px;
    font-weight: bold;
}

.edit-profile-btn {
    color: var(--primary-color);
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.profile-info {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.profile-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.profile-email {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.profile-section {
    margin-top: 20px;
}

.profile-section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 0 15px;
}

.menu-list {
    background-color: var(--white-color);
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.menu-item-text {
    font-size: 14px;
}

.menu-item-right i {
    color: var(--gray-color);
}

/* Notification Styles */
.notification-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
    background-color: var(--white-color);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: rgba(255, 87, 34, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-left: 10px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.notification-text {
    font-size: 14px;
    color: var(--gray-color);
}

.notification-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-gray);
    transition: .4s;
    border-radius: 34px;
}

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

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

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

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
}

.category-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background-color: rgba(116, 193, 194, 0.2);
}

.category-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.category-name {
    font-size: 12px;
    text-align: center;
}

/* Order Tracking */
.tracking-map {
    height: 200px;
    background-color: #e9e9e9;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.delivery-info {
    background-color: var(--white-color);
    border-radius: 15px;
    padding: 15px;
    margin: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.delivery-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.time-label {
    font-size: 16px;
    font-weight: bold;
}

.time-value {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.delivery-person {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.delivery-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 10px;
}

.delivery-person-info {
    flex: 1;
}

.delivery-person-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.delivery-person-rating {
    color: var(--gray-color);
    font-size: 12px;
}

.contact-buttons {
    display: flex;
    gap: 10px;
}

.contact-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    text-decoration: none;
}

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

.message-btn {
    background-color: var(--gray-color);
}

.delivery-route {
    margin-top: 20px;
}

.route-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.route-info {
    color: var(--gray-color);
    font-size: 14px;
    line-height: 1.5;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
}

.form-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

/* Login/Register Page */
.auth-container {
    padding: 20px;
}

.auth-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}


/* Utilities */
.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .app-container {
        width: 100%;
    }

    .bottom-nav {
        width: 100%;
    }
}

.notifications-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 20px;
    margin-right: 10px;
    margin-left: 5px;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
}


@media (max-width: 480px) {
    .notifications-btn {
        font-size: 18px;
        margin-right: 5px;
    }
}

::webkit-scrollbar {
    display: none;
}

/* Logo Bar Styles */
.logo-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    max-height: 40px;
}

.logo span {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.notification-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Update Nav Item Active Color */
.nav-item.active {
    color: var(--primary-color);
}

/* Update Input Checked Toggle Slider */
input:checked+.toggle-slider {
    background-color: var(--primary-color);
}

/* زر تبديل الوضع المظلم */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}


.theme-toggle i {
    font-size: 18px;
    color: var(--primary-color);
}

/* تحديثات إضافية للوضع المظلم */


[data-theme="dark"] .slide::before {
    background: linear-gradient(135deg, rgba(0, 144, 146, 0.9), rgba(0, 144, 146, 0.6));
}

[data-theme="dark"] .dot {
    background-color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .dot.active {
    background-color: rgba(255, 255, 255, 0.9);
}


[data-theme="dark"] .food-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .category-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .bottom-nav {
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .toast {
    background-color: #2c2c2c;
    color: var(--white-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* تحسين الانتقال بين الأوضاع */
body,
.app-container,
.logo-bar,
.main-nav,
.food-card,
.category-card,
.bottom-nav,
.notification-item,
.menu-list,
.profile-header,
.cart-item,
.cart-summary {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}