@font-face {
    font-family: Vazir;
    font-style: normal;
    font-weight: 100;
    src: url('../fonts/Vazirmatn-FD-NL-ExtraBold.woff2') format('woff2'),
    url('../fonts/Vazirmatn-FD-NL-ExtraBold.woff2') format('woff2');
}
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #9ca3af transparent;
}
.fi-sidebar {
    background: radial-gradient(circle at top left, #2569c3 0%, #0b4980 40%, #06345c 100%) !important;
    color: #e9f3ff !important;
    border-inline-start: none !important;
}

/* کانتینر آیتم‌ها برای داشتن فاصله داخلی */
.fi-sidebar-nav {
    padding-inline: 10px !important;
}

/* لینک هر آیتم منو */
.fi-sidebar .fi-sidebar-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 9999px;
    margin-block: 4px;
    padding: 9px 12px;
    color: #e7f1ff;
    font-size: 0.9rem;
    transition: background-color .18s ease, color .18s ease, transform .12s ease;
}

/* آیکن آیتم */
.fi-sidebar .fi-sidebar-item svg {
    width: 18px;
    height: 18px;
    color: #e7f1ff;
}

/* هاور – فقط کمی روشن‌تر شود */
.fi-sidebar .fi-sidebar-item a:hover {
    background-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

/* آیتم فعال – کپسول سفید مثل عکس */
.fi-sidebar .fi-sidebar-item-active a {
    background-color: #ffffff !important;
    color: #165796 !important;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* آیکن آیتم فعال */
.fi-sidebar .fi-sidebar-item-active svg {
    color: #165796 !important;
}

/* هاور روی آیتم فعال نباید رنگ پس‌زمینه را خراب کند */
.fi-sidebar .fi-sidebar-item-active a:hover {
    background-color: #ffffff !important;
    transform: translateY(-1px);
}
.fi-sidebar-item-label{
    color: white;
}
.fi-sidebar-group-items .fi-active .fi-sidebar-item-btn{
    background-color: rgba(255, 255, 255, 0.14);

}
/***************  Dark mode sidebar  ***************/

html.dark .fi-sidebar {
    background: radial-gradient(circle at top left, #0f172a 0%, #020617 40%, #020617 100%) !important;
    color: #cbd5f5 !important;
}

html.dark .fi-sidebar .fi-sidebar-item a {
    color: #d1ddff;
}

/* هاور در دارک‌مود */
html.dark .fi-sidebar .fi-sidebar-item a:hover {
    background-color: rgba(148, 163, 184, 0.25);
    color: #f9fbff;
}

/* آیتم فعال در دارک مود: قرص تیره‌تر با آبی تیفانی برای آیکن */
html.dark .fi-sidebar .fi-sidebar-item-active a {
    background: #0b1220 !important;
    color: #38bdf8 !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.75);
}

html.dark .fi-sidebar .fi-sidebar-item-active svg {
    color: #38bdf8 !important;
}
.fi-sidebar-group-label{
    color: white !important;
}

/****************************************
 * TOPBAR / HEADER – Light & Dark
 ****************************************/

/* هدر سفید، خیلی ساده */
.fi-topbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    color: #111827 !important;
}

/* آیتم‌ها و آیکن‌های هدر */
.fi-topbar-item,
.fi-topbar-item-label,
.fi-topbar-item-icon {
    color: #4b5563 !important;
}

/* هاور نرم روی دکمه‌های هدر */
.fi-topbar-item:hover,
.fi-topbar-item-button:hover {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
}

/* دارک مود هدر */
html.dark .fi-topbar {
    background-color: #020617 !important;
    border-bottom-color: #111827 !important;
    color: #e5e7eb !important;
}

html.dark .fi-topbar-item,
html.dark .fi-topbar-item-label,
html.dark .fi-topbar-item-icon {
    color: #e5e7eb !important;
}

html.dark .fi-topbar-item:hover,
html.dark .fi-topbar-item-button:hover {
    background-color: #111827 !important;
    color: #f9fafb !important;
}

