/* ===================================
   Variables & Reset
   =================================== */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-tertiary: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #9ca3af;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --sidebar-bg: #1f2937;
    --sidebar-text: #d1d5db;
    --sidebar-hover: #374151;
    --sidebar-active: #4f46e5;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Overrides */
[data-theme="dark"] {
    --bg-primary: #1f2937;
    --bg-secondary: #111827;
    --bg-tertiary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --border-color: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --sidebar-bg: #111827;
    --sidebar-text: #d1d5db;
    --sidebar-hover: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   Top Bar (Header) - Fixed Layout
   =================================== */
.topbar {
    background: var(--bg-primary);
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* چپ و راست */
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    white-space: nowrap;
    /* جلوگیری از شکست خط */
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* دکمه همبرگری موبایل (پیش‌فرض مخفی) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
}

.topbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.topbar button:hover {
    background-color: var(--bg-tertiary);
    color: var(--primary-color);
}

.badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--danger-color);
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 1rem;
    font-weight: 600;
}

/* ===================================
   Sidebar
   =================================== */
.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.logo i {
    color: var(--primary-color);
}

.sidebar.collapsed .logo-text {
    display: none;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--sidebar-text);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    color: white;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    /* اسکرول فعال */
    overflow-x: hidden;
    padding: 1rem 0;
    scrollbar-width: none;
    /* مخفی کردن در Firefox */
}

/* مخفی کردن scrollbar در Chrome/Edge/Safari */
.sidebar-nav::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}


.nav-section-title {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-tertiary);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar.collapsed .nav-section-title span {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: white;
}

.nav-item.active {
    background: var(--sidebar-active);
    color: white;
}

.sidebar.collapsed .nav-item span {
    display: none;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.875rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================================
   Main Content & Layout
   =================================== */
.main-content {
    margin-right: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

.sidebar.collapsed~.main-content {
    margin-right: var(--sidebar-collapsed-width);
}

.page-content {
    padding: 2rem;
}

/* ===================================
   Dashboard New Styles (برای app.js جدید)
   =================================== */
.dashboard-grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Quick Actions */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-primary);
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.action-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.action-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.action-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.action-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.action-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Recent Table */
.compact-table-container {
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.compact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.compact-table th {
    text-align: right;
    padding: 1rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 600;
}

.compact-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.compact-table tr:last-child td {
    border-bottom: none;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-info .value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

/* Loading & Empty States */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   Mobile Responsive
   =================================== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%);
        right: 0;
        left: auto;
        width: 260px !important;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }

    .main-content {
        margin-right: 0 !important;
    }

    .mobile-toggle {
        display: flex;
    }

    /* نمایش در موبایل */
    #sidebar-toggle {
        display: none;
    }

    /* مخفی کردن دکمه دسکتاپ */

    .dashboard-grid-2-1,
    .stats-grid,
    .actions-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 0 1rem;
    }
}

ظ

/* استایل کلی آکاردئون */
.nav-section {
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-section-header {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aaa;
    /* رنگ پیش‌فرض غیرفعال */
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    user-select: none;
}

.nav-section-header:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.nav-section-header .flex-align-center {
    display: flex;
    align-items: center;
}

.accordion-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

/* انیمیشن باز و بسته */
.nav-section-body {
    max-height: 3000px;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0, 1, 0, 1);
    opacity: 1;
}

.nav-section.collapsed .nav-section-body {
    max-height: 0;
    opacity: 0;
}

.nav-section-body .nav-item {
    padding-right: 35px !important;
    /* تورفتگی زیرمنو */
    font-size: 0.85rem;
}

/* --- استایل‌های رنگی شدن سرمنوی فعال --- */
.nav-section.section-active .nav-section-header {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 700;
}

.nav-section.section-active .nav-section-header span {
    color: #ffffff !important;
}

/* اجبار به سفید شدن آیکون‌ها */
.nav-section.section-active .nav-section-header svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}


/* استایل انتخابگر شعبه - نسخه اصلاح شده (کاملاً مات و غیرشیشه‌ای) */
.branch-switcher {
    margin-left: 15px;
    position: relative;
    display: inline-block;
}

.branch-btn {
    /* تغییر: استفاده از رنگ سفید خالص برای اطمینان از مات بودن */
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
    /* اطمینان از قرار گرفتن روی سایر المنت‌ها */
    position: relative;
    z-index: 1001;
}

/* تنظیمات دارک مود برای دکمه */
[data-theme="dark"] .branch-btn {
    background-color: #1e293b;
    /* رنگ کاملا سالید برای دارک */
    border-color: #334155;
}

.branch-btn:hover {
    border-color: var(--primary-color);
    /* در هاور هم رنگ پس زمینه تغییر نکند تا شیشه‌ای نشود */
}

.branch-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
}

.branch-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    width: 220px;

    /* تغییر: رنگ پس‌زمینه سالید */
    background-color: #ffffff;

    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    /* سایه کمی قوی‌تر برای تفکیک بهتر */
    display: none;
    z-index: 1002;
    /* بالاتر از دکمه */
    overflow: hidden;
}

