/* ==================== متغیرها ==================== */
:root {
    --primary-dark: #000;
    --secondary-dark: #1a1f2e;
    --accent-blue: #2563eb;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --sidebar-width-desktop: 280px;
    --sidebar-width-tablet: 80px;
    --sidebar-width-mobile: 85%;
    --sidebar-collapsed: 80px;
    --sidebar-expanded: 280px;
    --transition-speed: 0.3s;
    --header-height: 77px;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --primary: #0f4c75;
    --secondary: #3282b8;
    --accent: #00adb5;
    --text: #eeeeee;
    --border: #2d4059;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
    --info: #0984e3;
    --card-bg: #222831;
    --hover-bg: #2d4059;
    --shadow: rgba(0, 0, 0, 0.3);
    --tradingview-color: #00b8ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== کانتینر اصلی ==================== */
.training-page-fix {
    background-color: var(--primary-dark);
    min-height: 100vh;
}

.training-container-fix {
    display: flex;
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* ==================== سایدبار ==================== */
.sidebar-fix {
    position: sticky !important;
    top: 100px !important;
    height: calc(100vh - 140px) !important;
    background: linear-gradient(180deg, var(--secondary-dark) 0%, rgba(26, 31, 46, 0.98) 100%) !important;
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    transition: width var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* ==================== هدر سایدبار ==================== */
.sidebar-fix .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* دکمه بازگشت */
.sidebar-fix .back-to-home-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(37, 99, 235, 0.15);
    color: var(--accent-blue);
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
    border: 1px solid rgba(37, 99, 235, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    order: 1;
}

.sidebar-fix .back-to-home-btn:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

/* دکمه جمع کننده */
.sidebar-fix .sidebar-toggle {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s;
    order: 2;
}

.sidebar-fix .sidebar-toggle:hover {
    background: var(--accent-blue);
    transform: scale(1.05);
}

/* جستجو */
.sidebar-fix .sidebar-search {
    padding: 15px;
    transition: all var(--transition-speed);
}

.sidebar-fix .sidebar-search-group {
    position: relative;
}

.sidebar-fix .sidebar-search-input {
    width: 100%;
    padding: 10px 35px 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: all 0.3s;
    direction: rtl;
}

.sidebar-fix .sidebar-search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.sidebar-fix .sidebar-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* محتوای سایدبار */
.sidebar-fix .sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-fix .sidebar-section {
    padding: 12px 15px;
}

.sidebar-fix .sidebar-section-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-right: 8px;
    transition: all var(--transition-speed);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-fix .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-fix .sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px !important;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    position: relative;
    min-width: 0;
}

.sidebar-fix .sidebar-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateX(-3px);
}

.sidebar-fix .sidebar-nav-link.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.2), transparent);
    color: var(--text-primary);
    border-right: 3px solid var(--accent-blue);
}

