/* تنسيقات الهيدر الموحد */

/* تثبيت زر القائمة الجانبية وإظهاره فوق الشريط العلوي */
.toggle-sidebar {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1100;
}

/* ضمان ظهور القائمة الجانبية فوق الهدر */
.sidebar-menu {
    position: fixed; /* لتكون فوق المحتوى */
    top: 0;
    z-index: 1200; /* أعلى من .main-nav */
}

/* رفع زر إغلاق القائمة فوق كل شيء داخلها */
.sidebar-menu .close-sidebar {
    position: absolute;
    z-index: 1300;
}

/* جعل زر إغلاق القائمة باللون الأحمر مثل صفحات المستشار */
.sidebar-menu .close-sidebar {
	background: #e74c3c;
	color: #fff;
	border: none;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.sidebar-menu .close-sidebar i {
	color: #fff;
}
.sidebar-menu .close-sidebar:hover {
	background: #c0392b;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Bubbles effect for login button */
.login-bubbles {
    position: relative;
    overflow: visible;
}
.login-bubbles .bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(39, 179, 246, 0.8);
    border-radius: 50%;
    pointer-events: none;
    animation: rise 2.5s linear infinite;
    bottom: -25px;
    filter: blur(0.2px);
    box-shadow: 0 0 12px rgba(39, 179, 246, 0.5);
}
.login-bubbles:hover .bubble {
    animation-play-state: paused;
}
.login-bubbles .bubble:nth-of-type(1) { 
    left: 8%; 
    width: 8px; 
    height: 8px; 
    animation-duration: 2s; 
    animation-delay: 0s; 
}
.login-bubbles .bubble:nth-of-type(2) { 
    left: 25%; 
    width: 12px; 
    height: 12px; 
    animation-duration: 2.3s; 
    animation-delay: 0.4s; 
}
.login-bubbles .bubble:nth-of-type(3) { 
    left: 45%; 
    width: 6px; 
    height: 6px; 
    animation-duration: 2.1s; 
    animation-delay: 0.8s; 
}
.login-bubbles .bubble:nth-of-type(4) { 
    left: 65%; 
    width: 10px; 
    height: 10px; 
    animation-duration: 2.4s; 
    animation-delay: 1.2s; 
}

/* Inner bubbles that appear inside the button */
.bubble-inner {
    bottom: 5px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(39, 179, 246, 0.6) !important;
    box-shadow: 0 0 6px rgba(39, 179, 246, 0.4) !important;
}
.bubble-inner:nth-of-type(5) { 
    left: 15%; 
    width: 4px; 
    height: 4px; 
    animation-duration: 1.5s; 
    animation-delay: 0.2s; 
}
.bubble-inner:nth-of-type(6) { 
    left: 50%; 
    width: 6px; 
    height: 6px; 
    animation-duration: 1.8s; 
    animation-delay: 0.6s; 
}
.bubble-inner:nth-of-type(7) { 
    left: 75%; 
    width: 5px; 
    height: 5px; 
    animation-duration: 1.6s; 
    animation-delay: 1s; 
}

@keyframes rise {
    0% { 
        transform: translate(0, 0) scale(0.8); 
        opacity: 0.9; 
    }
    20% { 
        transform: translate(2%, -30%) scale(1); 
        opacity: 0.8; 
    }
    50% { 
        transform: translate(-3%, -120%) scale(1.3); 
        opacity: 0.6; 
    }
    80% { 
        transform: translate(4%, -200%) scale(1.1); 
        opacity: 0.3; 
    }
    100% { 
        transform: translate(-2%, -300%) scale(1.6); 
        opacity: 0; 
    }
}

/* User icon in circle */
.user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    margin-left: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* Pulsing effect for login button */
.login-bubbles {
    animation: pulse 2s infinite;
}
.login-bubbles:hover {
    animation-play-state: paused;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(39, 179, 246, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(39, 179, 246, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(39, 179, 246, 0);
    }
}

/* تنسيق خلفية الهيدر - شفافة افتراضياً */
.main-nav {
    background: transparent !important;
    box-shadow: none !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
}

/* إظهار خلفية الهيدر عند التمرير */
.main-nav.scrolled {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

/* إخفاء الشعار عند ظهور خلفية الهيدر */
.main-nav.scrolled .nav-logo {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* إظهار الشعار عند إخفاء خلفية الهيدر */
.main-nav .nav-logo {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* تنسيق أيقونة زر انضم كمستشار */
.btn-outline .user-icon {
    color: #27b3f6 !important;
    border-color: #27b3f6 !important;
}

.btn-outline:hover .user-icon {
    color: white !important;
    border-color: white !important;
}
