﻿

/* ===== الشريط العلوي (Top Bar) - ثابت دائمًا ===== */
.top-bar {
    background-color: #111827;
    color: #fff;
    padding-top: .5rem;
    padding-bottom: .5rem;
    font-size: 14px;
    border-bottom: 2px solid rgb(154, 15, 15); /* تم التحديث */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    width: 100%;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* تنسيق معلومات الاتصال */
.contact-info span {
    margin-left: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-info i {
    color: #FFC300; /* تم التحديث */
    font-size: 14px;
}

.contact-info a {
    color: #fff; /* تم التحديث */
    font-size: 14px;
}
/* تنسيق قسم الإجراءات */
.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.working-hours {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e5e7eb;
}

    .working-hours i {
        color: #FFC300; /* تم التحديث */
        font-size: 14px;
    }

/* تنسيق زر اللغة */
.lang-switch {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    background-color: #1f2937;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s;
    border: 1px solid #374151;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .lang-switch i {
        color: rgb(154, 15, 15); /* تم التحديث */
        font-size: 12px;
    }

    .lang-switch:hover {
        background-color: rgb(154, 15, 15); /* تم التحديث */
        border-color: rgb(154, 15, 15);
    }

        .lang-switch:hover i {
            color: #fff;
        }

/* تنسيق زر الدخول */
.login-btn {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    background-color: rgb(154, 15, 15); /* تم التحديث */
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(154, 15, 15, 0.3); /* تم التحديث */
}

    .login-btn i {
        font-size: 12px;
    }

    .login-btn:hover {
        background-color: rgb(120, 10, 10); /* درجة أغمق من الأحمر */
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(154, 15, 15, 0.4); /* تم التحديث */
        color: #fff;
    }

/* ===== الهيدر الرئيسي (Header) - ثابت دائمًا ===== */

/* ===== الهيدر الرئيسي (Header) ===== */
/* ===== المتغيرات العامة ===== */
:root {
    --primary-color: rgb(154, 15, 15);
    --primary-dark: rgb(120, 10, 10);
    --text-dark: #111827;
    --text-gray: #4b5563;
    --border-color: #f0f0f0;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== تنسيق الشعار ===== */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

    .logo-text span {
        color: var(--primary-color);
    }

/* ===== قائمة التنقل للديسكتوب ===== */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

    .desktop-nav a:hover,
    .desktop-nav a.active {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
    }

/* ===== تنسيق القائمة المنسدلة للديسكتوب ===== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

    .dropdown-toggle i {
        font-size: 12px;
        transition: transform 0.3s ease;
    }

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff; /* خلفية بيضاء صلبة */
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(154, 15, 15, 0.15);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--border-color);
    list-style: none;
    margin-top: 10px;
    backdrop-filter: none; /* إزالة تأثير الضبابية */
    -webkit-backdrop-filter: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-gray);
    font-size: 15px;
    border-bottom: none;
    transition: all 0.3s;
    white-space: nowrap;
}

    .dropdown-menu li a i {
        color: var(--primary-color);
        font-size: 16px;
        width: 20px;
    }

    .dropdown-menu li a:hover {
        background-color: rgba(154, 15, 15, 0.05);
        color: var(--primary-color);
        padding-right: 25px;
    }

.dropdown-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 8px 0;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 30px;
    width: 16px;
    height: 16px;
    background-color: #ffffff; /* خلفية بيضاء صلبة */
    transform: rotate(45deg);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    z-index: -1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ===== تنسيق الأيقونات وزر طلب الخدمة ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-icon {
    color: var(--text-gray);
    font-size: 18px;
    transition: color 0.3s;
}

    .search-icon:hover {
        color: var(--primary-color);
    }

.btn-appointment {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(154, 15, 15, 0.3);
    white-space: nowrap;
}

    .btn-appointment:hover {
        background-color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(154, 15, 15, 0.4);
        color: white;
    }

/* ===== زر القائمة الجانبية للهاتف (الهامبورجر) ===== */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    margin-right: 15px;
}

    .navbar-toggler span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 5px 0;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

/* ===== القائمة الجانبية للهاتف (Offcanvas) ===== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: #ffffff; /* خلفية بيضاء صلبة */
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
    backdrop-filter: none; /* إزالة تأثير الضبابية */
    -webkit-backdrop-filter: none;
}

    .mobile-sidebar.active {
        right: 0;
    }

/* ترويسة القائمة الجانبية */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: #ffffff; /* خلفية بيضاء صلبة */
}