.sidebar-fix .sidebar-nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-fix .sidebar-nav-text {
    flex: 1;
    font-size: 0.85rem;
    transition: all var(--transition-speed);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-fix .sidebar-badge {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.sidebar-fix .symbol-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.6rem !important;
    padding: 2px 6px;
    border-radius: 8px;
    white-space: nowrap;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-fix .symbol-category {
    margin-bottom: 12px;
}

.sidebar-fix .category-header {
    padding: 8px 12px 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.sidebar-fix .category-header i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* پیام قفل شده */
.sidebar-fix .locked-message {
    font-size: 0.7rem;
    color: #ef4444;
    padding: 4px 12px 8px 12px;
    border-bottom: 1px dashed rgba(239, 68, 68, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-fix .locked-message a {
    color: #f59e0b;
    text-decoration: underline;
}

.locked-timeframe {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================== حالت جمع شده سایدبار (دسکتاپ) ==================== */
.sidebar-fix.collapsed {
    width: var(--sidebar-collapsed) !important;
}

.sidebar-fix.collapsed .sidebar-header {
    justify-content: center;
}

.sidebar-fix.collapsed .back-to-home-btn {
    display: none;
}

.sidebar-fix.collapsed .sidebar-toggle {
    transform: rotate(180deg);
    order: 1;
}

.sidebar-fix.collapsed .sidebar-search,
.sidebar-fix.collapsed .sidebar-section-title,
.sidebar-fix.collapsed .sidebar-nav-text,
.sidebar-fix.collapsed .sidebar-badge:not(.symbol-badge),
.sidebar-fix.collapsed .symbol-badge,
.sidebar-fix.collapsed .category-header span,
.sidebar-fix.collapsed .locked-message {
    display: none;
}

.sidebar-fix.collapsed .sidebar-nav-link {
    justify-content: center;
    padding: 10px !important;
}

.sidebar-fix.collapsed .sidebar-nav-icon {
    margin: 0;
    font-size: 1.2rem;
}

.sidebar-fix.collapsed .category-header {
    justify-content: center;
    padding: 8px 0;
}

.sidebar-fix.collapsed .symbol-category .sidebar-nav-link {
    justify-content: center;
}

/* ==================== محتوای اصلی ==================== */
.main-content-fix {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* بخش تایم فریم */
.timeframe-section {
    padding: 40px 0;
    scroll-margin-top: 120px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

/* گرید کارت‌ها */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.training-card {
    background: linear-gradient(145deg, var(--secondary-dark), #151a2d);
    border: 1px solid #2d3748;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.training-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.training-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    background-color: #1a1f2e;
}

.training-card:hover .training-image {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.training-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.training-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.symbol-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 15px;
}

.symbol-info2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 15px;
}

.info-item {
    text-align: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    padding: 6px;
}

.info-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.info-value {
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.timeframe-value {
    color: var(--accent-green);
}

.date-value {
    color: var(--accent-blue);
}

.btn-group-footer {
    display: flex;
    gap: 8px;
    width: 100%;
}

.btn-tradingview {
    background: rgba(0, 184, 255, 0.15);
    color: #00b8ff;
    border: 1px solid rgba(0, 184, 255, 0.3);
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
    font-size: 0.8rem;
}

.btn-tradingview:hover {
    background: #00b8ff;
    color: white;
}

/* ==================== چک‌لیست ==================== */
.timeframe-checklist {
    background: var(--darker-bg);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 173, 181, 0.15);
}

.timeframe-checklist-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 173, 181, 0.2);
    flex-wrap: wrap;
}

.timeframe-checklist-title h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.checklist-sections-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.checklist-category {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.checklist-category .category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 0 12px 0;
}

.checklist-category .category-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.checklist-item-link {
    display: flex !important;
    align-items: center !important;
    padding: 10px 12px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.2s ease !important;
    margin-bottom: 6px !important;
}

.checklist-item-link:hover {
    background: rgba(0, 173, 181, 0.08) !important;
    transform: translateX(-3px) !important;
}

.checklist-item-link input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 173, 181, 0.3);
    border-radius: 6px;
    margin-left: 10px;
    cursor: default;
    flex-shrink: 0;
    position: relative;
}

.checklist-item-link input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--success), #00d4ff);
    border-color: transparent;
}

.checklist-item-link input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.checklist-item-link label {
    flex: 1;
    margin: 0;
    cursor: default;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.checklist-item-link:hover label {
    color: var(--text);
}

.checklist-link-icon {
    opacity: 0.4;
    color: var(--accent);
    font-size: 0.75rem;
    margin-right: 8px;
    flex-shrink: 0;
}

/* ==================== مودال تصویر ==================== */
.image-viewer-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-header-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10001;
    color: white;
    direction: rtl;
}

.modal-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
}

.modal-close-btn:hover {
    background: var(--accent-blue);
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    z-index: 10001;
}

.modal-prev-btn {
    right: 20px;
}

.modal-next-btn {
    left: 20px;
}

.modal-nav-btn:hover {
    background: var(--accent-blue);
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#modalImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-footer-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.5), transparent);
    padding: 25px 20px 20px;
    text-align: center;
    color: white;
}

/* ==================== دکمه موبایل ==================== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    right: 15px;
    top: 80px;
    z-index: 1002;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

/* ==================== دکمه‌های تم تیره ==================== */
.btn-dark-mode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cta-dark {
    background: linear-gradient(135deg, #ff6b35, #ff3d00);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
}

.btn-renew-dark {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==================== ریسپانسیو ==================== */

/* دسکتاپ (بیشتر از 1024px) */
@media (min-width: 1025px) {
    .sidebar-fix {
        width: var(--sidebar-expanded) !important;
    }
    
    .sidebar-fix.collapsed {
        width: var(--sidebar-collapsed) !important;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
}

/* ==================== تبلت (768px تا 1024px) ==================== */
@media (min-width: 768px) and (max-width: 1024px) {
    /* حالت عادی تبلت - جمع شده */
    .sidebar-fix {
        width: var(--sidebar-collapsed) !important;
        position: sticky !important;
        top: 100px !important;
        transition: width 0.3s ease;
    }
    
    /* مخفی کردن متن‌ها در حالت جمع شده */
    .sidebar-fix .sidebar-logo-text,
    .sidebar-fix .sidebar-nav-text,
    .sidebar-fix .sidebar-badge,
    .sidebar-fix .sidebar-section-title,
    .sidebar-fix .back-to-home-btn span,
    .sidebar-fix .category-header span,
    .sidebar-fix .sidebar-search,
    .sidebar-fix .locked-message {
        display: none !important;
    }
    
    /* وسط چین کردن آیکون‌ها */
    .sidebar-fix .sidebar-nav-link {
        justify-content: center !important;
        padding: 10px !important;
    }
    
    .sidebar-fix .sidebar-nav-icon {
        margin: 0 !important;
        font-size: 1.2rem !important;
    }
    
    /* دکمه بازگشت - فقط آیکون */
    .sidebar-fix .back-to-home-btn {
        justify-content: center !important;
        padding: 10px !important;
        font-size: 0 !important;
        order: 1;
    }
    
    .sidebar-fix .back-to-home-btn::before {
        content: "←";
        font-size: 1rem;
    }
    
    /* دکمه جمع کننده */
    .sidebar-fix .sidebar-toggle {
        order: 2;
    }
    
    /* ========== حالت باز شده در تبلت ========== */
    .sidebar-fix.tablet-expanded {
        width: var(--sidebar-expanded) !important;
    }
    
    /* نمایش متن‌ها در حالت باز */
    .sidebar-fix.tablet-expanded .sidebar-logo-text,
    .sidebar-fix.tablet-expanded .sidebar-nav-text,
    .sidebar-fix.tablet-expanded .sidebar-badge,
    .sidebar-fix.tablet-expanded .sidebar-section-title,
    .sidebar-fix.tablet-expanded .back-to-home-btn span,
    .sidebar-fix.tablet-expanded .category-header span,
    .sidebar-fix.tablet-expanded .sidebar-search,
    .sidebar-fix.tablet-expanded .locked-message {
        display: flex !important;
    }
    
    /* راست چین کردن لینک‌ها در حالت باز */
    .sidebar-fix.tablet-expanded .sidebar-nav-link {
        justify-content: flex-start !important;
        padding: 8px 12px !important;
    }
    
    .sidebar-fix.tablet-expanded .sidebar-nav-icon {
        margin-left: 0 !important;
        font-size: 1rem !important;
    }
    
    .sidebar-fix.tablet-expanded .category-header {
        justify-content: flex-start !important;
        padding: 8px 12px !important;
    }
    
    /* دکمه بازگشت - نمایش متن کامل */
    .sidebar-fix.tablet-expanded .back-to-home-btn {
        font-size: 0.85rem !important;
        justify-content: center !important;
    }
    
    .sidebar-fix.tablet-expanded .back-to-home-btn::before {
        content: none !important;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
}

/* موبایل (کمتر از 768px) */
@media (max-width: 767px) {
    .training-container-fix {
        flex-direction: column;
        padding: 10px;
        gap: 0;
    }
    
    .sidebar-fix {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 85% !important;
        max-width: 300px;
        height: 100vh !important;
        transition: right 0.3s ease;
        z-index: 1001;
        border-radius: 0;
    }
    
    .sidebar-fix.mobile-open {
        right: 0 !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .main-content-fix {
        margin-right: 0 !important;
        padding-top: 70px !important;
    }
    
    .market-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .timeframe-section {
        padding: 25px 0;
    }
}

/* اسکرول بار */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 3px;
}

/* ==================== نمایش آیکون دکمه بازگشت در حالت جمع شده ==================== */

/* حالت جمع شده - نمایش آیکون به جای متن کامل */
.sidebar-fix.collapsed .back-to-home-btn,
.sidebar.collapsed .back-to-home-btn {
    display: flex !important;
    font-size: 0 !important;
    padding: 10px !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: 34px !important;
}

.sidebar-fix.collapsed .back-to-home-btn::before,
.sidebar.collapsed .back-to-home-btn::before {
    content: "←";
    font-size: 1.2rem;
    margin: 0;
}

/* تنظیم هدر در حالت جمع شده */
.sidebar-fix.collapsed .sidebar-header,
.sidebar.collapsed .sidebar-header {
    justify-content: space-between !important;
    gap: 5px;
}

/* تنظیم دکمه جمع کننده در کنار آیکون بازگشت */
.sidebar-fix.collapsed .sidebar-toggle,
.sidebar.collapsed .sidebar-toggle {
    order: 2;
}

.sidebar-fix.collapsed .back-to-home-btn,
.sidebar.collapsed .back-to-home-btn {
    order: 1;
}