/* ===================================================================
   GBVIMS - Global Styles
   This file contains global styles that can be imported when needed
   =================================================================== */

/* Directory Icon Box - Collapsed State */
.directory-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(225, 90, 17, 0.3);
}

.sidebar-toggle-btn:hover {
    background: #c14d0e;
    box-shadow: 0 4px 12px rgba(225, 90, 17, 0.4);
}

.sidebar-toggle-btn svg {
    width: 18px;
    height: 18px;
    color: white;
}

/* Show button when sidebar is collapsed */
body.sidebar-collapsed .sidebar-toggle-btn {
    display: flex;
}

/* Hide the collapse icon in sidebar header when collapsed */
body.sidebar-collapsed .sidebar-header .collapse-icon {
    display: none;
}

body.sidebar-collapsed .sidebar {
    transform: translateX(-232px);
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-242px);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    min-height: 51px;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    text-decoration: none;
}

.nav-item:hover {
    background-color: #f9f9f9;
}

.nav-item.active {
    background-color: #f3f4f5;
    border-left-color: #e15a11;
}

.nav-item.active .nav-text {
    color: #e15a11;
}

.nav-item.active .nav-icon {
    filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1352%) hue-rotate(350deg) brightness(95%) contrast(86%);
}

.nav-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    transition: filter 0.2s;
}

.nav-icon-small {
    width: 15px;
    height: 15px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-icon-medium {
    width: 16.667px;
    height: 16.667px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-icon-reports {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-text {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #7f8c8d;
    white-space: nowrap;
}

.nav-item.active .nav-text {
    color: #e15a11;
}

.nav-divider {
    width: 100%;
    height: 1px;
    background: #eeeeee;
    margin: 0;
}

.sidebar-divider {
    height: 1px;
    background: #eeeeee;
    margin: 0;
}

.nav-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    width: 100%;
    min-height: 51px;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.nav-dropdown.active .nav-icon {
    filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1352%) hue-rotate(350deg) brightness(95%) contrast(86%);
}

.nav-dropdown.active .dropdown-arrow {
    filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1352%) hue-rotate(350deg) brightness(95%) contrast(86%);
}

.dropdown-arrow {
    width: 11px;
    height: 6.792px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.2s;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.nav-dropdown-container {
    width: 100%;
}

.submenu {
    display: none;
    background-color: #f5f5f5;
    width: 100%;
}

.submenu.open {
    display: block;
}

.submenu-item {
    display: block;
    padding: 10px 20px 10px 50px;
    font-size: 14px;
    color: #999999;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.submenu-item:hover {
    color: #e15a11;
}

.submenu-item.active {
    color: #e15a11;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: #e15a11;
    border-radius: 6px;
    flex-shrink: 0;
    transition: margin-left 0.3s ease;
}

.directory-icon-box.collapsed {
    margin-left: 33px;
}

.header-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Submenu Bullet Points */
.submenu-bullet {
    font-size: 18px;
    line-height: 1;
    color: #999999;
    transition: color 0.2s;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.submenu-item:hover .submenu-bullet {
    color: #e15a11;
}

.submenu-item.active .submenu-bullet {
    color: #e15a11;
}
