/*!
 * Bootstrap v3.1.1
 *
 * Copyright 2013 Twitter, Inc
 * Licensed under the Apache License v2.0
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Designed and built with all the love in the world by @mdo and @fat.
 */ /*! normalize.css v3.0.0 | MIT License | git.io/normalize */


/* --- CSS Variables --- */
:root {
    --side-primary-color: #04173f;
    --primary-color: #155dfc;
    --primary-hover: #e8efff;
    --text-dark: #333333;
    --header-bg: #ffffff;
    --hover-bg: #e6f0fa;
    --badge-red: #dc3545;
    --bg-body: #f4f7f9;
    --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}



/* --- 1. Left Section: Logo --- */
.logo-container {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    min-width: 100px;
    z-index: 1002;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-arabic {
    font-size: 0.8rem;
    opacity: 0.6;
    font-weight: 400;
}

/* --- Utility class for hiding elements --- */
.hidden {
    display: none !important;
}

/* --- Search Overlay (Middle) --- */
.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    padding: 8px 20px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-box svg.search-icon-active {
    width: 20px;
    height: 20px;
    stroke: var(--primary-color);
    margin-right: 10px;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 1rem;
    color: #333;
    width: 100%;
    font-family: var(--font-family);
}

.search-box input::placeholder {
    color: #999;
}

.close-search {
    margin-left: 10px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}
.close-search:hover {
    color: var(--badge-red);
}

/* --- 2. Right Section Group --- */
.right-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1002;
    height: 100%;
}

/* --- Navigation --- */
.nav-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    height: 100%;
    transition: background 0.2s;
    cursor: pointer;
}

.nav-item:hover {
    background-color: var(--hover-bg);
}

.chevron-icon {
    width: 12px;
    height: 12px;
    fill: var(--primary-color);
    transition: transform 0.3s ease;
}

/* Rotate chevron when active (clicked) */
.nav-container.active .chevron-icon {
    transform: rotate(180deg);
}

/* Assurance Dropdown */
.dropdown-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 0  0 4px 4px;
    padding: 0;
    overflow: hidden;
    display: none;
    flex-direction: column;
    border: 1px solid #eee;
}

.nav-container.active .dropdown-menu {
    display: flex;
    animation: fadeIn 0.2s ease-in-out;
}

.dropdown-menu li {
    list-style: none;
    margin: 0px;
    border-bottom: none;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-item {
    
    width: 100%;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

/* --- Notification Bell & Icons (Base) --- */
.notification-wrapper {
    position: relative;
    cursor: pointer;
    color: var(--primary-color);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
}

.notification-wrapper:hover {
    transform: scale(1.1);
    color: var(--primary-hover);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    background-color: var(--badge-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    height: 16px;
    min-width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--header-bg);
    z-index: 2;
}

/* --- Notification Dropdown Specifics --- */
.notif-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.notif-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    width: 380px;
    background-color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-radius: 8px;
    display: none;
    z-index: 1001;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.notif-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.notif-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-header h4 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 700;
}

.notif-count {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.notif-list {
    list-style: none;
    max-height: 350px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

/* Scrollbar styling for list */
.notif-list::-webkit-scrollbar {
    width: 6px;
}
.notif-list::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f9f9f9;
    cursor: pointer;
    transition: background 0.2s;
}

.notif-item:hover {
    background-color: var(--hover-bg);
}

.notif-icon-box {
    width: 32px;
    height: 32px;
    background-color: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-icon-box svg {
    width: 16px;
    height: 16px;
}

.notif-content {
    flex: 1;
}

.notif-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 3px;
    line-height: 1.3;
}

.notif-time {
    font-size: 0.75rem;
    color: #888;
}

/* Empty State Style */
.notif-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: #999;
}
.empty-icon-svg {
    width: 48px;
    height: 48px;
    stroke: #ddd;
    margin-bottom: 10px;
}
.notif-empty h5 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}
.notif-empty p {
    font-size: 0.85rem;
    margin: 0;
}


/* --- Link Dropdown (Pages épinglées) --- */
.link-wrapper, .info-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.link-dropdown, .info-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    width: 320px;
    background-color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 1.5rem;
    display: none;
    z-index: 1001;
    border: 1px solid #f0f0f0;
}

