/* Header action styles */
.header-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-action a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.header-action i {
    font-size: 20px;
    color: inherit;
}

/* Avatar styles for both desktop and mobile */
.avatar2 {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
    max-width: 35px !important;
    max-height: 35px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #fff !important;
    transition: all 0.3s ease;
    display: block !important;
}

.header-action .avatar2:hover {
    transform: scale(1.1);
    border-color: #007bff;
}

/* Mobile navbar header actions */
.navbar-header-actions {
    display: none;
}

@media (max-width: 991px) {

    /* Hide desktop header actions */
    .header.header-6 .header-action {
        display: none !important;
    }

    /* Show mobile header actions in sidebar */
    .navbar-header-actions {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 20px;
        border-bottom: 1px solid #e0e0e0;
        background: #f8f9fa;
    }

    .navbar-header-actions a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .navbar-header-actions a:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .navbar-header-actions i {
        font-size: 20px;
        color: #2F80ED;
    }

    .navbar-header-actions .avatar2 {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
        border: 2px solid #2F80ED !important;
    }
}

@media (max-width: 767px) {
    .navbar-header-actions {
        gap: 15px;
        padding: 15px;
    }

    .navbar-header-actions a {
        width: 40px;
        height: 40px;
    }

    .navbar-header-actions i {
        font-size: 18px;
    }

    .navbar-header-actions .avatar2 {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }
}
/* ============================================================
   شعار الموقع
   الترويسة زرقاء في الأعلى، وتتحول إلى بيضاء عند التثبيت (.sticky)،
   لذلك نبدّل بين نسخة بيضاء ونسخة زرقاء من الشعار.
   ============================================================ */
.navbar-brand .site-logo {
    display: block;
    height: 54px;
    width: auto;
    max-width: 100%;
}

.navbar-brand .site-logo--dark {
    display: none;
}

.header.sticky .navbar-brand .site-logo--light {
    display: none;
}

.header.sticky .navbar-brand .site-logo--dark {
    display: block;
}

.footer-widget .logo .site-logo--footer {
    height: 58px;
    width: auto;
    max-width: 100%;
    margin-bottom: 18px;
}

@media only screen and (max-width: 991px) {
    .navbar-brand .site-logo {
        height: 42px;
    }
}

@media only screen and (max-width: 575px) {
    .navbar-brand .site-logo {
        height: 36px;
    }
}

/* ============================================================
   شريط رسائل الحالة (نجاح/خطأ) + دعوة قناة الواتساب
   ============================================================ */
.site-flash {
    background: #e8f7ee;
    border-bottom: 1px solid #bfe6cd;
    padding: 16px 0;
}

.site-flash--error {
    background: #fdecec;
    border-bottom-color: #f5c2c2;
}

.site-flash__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.site-flash__icon {
    font-size: 26px;
    color: #1e8e4e;
    flex: 0 0 auto;
}

.site-flash--error .site-flash__icon {
    color: #c0392b;
}

.site-flash__body {
    flex: 1 1 260px;
    min-width: 0;
}

.site-flash__title {
    margin: 0;
    font-weight: 700;
    color: #14532d;
    font-family: cairo, sans-serif;
}

.site-flash--error .site-flash__title {
    color: #7f1d1d;
}

.site-flash__text {
    margin: 4px 0 0;
    color: #2f5d43;
    font-size: 14px;
    font-family: cairo, sans-serif;
}

.site-flash__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-family: cairo, sans-serif;
    text-decoration: none;
    transition: background 0.2s;
}

.site-flash__cta:hover,
.site-flash__cta:focus {
    background: #1da851;
    color: #fff;
}

.site-flash__close {
    flex: 0 0 auto;
    background: none;
    border: 0;
    font-size: 26px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0 4px;
}

.site-flash__close:hover {
    color: #111827;
}

@media only screen and (max-width: 575px) {
    .site-flash__inner {
        gap: 10px;
    }

    .site-flash__cta {
        width: 100%;
        justify-content: center;
    }
}
