/**
 * Network AI Header - Role-based UI
 * Minimal, elegant styling for role switcher and CTAs
 */

/* Topbar Center - Role Actions */
.topbar-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.topbar-center > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Button Group for Dropdowns */
.btn-group {
    position: relative;
    display: inline-flex;
}

/* Dropdown Menu - Override base styles */
.topbar-center .btn-group .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    max-height: 400px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 8px;
    z-index: 9999;
    /* Override base.css defaults */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Hide when Angular adds ng-hide class */
.topbar-center .btn-group .dropdown-menu.ng-hide {
    display: none !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

/* Business Logo in Dropdown */
.business-logo-sm {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .topbar-center {
        max-width: none;
    }
    
    .topbar-center .btn span {
        display: none;
    }
    
    .dropdown-menu {
        min-width: 200px;
    }
}
