/* ================================
  صندوق الزهراء (س) - سبک کلی
  طراحی و توسعه: سید مهدی
  ================================ */

/* ساختار پایه */
@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 300;
    src: url('./fonts/woff/IRANSansXFaNum-Light.woff') format('woff'),    
    url('./fonts/woff2/IRANSansXFaNum-Light.woff2') format('woff2');      
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 600;
    src: url('./fonts/woff/IRANSansXFaNum-Bold.woff') format('woff'),    
    url('./fonts/woff2/IRANSansXFaNum-Bold.woff2') format('woff2');   
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 900;
    src: url('./fonts/woff/IRANSansXFaNum-Bold.woff') format('woff'),    
    url('./fonts/woff2/IRANSansXFaNum-Bold.woff2') format('woff2');      
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: bold;
    src: url('./fonts/woff/IRANSansXFaNum-Bold.woff') format('woff'),    
    url('./fonts/woff2/IRANSansXFaNum-Bold.woff2') format('woff2');   
}

@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: normal;
    src: url('./fonts/woff/IRANSansXFaNum-Regular.woff') format('woff'),    
    url('./fonts/woff2/IRANSansXFaNum-Regular.woff2') format('woff2');  
}

body {
    background-color: #f9fafc;
    font-family: iransansx !important;
    line-height: 1.8;
    color: #333;
    margin: 0;
    padding: 0;
}
.py-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: -webkit-fill-available;
    margin-right: -15px;
    margin-left: -15px;
}
/* رنگ برند */
:root {
    --brand-color: #2064f2;
    --brand-bg-light: #f1f5ff;
}

/* نوار بالا */
.navbar {
    background-color: var(--brand-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* === اصلاح شد === */
/* این قانون فقط باید روی لینک‌های داخل نوار اعمال شود */
.navbar-brand,
.navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
}

.nav-link:hover {
    text-decoration: underline;
}
.navbar-toggler {
    border-color: #fff;
}

/* دکمه‌ها */
.btn-primary, .btn-success {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
}
.btn-outline-primary {
    color: var(--brand-color);
    border-color: var(--brand-color);
}
.btn-outline-primary:hover {
    background-color: var(--brand-color);
    color: #fff;
}

/* کارت‌ها و باکس‌ها */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(32, 100, 242, 0.12);
    border-radius: 12px;
}
.card-title {
    color: var(--brand-color);
    font-weight: 600;
}

/* عناوین */
h1, h2, h3, h4 {
    color: #1c1c1c;
    font-weight: 700;
}
.text-brand {
    color: var(--brand-color);
}

/* پاورقی */
footer {
    background: var(--brand-bg-light);
    border-top: 1px solid #d8e0ff;
    color: #555;
    font-size: 0.9rem;
    text-align: center;
    padding: 15px 0;
}

/* فرم‌ها */
form input, form select {
    border-radius: 8px;
}
form button {
    border-radius: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-nav .nav-item {
        text-align: center;
        margin: 8px 0;
    }

    h1 {
        font-size: 1.6rem;
    }
    .card {
        margin-bottom: 1rem;
    }
}
/* 🎨 استایل منوی کاربر */
.user-sticky-bar-items {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.user-sticky-bar-items li {
    position: relative;
}

.notification-icon {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
}

.circle-background {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    transition: background 0.3s;
}

.circle-background:hover {
    background: #e0e0e0;
}

/* 📦 Dropdown Panel */
.dropdown-panel {
    position: absolute;
    top: 50px;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 300px;
    display: none;
    z-index: 1000;
}

.user-sticky-bar-items li:hover .dropdown-panel {
    display: block;
}

.dropdown-panel-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: bold;
}

.dropdown-panel-body {
    padding: 8px 0;
    max-height: 400px;
    overflow-y: auto;
}

.addbutton_link {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.addbutton_link:hover {
    background: #f0f0f0;
}

.addbutton_link i {
    margin-left: 8px;
    color: #666;
}

/* 👤 عکس پروفایل */
.user-avatar {
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ⚙️ منوی تنظیمات */
.dropdown-menu {
    position: absolute;
    top: 50px;
    left: -150px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 250px;
    display: none;
    z-index: 1000;
}

.background-cover-block {
    position: relative;
}

.background-cover {
    background-size: cover;
    background-position: center;
}

.profile-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.edit-profile {
    position: absolute;
    top: 10px;
    left: 10px;
}

.edit-profile a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    text-decoration: none;
}

.setting-dropdown-menu-wrapper {
    padding: 8px 0;
}

.setting-dropdown-menu-wrapper li {
    list-style: none;
}

.setting-dropdown-menu-wrapper a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.setting-dropdown-menu-wrapper a:hover {
    background: #f0f0f0;
}

.setting-dropdown-menu-wrapper a i {
    margin-left: 8px;
    color: #666;
}

.divider {
    height: 1px;
    background: #e9ecef;
    margin: 8px 0;
}

.logout {
    color: #dc3545 !important;
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .user-sticky-bar-items {
        gap: 15px;
        margin-top: 19px !important;
    }
    
    .circle-background {
        width: 35px;
        height: 35px;
    }
    
    .dropdown-panel,
    .dropdown-menu {
        left: auto;
        right: 0;
        min-width: 250px;
    }
}