/* Consultant Authentication Styles */

/* تطبيق الفلاتر اللونية على الشعار في جميع صفحات المستشار */
.site-logo,
.header-top .site-logo,
.header-section .site-logo,
.header-top img.site-logo,
.header-section img.site-logo,
img.site-logo {
    filter: brightness(0) saturate(100%) invert(61%) sepia(46%) saturate(807%) hue-rotate(169deg) brightness(101%) contrast(101%) !important;
}

.approval-status {
    margin: 1rem 0;
}

.approval-status .alert {
    margin: 0;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.approval-status .alert i {
    font-size: 1.1rem;
}

.approval-status .alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.approval-status .alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.approval-status .alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Hidden navigation items */
.nav-item.hidden {
    display: none !important;
}

/* Hide restricted items by default until auth loads */
.nav-item.dashboard,
.nav-item.schedule,
.nav-item.instant-booking,
.nav-item.free-consultation,
.nav-item.emerging,
.nav-item.requests,
.nav-item.earnings,
.nav-item.reviews,
.nav-item.notifications,
.nav-item.coupon,
.nav-item.settings {
    display: none !important;
}

/* Show restricted items only when approved */
.nav-item.dashboard.approved,
.nav-item.schedule.approved,
.nav-item.instant-booking.approved,
.nav-item.free-consultation.approved,
.nav-item.emerging.approved,
.nav-item.requests.approved,
.nav-item.earnings.approved,
.nav-item.reviews.approved,
.nav-item.notifications.approved,
.nav-item.coupon.approved,
.nav-item.settings.approved {
    display: block !important;
}

/* Access denied styles */
.access-denied-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f2f5, #e4e6eb);
    font-family: 'Tajawal', sans-serif;
}

.access-denied-content {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 500px;
}

.access-denied-content i {
    color: #f39c12;
    margin-bottom: 1rem;
}

.access-denied-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.access-denied-content p {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

/* Limited content styles */
.limited-content-notice {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border: 1px solid #bbdefb;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.limited-content-notice i {
    font-size: 2rem;
    color: #2196f3;
    margin-bottom: 1rem;
}

.limited-content-notice h4 {
    color: #1976d2;
    margin-bottom: 0.5rem;
}

.limited-content-notice p {
    color: #424242;
    margin: 0;
}

/* Disabled elements for non-approved consultants */
.disabled-for-pending {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.disabled-for-pending::after {
    content: "غير متاح - حسابك قيد المراجعة";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 1000;
}

/* Status badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .access-denied-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .limited-content-notice {
        padding: 1rem;
        margin: 1rem 0;
    }
}

/* تنسيقات القائمة الجانبية في وضع الجوال فقط */
@media screen and (max-width: 768px) {
    /* تصغير حجم القائمة الجانبية - استخدام selectors قوية جداً */
    body aside.sidebar,
    body .sidebar,
    aside#sidebar.sidebar,
    #sidebar.sidebar {
        width: 240px !important;
        padding: 1rem !important;
        max-width: 240px !important;
        min-width: 240px !important;
    }

    /* تصغير صورة المستشار */
    body .consultant-profile,
    .sidebar .consultant-profile {
        margin-bottom: 1rem !important;
    }

    body .consultant-profile .profile-image,
    body .profile-image,
    .sidebar .profile-image {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 0.5rem !important;
        min-width: 80px !important;
        min-height: 80px !important;
        max-width: 80px !important;
        max-height: 80px !important;
    }

    body .consultant-profile .profile-image i,
    body .profile-image i,
    .sidebar .profile-image i {
        font-size: 2rem !important;
    }

    /* تصغير اسم المستشار والتخصص */
    body .consultant-profile .consultant-name,
    body .consultant-name,
    .sidebar .consultant-name {
        font-size: 1rem !important;
        margin-bottom: 0.3rem !important;
    }

    body .consultant-profile .consultant-specialty,
    body .consultant-specialty,
    .sidebar .consultant-specialty {
        font-size: 0.75rem !important;
    }

    /* تصغير عنوان القائمة */
    body nav .menu-title,
    body .menu-title,
    .sidebar .menu-title {
        font-size: 0.9rem !important;
        padding: 0.6rem 0.5rem !important;
        margin-bottom: 0.6rem !important;
    }

    /* تصغير عناصر القائمة */
    body .nav-menu,
    .sidebar .nav-menu {
        margin-bottom: 1rem !important;
    }

    body .nav-menu .nav-item,
    body .nav-item,
    .sidebar .nav-item {
        margin-bottom: 0.3rem !important;
    }

    body .nav-menu .nav-link,
    body .nav-link,
    .sidebar .nav-link {
        padding: 0.5rem 0.6rem !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
    }

    body .nav-link i,
    .sidebar .nav-link i {
        margin-left: 0.5rem !important;
        width: 16px !important;
        font-size: 0.9rem !important;
        min-width: 16px !important;
    }

    /* تصغير زر الإغلاق */
    body button.close-sidebar-btn,
    body .close-sidebar-btn,
    .sidebar .close-sidebar-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.85rem !important;
        padding: 0.4rem !important;
        top: 8px !important;
        inset-inline-start: 8px !important;
        min-width: 30px !important;
        min-height: 30px !important;
    }

    /* تطبيق الفلاتر اللونية على الشعار في صفحات المستشار */
    .site-logo,
    .header-top .site-logo,
    .header-section .site-logo,
    .header-top img.site-logo,
    .header-section img.site-logo {
        filter: brightness(0) saturate(100%) invert(61%) sepia(46%) saturate(807%) hue-rotate(169deg) brightness(101%) contrast(101%) !important;
    }

    /* نقل الإشعارات من القائمة الجانبية إلى الهيدر في الجوال */
    .sidebar .consultant-profile #notificationBell {
        display: none !important;
    }

    .header-top {
        position: relative;
    }

    /* إنشاء نسخة من الإشعارات في الهيدر */
    .header-top #notificationBellMobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        cursor: pointer;
        z-index: 10;
        margin-right: 0.5rem;
    }

    .header-top #notificationBellMobile i {
        color: #6edfa7;
        font-size: 1.4rem;
    }

    .header-top #notificationBellMobile #notificationDotMobile {
        position: absolute;
        top: 0;
        left: 0;
        width: 10px;
        height: 10px;
        background: #e74c3c;
        border-radius: 50%;
        border: 2px solid #fff;
        display: none;
    }

    /* تعديل موقع notificationBar في الجوال */
    #notificationBar {
        top: 70px !important;
        right: 10px !important;
        left: 10px !important;
        padding: 0.8rem 1.2rem !important;
        font-size: 0.9rem !important;
    }
}
















