:root {
    --primary-color: #241170; /* اللون المميز */
    --secondary-color: #ffca24; /* اللون البرتقالي */
    --background-color: #ffffff; /* اللون الأبيض (دائمًا الخلفية) */
    --text-color: #251170; /* اللون المميز للنصوص */
}

/* شريط أعلى الصفحة */
.navbar {
    background: #241170;
    color: #fffcf2;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .welcome {
    font-size: 1.25rem;
    font-weight: bold;
}

.navbar .icons {
    display: flex;        /* تصميم الصفحة الرئيسية */
        body {
            font-family: Arial, sans-serif;
            background: #fff;
            color: #241170;
            margin: 0;
            padding: 0;
            text-align: right; /* محاذاة النص لليمين */
        }

        /* شريط أعلى الصفحة */
        .navbar {
            background: #241170;
            color: #fffcf2;
            padding: 3rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .navbar .welcome {
            font-size: 1.25rem;
            font-weight: bold;
        }

        .navbar .icons {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .navbar .icons i {
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* تصميم قائمة المنيو */
        .navbar .menu {
            position: relative;
        }

        .navbar .menu-content {
            display: none;
            position: absolute;
            left: 0;
            background: #fff;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
            min-width: 150px;
            z-index: 1;
        }

        .navbar .menu-content a {
            color: #241170;
            padding: 0.75rem 1rem;
            text-decoration: none;
            display: block;
            font-size: 0.875rem;
            text-align: right;
        }

        .navbar .menu-content a:hover {
            background: #f1f1f1;
        }

        .navbar .menu.active .menu-content {
            display: block;
        }

        .navbar .menu .close-btn {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            background: #ffca24;
            color: #241170;
            border: none;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            font-size: 1rem;
            cursor: pointer;
            z-index: 2;
        }

        .navbar .menu.active .close-btn {
            display: block;
        }

        /* تصميم نافذة السلة */
        .navbar .cart {
            position: relative;
        }

        .navbar .cart-content {
            display: none;
            position: absolute;
            right: 0;
            background: #fff;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
            min-width: 200px;
            z-index: 1;
            padding: 1rem;
            text-align: center;
        }

        .navbar .cart.active .cart-content {
            display: block;
        }

        .navbar .cart-content .close-btn {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: #ffca24;
            color: #241170;
            border: none;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            font-size: 1rem;
            cursor: pointer;
        }

        .navbar .cart-content .empty-cart {
            font-size: 0.875rem;
            color: #666;
        }

        /* مربعات العرض */
        .dashboard {
            padding: 2rem;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
        }

        .card {
            background: #fffcf2;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            padding: 1.5rem;
            text-align: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        .card .icon {
            font-size: 2rem;
            color: #5c3cde;
            margin-bottom: 1rem;
        }

        .card .value {
            font-size: 1.5rem;
            font-weight: bold;
            color: #241170;
            margin-bottom: 0.5rem;
        }

        .card .label {
            font-size: 1rem;
            color: #666;
        }

        /* تصميم المربعات الصغيرة */
        .small-card {
            background: #fff;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            padding: 1rem;
            text-align: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .small-card .icon {
            font-size: 1.5rem;
            color: #ffca24;
            margin-bottom: 0.5rem;
        }

        .small-card .label {
            font-size: 0.875rem;
            color: #666;
        }
        a{
            text-decoration: none;
        }
        /* تصميم متجاوب */
        @media (max-width: 768px) {
            .dashboard {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 480px) {
            .dashboard {
                grid-template-columns: 1fr;
            }
        }
    align-items: center;
    gap: 1rem;
}

.navbar .icons i {
    font-size: 1.5rem;
    cursor: pointer;
}

/* تصميم المحتوى */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* حاوية النموذج */
.order-form-container {
    max-width: 600px;
    margin: 50px auto;
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* تصميم العنوان */
.order-form-container h2 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 20px;
}

/* تصميم الحقول */
label {
    font-size: 16px;
    color: var(--text-color);
    display: block;
    margin-bottom: 10px;
    text-align: right;
}

/* تصميم المدخلات */
input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

/* زر إرسال */
button {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color); /* اللون البرتقالي عند التمرير */
}

/* التنسيق عند وجود خطأ */
.error {
    color: red;
    font-size: 16px;
    margin-bottom: 20px;
}

/* تنسيق القائمة المنسدلة */
select {
    font-size: 14px;
}

/* تنسيق نصوص الحقول */
input[type="text"], input[type="number"] {
    font-size: 14px;
}

textarea {
    font-size: 14px;
}


        /* تصميم قائمة المنيو */
        .navbar .menu {
            position: relative;
        }

        .navbar .menu-content {
            display: none;
            position: absolute;
            left: 0;
            background: #fff;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
            min-width: 150px;
            z-index: 1;
        }

        .navbar .menu-content a {
            color: #241170;
            padding: 0.75rem 1rem;
            text-decoration: none;
            display: block;
            font-size: 0.875rem;
            text-align: right;
        }

        .navbar .menu-content a:hover {
            background: #f1f1f1;
        }

        .navbar .menu.active .menu-content {
            display: block;
        }

        .navbar .menu .close-btn {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            background: #ffca24;
            color: #241170;
            border: none;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            font-size: 1rem;
            cursor: pointer;
            z-index: 2;
        }

        .navbar .menu.active .close-btn {
            display: block;
        }

        /* تصميم نافذة السلة */
        .navbar .cart {
            position: relative;
        }

        .navbar .cart-content {
            display: none;
            position: absolute;
            right: 0;
            background: #fff;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
            min-width: 200px;
            z-index: 1;
            padding: 1rem;
            text-align: center;
        }

        .navbar .cart.active .cart-content {
            display: block;
        }

        .navbar .cart-content .close-btn {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: #ffca24;
            color: #241170;
            border: none;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            font-size: 1rem;
            cursor: pointer;
        }

        .navbar .cart-content .empty-cart {
            font-size: 0.875rem;
            color: #666;
        }

        /* مربعات العرض */
        .dashboard {
            padding: 2rem;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
        }

        .card {
            background: #fffcf2;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            padding: 1.5rem;
            text-align: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        .card .icon {
            font-size: 2rem;
            color: #5c3cde;
            margin-bottom: 1rem;
        }

        .card .value {
            font-size: 1.5rem;
            font-weight: bold;
            color: #241170;
            margin-bottom: 0.5rem;
        }

        .card .label {
            font-size: 1rem;
            color: #666;
        }

        .cart-item {
            background-color: #f1f1f1;
            padding: 10px;
            margin: 8px 0;
            border-radius: 8px;
            font-size: 14px;
            direction: rtl;
        }
        

        /* تصميم المربعات الصغيرة */
        .small-card {
            background: #fff;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            padding: 1rem;
            text-align: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .small-card .icon {
            font-size: 1.5rem;
            color: #ffca24;
            margin-bottom: 0.5rem;
        }

        .small-card .label {
            font-size: 0.875rem;
            color: #666;
        }
        a{
            text-decoration: none;
        }
        
        /* تصميم متجاوب */
        @media (max-width: 768px) {
            .dashboard {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 480px) {
            .dashboard {
                grid-template-columns: 1fr;
            }
        }