/*
 * Helix Technologies - Navbar Fixes for horizontal_dark
 * Place: resources/css/helix-navbar-fixes.css
 *
 * Brand colors:
 *   Slate:        #1e293b (navbar bg)
 *   Morado Neon:  #8159FF (active/accent)
 *   Verde Helix:  #00E5BC (decorative accent)
 */

/* -- Dropdown menu (dark, matching slate navbar) -- */

.navbar .dropdown-menu {
    background: #1e2a3a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    padding: 0.375rem;
    animation: helixNavDrop 0.15s ease-out;
}

.navbar .dropdown-menu .dropdown-item {
    color: #8fa3bf;
    border-radius: 5px;
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
    transition: background 0.12s ease, color 0.12s ease;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item:active {
    background: rgba(129, 89, 255, 0.15);
    color: #b89cff;
}

/* -- Icons inside dropdown items -- */

.navbar .dropdown-menu .dropdown-item .nav-icon,
.navbar .dropdown-menu .dropdown-item i,
.navbar .dropdown-menu .dropdown-item svg {
    color: #6b7fa3;
    opacity: 0.8;
    transition: color 0.12s ease;
}

.navbar .dropdown-menu .dropdown-item:hover .nav-icon,
.navbar .dropdown-menu .dropdown-item:hover i,
.navbar .dropdown-menu .dropdown-item:hover svg {
    color: #fff;
    opacity: 1;
}

/* -- Dividers -- */

.navbar .dropdown-menu .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 0.25rem 0;
}

/* -- Dropdown headers -- */

.navbar .dropdown-menu .dropdown-header {
    color: #6b7fa3;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.75rem 0.25rem;
}

/* -- User dropdown (top-right) -- */

.navbar .dropdown-menu-end {
    background: #1e2a3a;
}

/* -- Active nav item accent -- */

.navbar .nav-link.active {
    color: #fff !important;
}

/* -- User avatar (circular, initials fallback) -- */

.helix-navbar__user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #8159FF;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

.helix-navbar__user-info {
    display: flex;
    flex-direction: column;
    padding-left: 0.5rem;
}

.helix-navbar__user-name {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.2;
}

.helix-navbar__user-role {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.2;
}

/* -- User dropdown header -- */

.helix-navbar__user-dropdown {
    min-width: 200px;
}

.helix-navbar__dd-header {
    padding: 0.625rem 0.75rem;
}

.helix-navbar__dd-header-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.3;
}

.helix-navbar__dd-header-email {
    font-size: 0.6875rem;
    color: #6b7fa3;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* -- Logout (destructive) -- */

.navbar .dropdown-menu .dropdown-item.helix-navbar__dd-logout {
    color: #f472b6;
}

.navbar .dropdown-menu .dropdown-item.helix-navbar__dd-logout:hover {
    background: rgba(244, 114, 182, 0.1);
    color: #fb7185;
}

.navbar .dropdown-menu .dropdown-item.helix-navbar__dd-logout i {
    color: #f472b6;
}

.navbar .dropdown-menu .dropdown-item.helix-navbar__dd-logout:hover i {
    color: #fb7185;
}

/* -- Mobile: hide user text info -- */

@media (max-width: 991.98px) {
    .helix-navbar__user-info {
        display: none !important;
    }
}

/* -- Animation -- */

@keyframes helixNavDrop {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
