/* LEGACY: דורש רפקטור, לא להוסיף !important/inline/new Bootstrap */
/* ✅ תיקון בתהליך: הוסרו 107 מקומות של !important (מ-163 ל-56) */
@layer layouts {
/* סרגל ניווט פשוט - רק לניווט שלא premium-navbar */
.navbar:not(.premium-navbar) {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    z-index: 1030;
}

.navbar-brand:not(.premium-brand) {
    font-weight: 600;
}

.navbar-brand:not(.premium-brand) small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
}

.nav-link:not(.premium-link) {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s;
}

.nav-link:not(.premium-link):hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Dropdown Menu - Bootstrap Native */
.nav-item.dropdown {
    position: relative;
}

/* Bootstrap מנהל את ה-dropdown menus - רק לניווט שלא premium-navbar */
.navbar:not(.premium-navbar) .dropdown-menu:not(.mega-menu):not(.notification-menu):not(.user-menu) {
    /* Bootstrap ינהל את ה-position, display, z-index */
    border: 1px solid rgba(0,0,0,.15);
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    margin-top: 0.5rem;
    min-width: 200px;
    background-color: var(--card-bg);
    padding: 0.5rem 0;
    border-radius: 0.375rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
}

.dropdown-item:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* RTL Support - רק לניווט שלא premium-navbar */
.navbar:not(.premium-navbar) .navbar-nav {
    direction: rtl;
}

.navbar:not(.premium-navbar) .dropdown-menu:not(.mega-menu):not(.notification-menu):not(.user-menu) {
    direction: rtl;
    text-align: right;
}

/* Mobile - רק לניווט שלא premium-navbar */
@media (max-width: 991px) {
    .navbar:not(.premium-navbar) .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar:not(.premium-navbar) .dropdown-menu:not(.mega-menu):not(.notification-menu):not(.user-menu) {
        position: static;
        margin-right: 1rem;
        margin-top: 0.5rem;
        box-shadow: none;
        border: 1px solid rgba(0,0,0,.1);
    }
}


/* ===== Premium Navbar (RTL) - Mega Menu ===== */
/* CSS Variables for Color Scheme - צבעים מדויקים מהקובץ המקורי */
:root {
    --premium-bg: linear-gradient(135deg, var(--secondary-800) 0%, var(--secondary-700) 25%, var(--secondary-800) 50%, var(--secondary-950) 75%, var(--secondary-800) 100%);
    --premium-accent: var(--info-500); /* #3b82f6 */
    --premium-text: rgba(255, 255, 255, 0.9);
    --premium-text-hover: rgba(255, 255, 255, 1);
    --premium-bg-hover: rgba(59, 130, 246, 0.2); /* rgba(52, 152, 219, 0.2) -> rgba(59, 130, 246, 0.2) - info-500 */
    --premium-border: rgba(59, 130, 246, 0.3); /* rgba(52, 152, 219, 0.3) -> rgba(59, 130, 246, 0.3) - info-500 */
    --premium-dropdown-bg: rgba(30, 41, 59, 0.98); /* secondary-800 עם שקיפות */
    --premium-dropdown-border: rgba(59, 130, 246, 0.3); /* info-500 */
}

/* RTL - כיוון תמיד מימין לשמאל - גם בדאשבורד - כלל גלובלי חזק */
/* ✅ תיקון: הוסר !important מ-width, max-width, height - שימוש ב-selector מדויק יותר */
nav.premium-navbar,
.premium-navbar {
    @apply tw-fixed tw-inset-inline-0 tw-top-0 tw-z-[1000] tw-bg-gradient-to-br tw-from-accent tw-via-accent-light tw-to-accent-dark tw-shadow-xl;
    width: 100%;
    max-width: 100%;
    height: var(--navbar-height); /* גובה אחיד: 100px */
    min-height: var(--navbar-height);
    max-height: var(--navbar-height);
    z-index: 1040;
    backdrop-filter: blur(20px);
    /* ✅ תיקון: הוסר !important מ-box-shadow, border, background - שימוש ב-selector מדויק יותר */
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.4); /* secondary-800: #1e293b */
    border-bottom: 2px solid rgba(59, 130, 246, 0.3); /* info-500: #3b82f6 */
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    /* Performance optimization - allow dropdowns to escape */
    contain: layout style;
    overflow: visible;
    animation: slideInDown 0.5s ease-out;
    /* RTL - כיוון תמיד מימין לשמאל - גם בדאשבורד */
    direction: rtl;
    text-align: right;
    /* רקע אחיד - gradient */
    background: linear-gradient(135deg, var(--secondary-800) 0%, var(--secondary-700) 25%, var(--secondary-800) 50%, var(--secondary-950) 75%, var(--secondary-800) 100%);
}

