﻿/* CSS spécifique pour corriger le header RTL hébreu */

/* Réinitialiser le header pour RTL */
.topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100px !important;
    background: rgba(12, 12, 12, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 30px !important;
    direction: rtl !important;
}

/* Côté DROIT en RTL = menu + backtesteur (position 3) */
.topbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-right: 0 !important;
    margin-left: auto !important;
    order: 3 !important;
}

/* Centre = logo + titre (position 2) */
.topbar-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    order: 2 !important;
    text-align: center !important;
}

.topbar-logo-link {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    color: white !important;
    text-decoration: none !important;
    direction: rtl !important;
}

.topbar-title {
    font-size: 40px !important;
    font-weight: bold !important;
    background: linear-gradient(45deg, #00d4ff, #7b68ee, #ffd700) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-align: center !important;
}

/* Côté GAUCHE en RTL = icônes (position 1) */
.topbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    order: 1 !important;
}

/* Boutons RTL */
.btn-icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(0, 212, 255, 0.1) !important;
    color: #00d4ff !important;
    font-size: 20px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    direction: ltr !important; /* Garder les icônes en LTR */
}

.btn-backtest {
    background: linear-gradient(45deg, #00d4ff, #7b68ee) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 24px !important;
    color: white !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    direction: ltr !important; /* Garder le texte en LTR */
}

/* === MENU SIDEBAR RTL === */
.sidebar-menu {
    right: -var(--sidebar-width) !important;
    left: auto !important;
    direction: rtl !important;
}

.sidebar-menu.active {
    right: 0 !important;
    left: auto !important;
}

/* Menu items RTL avec nouvelles couleurs */
.menu-item:hover {
    background: linear-gradient(-90deg, #dc2626, #ef4444) !important; /* Rouge vif RTL */
    color: white !important;
    padding-right: 28px !important;
    padding-left: 24px !important;
    transform: translateX(-5px) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

.submenu-item:hover, .sub-item:hover {
    background: linear-gradient(-90deg, #2563eb, #3b82f6) !important; /* Bleu vif RTL */
    color: white !important;
    padding-right: 44px !important;
    padding-left: 40px !important;
    transform: translateX(-5px) !important;
    border-right: 3px solid #fbbf24 !important; /* Bordure jaune à droite */
    border-left: none !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

.sub-item:hover {
    padding-right: 64px !important;
    padding-left: 60px !important;
}
