﻿/* إعدادات عامة لدعم اللغة العربية */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    direction: rtl;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   1. تصميم النافذة المنبثقة الإجبارية (Modal)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* التصميم البرتقالي الجديد المطابق للمرفق */
.modal-content {
    background-color: #f37021; /* لون برتقالي */
    color: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 350px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    position: relative;
}

.lang-toggle {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

[dir="ltr"] .lang-toggle {
    right: auto;
    left: 20px;
}

.login-title {
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: bold;
}

.login-input {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 15px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    background-color: #f9f9f9;
}

.btn-main-login {
    width: 100%;
    padding: 12px;
    background-color: #4a4f54; /* رمادي غامق */
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
}

.forget-pwd {
    color: white;
    text-decoration: none;
    font-size: 13px;
    display: block;
    margin-bottom: 30px;
}

.btn-switch-mode {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

/* =========================================
   2. تصميم الأقسام الرئيسية (الهيدر والهيكل)
   ========================================= */
.header-section {
    background-color: #ffffff;
    padding: 15px 5%;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* الصف العلوي للهيدر */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1; /* يجبر القسم على أخذ ثلث المساحة بالضبط */
    justify-content: flex-start;
}

.lang-circle {
    background-color: #f37021;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.login-link {
    color: #f37021;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
}

.header-logo {
    flex: 1; /* يجبر الشعار على البقاء في الثلث الأوسط */
    display: flex;
    justify-content: center;
}

/* في حال عدم وجود صورة شعار حالياً، هذا تنسيق نصي مؤقت يشبه الشعار */
.header-logo-text {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

    .header-logo-text span {
        color: #f37021;
    }

.header-nav {
    display: flex;
    gap: 25px;
    flex: 1; /* يجبر الروابط على أخذ الثلث الأخير */
    justify-content: flex-end;
}

    .header-nav a {
        color: #f37021;
        text-decoration: none;
        font-weight: bold;
        font-size: 16px;
    }

/* الصف السفلي (شريط البحث) */
.header-search {
    display: flex;
    justify-content: center;
}

.search-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 800px;
}

.btn-location {
    background-color: #f37021;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
}

.search-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 5px 20px;
    background-color: #fff;
}

    .search-input-container input {
        flex: 1;
        border: none;
        outline: none;
        padding: 10px;
        font-size: 14px;
        background: transparent;
    }

.search-icon {
    color: #555;
    font-size: 18px;
}

/* تنسيقات الهيكل العام */
.main-body {
    flex: 1;
    padding: 20px;
}

.footer-section {
    background-color: #4a4f54;
    color: white;
    padding: 30px;
    text-align: center;
}

/* =========================================
   3. التجاوب للشاشات أقل من 10 إنش (1024px)
   ========================================= */
@media (max-width: 1024px) {
    .footer-section {
        display: none; /* إخفاء الفوتر */
    }

    .bottom-nav {
        display: block; /* إظهار شريط التنقل السفلي */
    }

    body {
        padding-bottom: 60px; /* منع تغطية المحتوى بالشريط */
    }
}