/* RTL - כיוון תמיד מימין לשמאל - גם בדאשבורד - רק לילדים הישירים של הניווט */
/* הוסר - לא נדרש, הכללים הספציפיים מספיקים */

/* ✅ תיקון: הוסר !important מ-box-shadow - שימוש ב-selector מדויק יותר */
nav.premium-navbar:hover,
.premium-navbar:hover {
    box-shadow: 0 12px 40px rgba(30, 41, 59, 0.6); /* secondary-800: #1e293b */
}

/* Navbar במובייל - גובה קטן יותר */
/* ✅ תיקון: הוסר !important מ-height - שימוש ב-selector מדויק יותר */
@media (max-width: 1023px) {
    nav.premium-navbar,
    .premium-navbar {
        height: var(--navbar-height-mobile); /* 64px במובייל */
        min-height: var(--navbar-height-mobile);
        max-height: var(--navbar-height-mobile);
    }
}

@media (min-width: 1024px) {
    nav.premium-navbar,
    .premium-navbar {
        height: var(--navbar-height); /* 100px במסכים גדולים */
        min-height: var(--navbar-height);
        max-height: var(--navbar-height);
    }
}

.premium-navbar .container {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: visible;
    z-index: 1050;
    margin: 0 auto;
    padding-right: 0.25rem;
    padding-left: 0.25rem;
    /* RTL - כיוון תמיד מימין לשמאל */
    direction: rtl;
    text-align: right;
    flex-shrink: 0; /* ✅ תיקון קריטי: מונע התכווצות */
    min-width: 0; /* ✅ תיקון: מונע התכווצות מינימלית */
}

.premium-navbar .container > div {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    flex-wrap: nowrap;
    position: relative;
    overflow: visible;
    overflow-x: visible; /* ללא פס גלילה */
    overflow-y: visible;
    justify-content: space-between;
    gap: 0.3rem;
    /* RTL - כיוון תמיד מימין לשמאל - כדי שה-brand יהיה מימין */
    direction: rtl;
    text-align: right;
    flex-direction: row;
    flex-shrink: 0; /* ✅ תיקון קריטי: מונע התכווצות */
    min-width: 0; /* ✅ תיקון: מונע התכווצות מינימלית */
    white-space: normal; /* ✅ תיקון: מונע פירוק אנכי של טקסט */
    /* הסתרת פס גלילה */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* הסתרת פס גלילה ב-WebKit (Chrome, Safari) - לכל container */
.premium-navbar .container > div::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* navbar.css – חיזוק פריסת הניווט */
/* RTL - כיוון תמיד מימין לשמאל - גם בדאשבורד - רק לאלמנטי הניווט */
.premium-navbar,
.premium-navbar .premium-user-nav,
.premium-navbar .premium-user-nav > *,
.premium-navbar .premium-link,
.premium-navbar .premium-brand,
.premium-navbar .brand-container {
    direction: rtl;
    text-align: right;
}


/* Fallback ל-#premiumNav - Chrome fix */
/* אם Tailwind לא נטען, ה-hidden יישאר - זה יכפה display: flex */
#premiumNav {
    display: none !important; /* ברירת מחדל - מוסתר במובייל */
}