.sidebar-logo img {
    height: 40px;
    width: auto;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 30px;
    color: var(--text-gray);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

    .sidebar-close:hover {
        color: var(--primary-color);
    }

/* محتوى القائمة الجانبية */
.sidebar-body {
    background-color: #ffffff; /* خلفية بيضاء صلبة */
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #ffffff; /* خلفية بيضاء صلبة */
}

    .sidebar-menu li {
        border-bottom: 1px solid #f9f9f9;
        background-color: #ffffff; /* خلفية بيضاء صلبة */
    }

        .sidebar-menu li a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 15px 20px;
            color: var(--text-gray);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s;
            background-color: #ffffff; /* خلفية بيضاء صلبة */
        }

            .sidebar-menu li a i {
                width: 20px;
                color: var(--primary-color);
            }

            .sidebar-menu li a:hover {
                background-color: rgba(154, 15, 15, 0.05);
                color: var(--primary-color);
                padding-right: 25px;
            }

/* القوائم المنسدلة في السايدبار */
.sidebar-dropdown {
    background-color: #ffffff; /* خلفية بيضاء صلبة */
}

    .sidebar-dropdown .sidebar-dropdown-menu {
        list-style: none;
        padding: 0;
        margin: 0;
        background-color: #f9f9f9; /* خلفية رمادية فاتحة صلبة */
        display: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .sidebar-dropdown.active .sidebar-dropdown-menu {
        display: block;
    }

.sidebar-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    width: 100%;
    background-color: #ffffff; /* خلفية بيضاء صلبة */
}

    .sidebar-dropdown-toggle i:last-child {
        margin-right: auto;
        transition: transform 0.3s;
    }

.sidebar-dropdown.active .sidebar-dropdown-toggle i:last-child {
    transform: rotate(180deg);
}

.sidebar-dropdown .sidebar-dropdown-menu li {
    background-color: #f9f9f9; /* خلفية رمادية فاتحة صلبة */
    border-bottom: 1px solid #e5e7eb;
}

    .sidebar-dropdown .sidebar-dropdown-menu li a {
        padding: 12px 35px;
        font-size: 14px;
        background-color: #f9f9f9; /* خلفية رمادية فاتحة صلبة */
    }

        .sidebar-dropdown .sidebar-dropdown-menu li a:hover {
            background-color: rgba(154, 15, 15, 0.05);
        }

    .sidebar-dropdown .sidebar-dropdown-menu li:last-child {
        border-bottom: none;
    }

/* ===== زر التواصل في القائمة الجانبية ===== */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: #ffffff;
}

.sidebar-contact-btn {
    display: block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(154, 15, 15, 0.3);
    width: 100%;
}

    .sidebar-contact-btn i {
        margin-left: 8px;
    }

    .sidebar-contact-btn:hover {
        background-color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(154, 15, 15, 0.4);
        color: white;
    }
/* الخلفية المعتمة - تبقى شفافة لأنها طبقة منفصلة */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
}

    .sidebar-overlay.active {
        display: block;
    }

/* إلغاء أي تأثير شفافية عام */
* {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ===== التجاوب مع الشاشات المختلفة ===== */
@media screen and (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .navbar-toggler {
        display: block;
    }

    .header-actions {
        margin-right: auto;
    }

    .btn-appointment {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media screen and (min-width: 993px) {
    .mobile-sidebar,
    .sidebar-overlay,
    .navbar-toggler {
        display: none;
    }

    .desktop-nav {
        display: block;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 120px;
    }

    .main-header {
        padding: 10px 0;
    }

    .logo-img {
        height: 60px;
        max-width: 140px;
    }
}

@media screen and (max-width: 576px) {
    .logo-img {
        height: 55px;
        max-width: 120px;
    }

    .btn-appointment {
        display: none;
    }

    .mobile-sidebar {
        width: 85%;
        right: -85%;
    }

    .navbar-toggler span {
        width: 22px;
        height: 2px;
    }
    .sidebar-contact-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .header-actions {
        gap: 10px;
    }

    .mobile-sidebar {
        width: 100%;
        right: -100%;
    }

    .sidebar-header {
        padding: 15px;
    }

    .sidebar-menu li a {
        padding: 12px 15px;
    }
    .sidebar-footer {
        padding: 15px;
    }
      .logo-img {
        height: 50px; /* حجم مناسب للشاشات الصغيرة جداً */
        max-width: 160px;
    }
}

/* منع التمرير عند فتح القائمة الجانبية */
body.sidebar-open {
    overflow: hidden;
}

/* تأثيرات حركية */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mobile-sidebar.active .sidebar-menu {
    animation: fadeIn 0.3s ease;
}