/* تنظیمات دارک مود برای دراپ‌داون */
[data-theme="dark"] .branch-dropdown {
    background-color: #1e293b;
    /* رنگ کاملا سالید برای دارک */
    border-color: #334155;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.branch-dropdown.show {
    display: block;
    animation: fadeIn 0.2s;
}

.branch-item {
    padding: 12px 15px;
    /* کمی پدینگ بیشتر */
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    transition: 0.2s;
    background-color: inherit;
    /* ارث‌بری از رنگ سالید والد */
}

.branch-item:hover {
    /* رنگ هاور هم باید سالید باشد */
    background-color: #f3f4f6;
}

[data-theme="dark"] .branch-item:hover {
    background-color: #334155;
}

.branch-item.active {
    background-color: var(--primary-light);
    /* اگر این متغیر شفاف است، رنگ سالید بگذارید */
    color: var(--primary-color);
    font-weight: bold;
}

[data-theme="dark"] .branch-item.active {
    background-color: rgba(99, 102, 241, 0.2);
    /* در دارک مود کمی شفافیت برای آیتم فعال اوکی است چون پس‌زمینه اصلی سالید است */
}

.branch-item:last-child {
    border-bottom: none;
}



/* =========================================
   Dark Mode Styles for Course Teacher Modal
   ========================================= */

/* 1. پس‌زمینه و رنگ متن اصلی مودال */
.dark-mode .modal-content {
    background-color: #1e1e2d;
    /* رنگ پس‌زمینه تیره (مثلا سرمه‌ای خیلی تیره یا خاکستری تیره) */
    color: #e0e0e0;
    /* رنگ متن روشن */
    border: 1px solid #333;
    /* مرز دور مودال */
}

.dark-mode .modal-header,
.dark-mode .modal-footer {
    border-color: #2f2f3e;
    /* رنگ خط جداکننده هدر و فوتر */
}

.dark-mode .modal-title {
    color: #ffffff;
}

/* 2. استایل فیلدهای ورودی و سلکت‌ها (Input & Select) */
.dark-mode .form-control {
    background-color: #2a2a3a;
    /* رنگ پس‌زمینه فیلدها کمی روشن‌تر از پس‌زمینه مودال */
    border: 1px solid #444454;
    /* رنگ حاشیه فیلدها */
    color: #ffffff;
    /* رنگ متن داخل فیلدها */
}

.dark-mode .form-control:focus {
    background-color: #303040;
    /* رنگ هنگام کلیک روی فیلد */
    border-color: #5e72e4;
    /* رنگ حاشیه هنگام فوکوس (معمولا رنگ اصلی تم) */
    box-shadow: 0 0 0 0.2rem rgba(94, 114, 228, 0.25);
}

/* اصلاح رنگ placeholder (متن پیش‌فرض کمرنگ) */
.dark-mode .form-control::placeholder {
    color: #8898aa;
}

/* اصلاح رنگ گزینه‌های داخل سلکت */
.dark-mode select.form-control option {
    background-color: #2a2a3a;
    color: #ffffff;
}

/* فیلدهای غیرفعال (Disabled) */
.dark-mode .form-control:disabled,
.dark-mode .form-control[readonly] {
    background-color: #1b1b24;
    opacity: 0.7;
}

/* 3. لیبل‌ها و عنوان بخش‌ها */
.dark-mode .form-group label,
.dark-mode .modal-section-title {
    color: #d1d5db;
    /* خاکستری روشن برای خوانایی بهتر */
}

/* لیبل‌های اجباری (Required) */
.dark-mode label.required::after {
    color: #ff5b5b;
    /* قرمز روشن‌تر برای دیده شدن روی زمینه تیره */
}

/* 4. باکس جستجوی معلم */
.dark-mode #teacher-search {
    background-color: #2a2a3a;
    border-color: #444454;
    color: #fff;
    /* اگر آیکون ذره‌بین با CSS رنگ می‌گیرد، رنگ آن را هم باید روشن کنید */
}

/* لیست چند انتخابی معلمان */
.dark-mode #modal-teacher {
    background-color: #2a2a3a;
    color: #fff;
}

/* 5. باکس هشدار آبی (Alert Info) */
.dark-mode .alert-info {
    background-color: rgba(13, 202, 240, 0.15);
    /* آبی خیلی تیره و شفاف */
    color: #3dd5f3;
    /* متن آبی روشن */
    border-color: rgba(13, 202, 240, 0.3);
}

/* 6. بخش زمان‌بندی (قسمت خط‌چین دار) */
/* نکته: چون در کد جاوااسکریپت رنگ پس‌زمینه inline داده شده، از !important استفاده می‌کنیم */
.dark-mode #schedule-fields {
    background-color: #1a1a20 !important;
    /* رنگ پس‌زمینه خیلی تیره */
    border-color: #444 !important;
    /* رنگ خط‌چین دور باکس */
}