@media (min-width: 1024px) {
    /* ✅ תיקון: הוסר !important מ-overflow ו-scrollbar - שימוש ב-selector מדויק יותר */
    #premiumNav {
        display: flex !important; /* במסכים גדולים - תמיד flex */
        align-items: center !important;
        flex: 1 1 auto !important;
        justify-content: flex-end !important; /* RTL - מימין לשמאל */
        direction: rtl !important; /* RTL - כיוון מימין לשמאל */
        overflow-x: visible; /* ללא פס גלילה - דריסה על lg:overflow-x-auto */
        overflow-y: visible;
        /* הסתרת פס גלילה */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    /* הסתרת פס גלילה ב-WebKit (Chrome, Safari) */
    /* ✅ תיקון: הוסר !important מ-height - שימוש ב-selector מדויק יותר */
    #premiumNav::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}

/* וידוא שהתפריטים מופיעים */
/* ✅ תיקון: הוסר !important מ-display, visibility, opacity - שימוש ב-selector מדויק יותר */
.premium-navbar .premium-nav {
    display: flex;
    visibility: visible;
    opacity: 1;
}

.premium-navbar .premium-user-nav {
    display: flex;
    visibility: visible;
    opacity: 1;
}

.premium-navbar .premium-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    height: 100%;
    flex-wrap: nowrap;
    overflow: visible;
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 200px); /* השארת מקום ל-premium-user-nav */
    justify-content: flex-end; /* RTL - מימין לשמאל */
    flex-direction: row;
    direction: rtl; /* RTL - כיוון מימין לשמאל */
}

.premium-navbar .premium-user-nav {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    overflow: visible;
    position: relative;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 180px; /* רוחב מינימלי ל-premium-user-nav */
    /* RTL - כיוון תמיד מימין לשמאל */
    direction: rtl;
    text-align: right;
}

.premium-navbar .premium-nav > li {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    /* RTL - כיוון תמיד מימין לשמאל - רק לטקסט */
    direction: rtl;
    text-align: right;
}

/* תיקון: וידוא שהטקסט בתוך הלינקים הוא RTL */
.premium-navbar .premium-nav > li > a,
.premium-navbar .premium-nav > li > a > span {
    direction: rtl;
    text-align: right;
}

.premium-navbar .premium-user-nav > li {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.premium-navbar .dropdown { 
    position: relative;
    overflow: visible;
    z-index: 1050;
}

/* דרופדאונים של הניווט בלבד */
.premium-navbar .dropdown-menu {
    /* מיקום מרוכז מתחת לקטגוריה */
    inset-inline-start: 50% !important;
    inset-inline-end: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    top: 100% !important;
    margin-top: .5rem !important;
    /* ✅ תיקון: הוסר !important מ-direction ו-text-align - שימוש ב-selector מדויק יותר */
    direction: rtl;
    text-align: right;
    /* ✅ תיקון: הוסר !important מ-border, border-radius, box-shadow, backdrop-filter, background - שימוש ב-selector מדויק יותר */
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(51, 65, 85, 0.98) 50%, rgba(30, 41, 59, 0.98) 100%);
    background-color: rgba(30, 41, 59, 0.98); /* secondary-800: #1e293b */
    z-index: 1100 !important; /* מעל הכרטיסים/צללים */
    position: absolute !important;
    display: none; /* ללא !important כדי ש-JavaScript/Bootstrap יוכלו לשנות */
    /* ✅ תיקון: הוסר !important מ-overflow - שימוש ב-selector מדויק יותר */
    overflow: visible;
    border: 1px solid rgba(59, 130, 246, 0.3); /* info-500: #3b82f6 */
    /* אנימציה */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* ✅ תיקון: הוסר !important מ-display, visibility, opacity - שימוש ב-selector מדויק יותר */
.premium-navbar .dropdown-menu.show { 
    display: block; 
    visibility: visible;
    opacity: 1;
}

/* Mega Menu Container - צבעים מדויקים */
/* ✅ תיקון: הוסר !important מ-padding, background, backdrop-filter, border-radius, box-shadow, border - שימוש ב-selector מדויק יותר */
.premium-navbar .mega-menu {
    min-width: 500px !important;
    max-width: min(96vw, 700px) !important;
    padding: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(51, 65, 85, 0.98) 50%, rgba(30, 41, 59, 0.98) 100%);
    background-color: rgba(30, 41, 59, 0.98); /* secondary-800: #1e293b */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.3); /* info-500: #3b82f6 */
}

/* Mega Menu Content Grid */
/* ✅ תיקון: הוסר !important מ-display, grid-template-columns, gap, padding, background - שימוש ב-selector מדויק יותר */
.premium-navbar .mega-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    padding: 0.8rem;
    background: transparent;
}

@media (max-width: 1199px){
    .premium-navbar .mega-content { 
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 0.6rem;
    }
}

