/* Header Inline Styles - Language Switcher & Notifications - Mobile Optimized */
.cnb-topbar__language {
    position: relative;
    display: inline-block !important;
    margin-left: 8px;
    visibility: visible !important;
    opacity: 1 !important;
}

.cnb-topbar__language .cnb-topbar__link {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
    gap: 6px;
}

.cnb-topbar__language .cnb-topbar__link:hover {
    background-color: rgba(255,255,255,0.1);
}

.cnb-topbar__language .language-flag-icon {
    display: inline-block;
    width: 20px;
    height: 15px;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    object-fit: cover;
    flex-shrink: 0;
}

.cnb-topbar__language .language-text {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.cnb-topbar__language .language-chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.cnb-topbar__language.show .language-chevron {
    transform: rotate(180deg);
}

.cnb-topbar__language .dropdown-menu {
    min-width: 180px;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 5px;
    z-index: 10001;
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #e0e0e0;
}

.cnb-topbar__language.show .dropdown-menu {
    display: block !important;
}

.cnb-topbar__language .language-option {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    gap: 10px;
    position: relative;
}

.cnb-topbar__language .language-option .language-flag-option {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    object-fit: cover;
    flex-shrink: 0;
}

.cnb-topbar__language .language-option:hover {
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
}

.cnb-topbar__language .language-option.active {
    background-color: #e8f4f8;
    font-weight: 600;
}

.cnb-topbar__language .language-check {
    margin-left: auto;
    color: #007bff;
    font-size: 14px;
}

/* Notification Bell Styles */
.cnb-topbar__notification {
    position: relative;
    display: inline-block !important;
    margin-left: 8px;
    margin-right: 8px;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10000;
}

.cnb-topbar__notification .cnb-topbar__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
    color: white;
}

.cnb-topbar__notification .cnb-topbar__link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.cnb-topbar__notification .fa-bell {
    font-size: 18px;
    color: white;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid #1e3c72;
    line-height: 1;
}

.notification-menu {
    min-width: 320px;
    max-width: 380px;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin-top: 8px;
    border: none;
    overflow: hidden;
    background: white;
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 99999;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.notification-menu.show {
    display: block;
}

.notification-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 16px 20px;
    border-bottom: none;
}

.notification-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.notification-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
}

.notification-body::-webkit-scrollbar {
    width: 6px;
}

.notification-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notification-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.notification-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f8f9fa;
    color: #1e3c72;
    text-decoration: none;
    padding-left: 24px;
}

.notification-item .notification-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-item:hover .notification-icon {
    transform: scale(1.1);
    transition: transform 0.2s;
}

.notification-text {
    font-size: 13px;
    line-height: 1.4;
    flex: 1;
    font-weight: 500;
}

.cnb-topbar {
    position: relative;
    z-index: 9999;
}

.menuTopFix {
    position: relative;
    z-index: 9999;
}

.breadcrumb-nav {
    position: relative;
    z-index: 1;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .cnb-topbar__language {
        margin-left: 4px;
    }
    
    .cnb-topbar__language .cnb-topbar__link {
        padding: 5px 8px;
        gap: 4px;
    }
    
    .cnb-topbar__language .language-flag-icon {
        width: 18px;
        height: 13px;
    }
    
    .cnb-topbar__language .language-text {
        font-size: 12px;
    }
    
    .cnb-topbar__language .language-chevron {
        font-size: 9px;
    }
    
    .cnb-topbar__language .dropdown-menu {
        min-width: 160px;
        right: 0;
        left: auto;
        position: absolute;
        margin-top: 8px;
    }
    
    .cnb-topbar__language .language-option {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .cnb-topbar__language .language-option .language-flag-option {
        width: 18px;
        height: 13px;
    }
    
    .notification-menu {
        min-width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        max-height: calc(100vh - 120px);
    }
    
    .cnb-topbar__notification {
        margin-left: 4px;
        margin-right: 4px;
    }
    
    .notification-menu .notification-header h4 {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .notification-menu .notification-header {
        padding: 12px 16px;
    }
    
    .notification-item {
        padding: 10px 16px;
    }
    
    .notification-item .notification-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .notification-text {
        font-size: 12px;
    }
    
    .notification-badge {
        width: 16px;
        height: 16px;
        font-size: 10px;
        top: 1px;
        right: 1px;
    }
    
    .cnb-topbar__notification .fa-bell {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cnb-topbar__language .cnb-topbar__link {
        padding: 4px 6px;
    }
    
    .cnb-topbar__language .language-text {
        display: none;
    }
    
    .cnb-topbar__language .language-flag-icon {
        width: 20px;
        height: 15px;
        margin-right: 0;
    }
    
    .cnb-topbar__language .dropdown-menu {
        min-width: 150px;
        right: -10px;
    }
    
    .notification-menu {
        min-width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
    }
}

