﻿.top-row {
    background: linear-gradient(135deg, #4A90E2, #00C897);
    color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    letter-spacing: 0.2px;
    padding: 0.5rem 0;
    /* اجعل الهيدر ثابت */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}


    .top-row .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

.navbar-brand {
    font-size: 1.6rem; /* حجم أكبر قليلاً مثل الصفحة الرئيسية */
    font-weight: 800; /* Bold قوي */
    color: white;
    text-decoration: none !important;
    font-family: 'Cairo', sans-serif; /* تأكيد نوع الخط */
}




.navbar-toggler {
    display: none;
}

.toggle-icon {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    user-select: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.0rem;
}

.top-row .nav-links a,
.top-row .nav-links .nav-link {
    color: #fff !important;
    font-size: 1.1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .top-row .nav-links .nav-link.active {
        background-color: rgba(255, 255, 255, 0.25);
    }

    .top-row .nav-links a:hover,
    .top-row .nav-links .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.15);
        color: #fff !important;
    }

@media (max-width: 768px) {
    .toggle-icon {
        display: block;
    }

    .top-row .container {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        background-color: rgba(0, 0, 0, 0.2);
        padding: 1rem;
        border-radius: 0 0 10px 10px;
    }

    .navbar-toggler:checked ~ .nav-links {
        display: flex;
    }

    .nav-links a,
    .nav-links .nav-link,
    .nav-links .nav-link.active {
        text-align: center;
    }
}


.auth-btn {
    background-color: #ffffff33;
    color: white;
    border: 1px solid #ffffff66;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .auth-btn:hover {
        background-color: #ffffff55;
    }

body {
    overflow-x: hidden; /* ✅ يمنع ظهور الشريط الأفقي */
}

/* ايكونه دخول صفحه ادمن  */
.admin-chat-icon img {
    width: 26px;
    height: 26px;
    margin-inline-end: 10px;
    vertical-align: middle;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.1));
    transition: transform 0.2s ease;
}

    .admin-chat-icon img:hover {
        transform: scale(1.1);
    }


/* ✅ لضمان ترتيب الهيدر وظهور الخط بشكل موحد */
.nav-container-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl; /* يدعم العربية */
    flex-direction: row-reverse; /* يجعل الشعار في أقصى اليسار */
}



/* ✅ زيادة وزن الخط ليظهر أغلظ في كل عناصر الهيدر */
.nav-links a,
.nav-links .nav-link,
.auth-btn {
    font-weight: 600 !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 1.2rem;
}


/* ✅ يجعل الصفحة تمتد طول المتصفح ويدفع الفوتر للأسفل */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ✅ يضمن أن المحتوى يدفع الفوتر للأسفل */
.layout-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ✅ يجعل الفوتر دائمًا في الأسفل */
.main-footer {
    margin-top: auto;
}

/* ✅ حجم أيقونة إعدادات الحساب */
.dropdown-toggle img {
    width: 26px;
    height: 26px;
    margin-inline-end: 10px;
    vertical-align: middle;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.1));
    transition: transform 0.2s ease;
}

    .dropdown-toggle img:hover {
        transform: scale(1.1);
    }