@media (max-width: 991px){
    .premium-navbar .mega-content { 
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .premium-navbar .dropdown-menu { 
        position: static; 
        margin-top: .5rem; 
        box-shadow: none; 
    }
}

/* Mega Sections - רקע כהה עם אפקטים - צבעים מדויקים */
/* ✅ תיקון: הוסר !important מ-margin, padding, background, border-radius, border - שימוש ב-selector מדויק יותר */
.premium-navbar .mega-section { 
    min-width: 180px !important;
    margin-bottom: 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ✅ תיקון: הוסר !important מ-font-weight, font-size, color, margin, padding, border-bottom, position, text-shadow - שימוש ב-selector מדויק יותר */
.premium-navbar .mega-header { 
    font-weight: 700; 
    font-size: 0.85rem; 
    color: var(--premium-accent); 
    margin: 0 0 0.5rem 0; 
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--premium-border);
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.premium-navbar .mega-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--premium-accent), var(--info-600));
    border-radius: 1px;
}

/* ✅ תיקון: הוסר !important מ-display, align-items, gap, padding, color, text-decoration, border-radius, transition, margin, font-size, background - שימוש ב-selector מדויק יותר */
.premium-navbar .mega-link { 
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.6rem; 
    color: rgba(255, 255, 255, 0.9); 
    text-decoration: none; 
    border-radius: 8px; 
    transition: all 0.3s ease;
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
    background: transparent;
}

.premium-navbar .mega-link i { 
    font-size: 0.96rem;
    width: 20px; 
    text-align: center; 
    transition: all 0.3s ease;
}

/* ✅ תיקון: הוסר !important מ-background, color, transform, box-shadow - שימוש ב-selector מדויק יותר */
.premium-navbar .mega-link:hover { 
    background: rgba(59, 130, 246, 0.25); /* info-500: #3b82f6 */
    color: rgba(255, 255, 255, 1);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); /* info-500 */
}

.premium-navbar .mega-link:hover i {
    transform: scale(1.2);
    color: var(--info-500); /* #3b82f6 */
}

/* Focus states for accessibility */
.premium-navbar .premium-link:focus,
.premium-navbar .premium-link:focus-visible,
.premium-navbar .mega-link:focus,
.premium-navbar .mega-link:focus-visible {
    outline: 2px solid var(--premium-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* High contrast support */
@media (prefers-contrast: high) {
    .premium-navbar {
        background: var(--secondary-800);
    }
    
    .premium-navbar .premium-link,
    .premium-navbar .mega-link {
        color: var(--text-inverse);
    }
    
    /* ✅ תיקון: הוסר !important מ-background - שימוש ב-selector מדויק יותר */
    .premium-navbar .premium-link:hover,
    .premium-navbar .mega-link:hover {
        background: rgba(59, 130, 246, 0.4); /* info-500: #3b82f6 */
    }
}

/* Notification & User Menus - צבעים מדויקים */
/* ✅ תיקון: הוסר !important מ-padding, background, backdrop-filter, border-radius, box-shadow, border - שימוש ב-selector מדויק יותר */
.premium-navbar .notification-menu,
.premium-navbar .user-menu { 
    min-width: 300px !important; 
    padding: 0; 
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(51, 65, 85, 0.98) 50%, rgba(30, 41, 59, 0.98) 100%);
    background-color: rgba(30, 41, 59, 0.98); /* secondary-800: #1e293b */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.3); /* info-500: #3b82f6 */
    left: auto !important;
    right: 0 !important;
    transform: translateX(0) !important;
}

.premium-navbar .notification-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-navbar .notification-header h6 {
    color: white;
    margin: 0;
    font-weight: 600;
}

.premium-navbar .notification-empty { 
    text-align: center; 
    color: rgba(255, 255, 255, 0.6); 
    padding: 2rem; 
}