.link-dropdown.active, .info-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.dropdown-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-header h4 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    font-weight: 700;
}

.dropdown-header p {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

/* Category Label (e.g., DOCUMENTATION) */
.dropdown-category-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.dropdown-list, .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-list li, .info-list li {
    margin-bottom: 0.25rem;
}

.dropdown-list a, .info-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s;
}

.dropdown-list a:hover, .info-list a:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

.item-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-icon-box {
    width: 36px;
    height: 36px;
    background-color: #f0f7ff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.item-icon-box svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.item-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.arrow-icon svg {
    width: 16px;
    height: 16px;
    stroke: #b0b0b0;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.2s;
}

.dropdown-list a:hover .arrow-icon svg, .info-list a:hover .arrow-icon svg {
    stroke: var(--primary-color);
}

/* --- User Profile Wrapper --- */
.user-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 25px;
    border:2px solid #e8eaee;
    transition: all 0.2s;
    color: var(--text-dark);
}

.user-profile:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    border: 2px solid rgba(0, 86, 179, 0.1);
}

.user-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-email {
    font-size: 0.8rem;
    color: #777;
}

/* User Profile Dropdown */
.user-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 0;
    overflow: hidden;
    display: none;
    flex-direction: column;
    border: 1px solid #eee;
    z-index: 1001;
}

.user-dropdown.active {
    display: flex;
    animation: fadeIn 0.2s ease-in-out;
}

.user-dropdown li {
    list-style: none;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.user-dropdown li:last-child {
    border-bottom: none;
}

.user-dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s, color 0.2s;
}

.user-dropdown-item:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

.logout-text {
    color: var(--badge-red);
    font-weight: 500;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .user-email, .logo-arabic {
        display: none;
    }
    header {
        padding: 0 1rem;
    }
    .right-actions {
        gap: 1rem;
    }
    .nav-item {
        padding: 0 10px;
    }
    .search-box {
        width: 90%;
    }
}

body {
    margin: 0;
    font-size: 12px !important;
}

.sidebar {
    grid-area: sidebar;
    background-color: var(--side-primary-color);
    overflow-y: auto;
    border-radius: 0 px 10px 10px 0px!important;
    color:var(--header-bg)!important;
}
.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
body .ui-tree {
    background: transparent !important;

}
body .ui-tree  > ul, li{
    color: #333  !important;
}
body .ui-tree  > ul, li:focus{
    color: #155dfc!important;
}
body .ui-tree .ui-tree-container .ui-treenode .ui-treenode-content.ui-tree-selectable:not(.ui-state-highlight):hover{
    background: none;
}
.hide {
    display: none !important
}

.show {
    display: block !important
}


.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent
}

.dropdown {
    position: relative
}

.dropdown-toggle:focus {
    outline: 0
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 200px;
    padding: 5px 0;
    margin: 2px 0 0;
    list-style: none;
    font-size: 12px;
    text-align: left;

    border-radius: 3px;

}

.dropdown-menu.pull-right {
    right: 0;
    left: auto
}

.dropdown-menu .divider {
    height: 1px;
    margin: 10px 0;
    overflow: hidden;
    background-color: #e5e5e5
}

.dropdown-menu>li>a {
    display: block;
    padding: 7px 10px;
    clear: both;
    color:#333 ;
    font-weight: 600;
}

.dropdown-menu>li>a:hover, .dropdown-menu>li>a:focus {
    text-decoration: none;
    background-color: #e6f0fa;
    font-weight: 600;
}

.dropdown-menu>.active>a, .dropdown-menu>.active>a:hover, .dropdown-menu>.active>a:focus
{
    color: #fff;
    text-decoration: none;
    outline: 0;
    background-color: #e6f0fa
}

.dropdown-menu>.disabled>a, .dropdown-menu>.disabled>a:hover,
.dropdown-menu>.disabled>a:focus {
    color: #999
}

.dropdown-menu>.disabled>a:hover, .dropdown-menu>.disabled>a:focus {
    text-decoration: none;
    background-color: transparent;
    background-image: none;
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
    cursor: not-allowed
}

.open>.dropdown-menu {
    display: block
}

.open>a {
    outline: 0
}
.dropdown-menu > li > a {
    display: block;
    padding: 10px 10px;
    clear: both;
    color: #333;
    font-weight: 600;
}