/* 7. متون راهنما و توضیحات کوچک */
.dark-mode .text-muted,
.dark-mode small {
    color: #9ca3af !important;
}

/* 8. دکمه‌ها */
.dark-mode .btn-outline-secondary {
    color: #d1d5db;
    border-color: #6c757d;
}

.dark-mode .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff;
}

@font-face {
    font-family: 'Vazirmatn';
    /* آدرس دقیق با توجه به تنظیمات شما: */
    src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Vazirmatn', sans-serif !important;
}

/* =================================================
   Sidebar Collapsed: Interactive Hover Mode (FIXED POSITION)
   حل قطعی مشکل زیر رفتن با position fixed
   ================================================= */

#sidebar.collapsed {
    overflow: visible !important;
    z-index: 1000 !important;
}

#sidebar.collapsed .nav-item,
#sidebar.collapsed .nav-section-header {
    position: relative !important;
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
}

#sidebar.collapsed .nav-item:hover,
#sidebar.collapsed .nav-section-header:hover {
    z-index: 10000 !important;
    background-color: var(--bg-hover) !important;
}

#sidebar.collapsed .nav-section:hover {
    z-index: 10000 !important;
    background-color: var(--bg-hover) !important;
}

#sidebar.collapsed .nav-item span,
#sidebar.collapsed .nav-section-header span,
#sidebar.collapsed .sidebar-header .logo-text,
#sidebar.collapsed .user-info,
#sidebar.collapsed .accordion-arrow,
#sidebar.collapsed .nav-section-body {
    display: none !important;
}

#sidebar.collapsed .nav-item i,
#sidebar.collapsed .nav-item svg,
#sidebar.collapsed .nav-section-header i,
#sidebar.collapsed .nav-section-header svg {
    margin: 0 !important;
}

/* ✅ تولتیپ آیتم‌های تکی - با fixed position */
#sidebar.collapsed .nav-item:hover span {
    display: block !important;
    position: fixed !important;
    /* 🔥 تغییر کلیدی */
    right: auto !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;

    background-color: #ffffff !important;
    color: #1f2937 !important;
    border: 2px solid #e5e7eb !important;

    padding: 10px 14px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;

    width: auto !important;
    height: auto !important;
    min-width: 120px !important;
    opacity: 1 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    pointer-events: none !important;
    z-index: 999999 !important;
    /* 🔥 خیلی بالا */

    border-right: 4px solid #3b82f6 !important;
}

[data-theme="dark"] #sidebar.collapsed .nav-item:hover span {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
    border: 2px solid #374151 !important;
}

/* ✅ تولتیپ سرگروه‌ها - با fixed position */
#sidebar.collapsed .nav-section-header:hover span {
    display: block !important;
    position: fixed !important;
    /* 🔥 تغییر کلیدی */

    background-color: #ffffff !important;
    color: #1f2937 !important;
    border: 2px solid #e5e7eb !important;

    padding: 10px 14px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;

    width: auto !important;
    height: auto !important;
    min-width: 120px !important;
    opacity: 1 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    z-index: 999999 !important;
    /* 🔥 خیلی بالا */

    border-right: 4px solid #3b82f6 !important;
}

[data-theme="dark"] #sidebar.collapsed .nav-section-header:hover span {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
    border: 2px solid #374151 !important;
}

#sidebar.collapsed .nav-section {
    position: relative !important;
}

/* 🔥🔥 منوی شناور با position fixed */
#sidebar.collapsed .nav-section:hover .nav-section-body {
    display: block !important;
    position: fixed !important;
    /* 🎯 کلید اصلی */

    /* موقعیت با JavaScript محاسبه می‌شود، فعلاً پیش‌فرض */
    right: auto !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;

    min-width: 240px !important;
    max-width: 280px !important;
    background-color: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25) !important;
    padding: 8px !important;
    z-index: 999999 !important;
    /* 🔥 بالاترین ممکن */
}

[data-theme="dark"] #sidebar.collapsed .nav-section:hover .nav-section-body {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
}

/* ✅ آیتم‌های داخل منوی شناور */
#sidebar.collapsed .nav-section:hover .nav-section-body .nav-item {
    display: flex !important;
    justify-content: flex-start !important;
    text-align: right !important;
    padding: 10px 15px !important;
    margin-bottom: 2px !important;
    border-radius: 6px !important;
    transition: all 0.2s !important;
}

#sidebar.collapsed .nav-section:hover .nav-section-body .nav-item:hover {
    background-color: #f3f4f6 !important;
}

[data-theme="dark"] #sidebar.collapsed .nav-section:hover .nav-section-body .nav-item:hover {
    background-color: #374151 !important;
}

#sidebar.collapsed .nav-section:hover .nav-section-body .nav-item span {
    display: inline-block !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    color: #1f2937 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: static !important;
    transform: none !important;
    border: none !important;
    padding: 0 !important;
    margin-right: 8px !important;
    font-size: 0.9rem !important;
}

[data-theme="dark"] #sidebar.collapsed .nav-section:hover .nav-section-body .nav-item span {
    color: #f9fafb !important;
}