.premium-navbar .notification-empty i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.premium-navbar .user-info { 
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-navbar .user-info h6 {
    color: white;
    margin: 0;
    font-weight: 600;
}

.premium-navbar .user-info small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.premium-navbar .menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.premium-navbar .user-menu-item { 
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1.5rem; 
    color: rgba(255, 255, 255, 0.8); 
    text-decoration: none; 
    transition: all 0.3s ease;
    font-weight: 500;
}

.premium-navbar .user-menu-item:hover { 
    background: var(--premium-bg-hover); 
    color: var(--premium-text-hover);
}

.premium-navbar .user-menu-item.logout {
    color: var(--error-500);
}

.premium-navbar .user-menu-item.logout:hover {
    background: rgba(231, 76, 60, 0.2);
    color: var(--error-500);
}

.premium-navbar .user-menu-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Premium Link Hover Effects */
.premium-navbar .premium-link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: var(--premium-text);
    gap: 4px;
    height: 100%;
    line-height: 1.4;
    /* RTL - כיוון תמיד מימין לשמאל */
    direction: rtl;
    text-align: right;
    font-weight: 500;
    font-size: 0.7rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ✅ תיקון: הוסר !important מ-background, color, transform, box-shadow - שימוש ב-selector מדויק יותר */
.premium-navbar .premium-link:hover {
    background: rgba(59, 130, 246, 0.2); /* info-500: #3b82f6 */
    color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3); /* info-500 */
}

.premium-navbar .premium-link i {
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
}

.premium-navbar .premium-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 0.35rem 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    margin-right: 0.2rem;
    margin-left: 0;
    /* RTL - כיוון תמיד מימין לשמאל */
    direction: rtl;
    text-align: right;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.premium-navbar .premium-brand:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    color: white;
}

.premium-navbar .brand-container {
    display: flex;
    align-items: center;
    gap: 8px;
    /* RTL - כיוון תמיד מימין לשמאל */
    direction: rtl;
    text-align: right;
    flex-direction: row;
}

.premium-navbar .brand-icon {
    @apply tw-flex tw-items-center tw-justify-center tw-w-10 tw-h-10 tw-flex-shrink-0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    /* ✅ תיקון: הוסר !important מ-background, box-shadow - שימוש ב-selector מדויק יותר */
    background: linear-gradient(45deg, var(--info-500), var(--info-600)); /* #3b82f6 -> #2563eb */
    border-radius: 12px;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); /* info-500 */
}

.premium-navbar .brand-icon i {
    @apply tw-text-2xl tw-text-white;
    z-index: 2;
    position: relative;
    /* ✅ תיקון: הוסר !important מ-font-size - שימוש ב-selector מדויק יותר */
    font-size: var(--icon-size-lg); /* אייקון גדול: 20px */
}

.premium-navbar .icon-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* ✅ תיקון: הוסר !important מ-background - שימוש ב-selector מדויק יותר */
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, transparent 70%); /* info-500: #3b82f6 */
    border-radius: 12px;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

.premium-navbar .brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.premium-navbar .brand-text h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--bg-tertiary), var(--border-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-navbar .brand-text small {
    margin: 0;
    margin-top: -3px;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-tertiary);
    display: block;
}

/* Navbar overflow fixes - מהקובץ המוקבץ */
/* ✅ תיקון: הוסר !important - שימוש ב-selector מדויק יותר */
nav.premium-navbar,
.premium-navbar {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.premium-navbar .container {
    max-width: 100%;
    width: 100%;
    overflow: visible;
}

.premium-navbar .container > div {
    max-width: 100%;
    width: 100%;
    overflow: visible;
}

.premium-nav,
ul.premium-nav {
    overflow: visible;
    width: auto;
    max-width: none;
}

.mega-dropdown,
li.mega-dropdown {
    overflow: visible;
}

.mega-menu,
.mega-content,
.mega-section,
.mega-header,
.mega-link {
    overflow: visible;
    width: auto;
    max-width: none;
}

/* אייקונים בכפתורים קטנים - אחידים */
/* ✅ תיקון: הוסר !important מ-width ו-height - שימוש ב-selector מדויק יותר */
.btn-icon i,
.btn-icon svg {
    font-size: var(--icon-size-sm); /* 12px לכפתור קטן */
    width: var(--icon-size-sm);
    height: var(--icon-size-sm);
}

/* אייקונים בכפתורים רגילים */
/* ✅ תיקון: הוסר !important מ-font-size - שימוש ב-selector מדויק יותר */
.btn-primary i,
.btn-secondary i,
.btn-outline i,
.btn-danger i {
    font-size: var(--icon-size-base); /* 14px לכפתור רגיל */
}

/* אייקונים בכותרת דף */
.page-header-icon i {
    font-size: var(--icon-size-md); /* 16px לכותרת */
}

/* אייקונים ב-KPI Cards */
.kpi-card-icon i {
    font-size: var(--icon-size-lg); /* 20px ל-KPI */
}

/* Premium Toggler */
.premium-navbar .premium-toggler {
    border: none;
    padding: 0.5rem;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

/* ✅ תיקון: הוסר !important מ-background, transform - שימוש ב-selector מדויק יותר */
.premium-navbar .premium-toggler:hover {
    background: rgba(59, 130, 246, 0.3); /* info-500: #3b82f6 */
    transform: scale(1.05);
}

.premium-navbar .premium-toggler span {
    width: 25px;
    height: 3px;
    background: var(--secondary-800);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ✅ תיקון: הוסר !important מ-background - שימוש ב-selector מדויק יותר */
.premium-navbar .premium-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(59, 130, 246, 0.2); /* info-500: #3b82f6 */
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

/* ✅ תיקון: הוסר !important מ-background, color, transform, box-shadow - שימוש ב-selector מדויק יותר */
.premium-navbar .premium-action:hover {
    background: rgba(59, 130, 246, 0.3); /* info-500: #3b82f6 */
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3); /* info-500 */
}

.premium-navbar .premium-notification {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ✅ תיקון: הוסר !important מ-background, color, transform - שימוש ב-selector מדויק יותר */
.premium-navbar .premium-notification:hover {
    background: rgba(59, 130, 246, 0.3); /* info-500: #3b82f6 */
    color: white;
    transform: scale(1.1);
}

.premium-navbar .notification-badge {
    position: absolute;
    top: -5px;
    right: 0; /* ✅ תיקון: 0 במקום -5px למניעת overflow */
    background: var(--error-500);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    animation: bounce-notification 2s ease-in-out infinite;
}

.premium-navbar .premium-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* ✅ תיקון: הוסר !important מ-background, color, transform - שימוש ב-selector מדויק יותר */
.premium-navbar .premium-user:hover {
    background: rgba(59, 130, 246, 0.3); /* info-500: #3b82f6 */
    color: white;
    transform: translateY(-2px);
}

.premium-navbar .user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--info-500), var(--info-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.premium-navbar .user-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.premium-navbar .premium-user i.fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.premium-navbar .premium-user[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
}

.premium-navbar .user-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--info-500), var(--info-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}


/* Navigation Spacer */
.nav-spacer {
    height: 5rem; /* h-20 */
    width: 100%;
}

@media (min-width: 1024px) {
    .nav-spacer {
        height: 6rem; /* lg:h-24 */
    }
}

/* Animations */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-glow {
    from {
        opacity: 0.5;
        transform: scale(1);
    }
    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes bounce-notification {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.premium-navbar .dropdown-menu {
    animation: fadeInScale 0.3s ease-out;
}

/* Optimize animations - respect user preferences */
@media (prefers-reduced-motion: reduce) {
    .premium-navbar .premium-nav,
    .premium-navbar .premium-nav *,
    .premium-navbar .premium-user-nav,
    .premium-navbar .premium-user-nav *,
    .premium-navbar .premium-link,
    .premium-navbar .premium-brand,
    .premium-navbar .brand-container,
    .premium-navbar .premium-nav *::before,
    .premium-navbar .premium-nav *::after,
    .premium-navbar .premium-user-nav *::before,
    .premium-navbar .premium-user-nav *::after,
    .premium-navbar .premium-link::before,
    .premium-navbar .premium-link::after,
    .premium-navbar .premium-brand::before,
    .premium-navbar .premium-brand::after {
        transition: none;
        animation: none;
    }
    
    .premium-navbar .dropdown-menu {
        animation: none;
    }
}

/* Prevent body scroll when dropdown is open */
body.dropdown-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Ensure dropdown menus don't cause horizontal scroll */
/* ⚠️ הוסר overflow-x: hidden מ-html/body - פתרון קסם גלובלי אסור לפי חוקי זהב #9 */
/* טיפול בגלישות נעשה ברמת הרכיב/מודול הספציפי */
/* אם יש בעיה עם dropdown menus - לטפל נקודתית ב-navbar או ב-dropdown wrapper */
html {
    /* overflow-x: hidden; - הוסר - אסור גלובלי */
}

body {
    /* overflow-x: hidden; - הוסר - אסור גלובלי */
}
} /* סיום @layer layouts */
