/* ═══════════════════════════════════════════════════════════════════
   REDitors Universal Workspace Switcher (Main / App / Status)
   ═══════════════════════════════════════════════════════════════════ */

.logo-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.logo-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.logo-link:hover {
    opacity: 0.92 !important;
}

.status-logo-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

.logo-container {
    position: relative !important;
    height: 34px !important;
    width: 130px !important;
    filter: url(#threshold) !important;
    display: grid !important;
    place-items: center !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

.logo-morph-text {
    grid-area: 1/1 !important;
    white-space: nowrap !important;
    user-select: none !important;
    text-align: center !important;
    line-height: 1 !important;
}

.workspace-switcher-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-divider {
    color: rgba(255, 255, 255, 0.22);
    font-size: 1.15rem;
    font-weight: 300;
    user-select: none;
    margin: 0 6px;
    flex-shrink: 0;
}

.workspace-selector-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 5px 12px;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.workspace-selector-pill:hover,
.workspace-selector-pill.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
}

.ws-pill-logo {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.workspace-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.workspace-chevron {
    width: 12px;
    height: 12px;
    color: #94a3b8;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.workspace-selector-pill.active .workspace-chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.workspace-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 260px;
    background: #0d0e13;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 6px;
    z-index: 10000;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.workspace-dropdown-menu.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.workspace-dropdown-header {
    font-size: 0.68rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 10px 4px;
}

.workspace-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #e2e8f0;
    transition: background 0.15s;
    cursor: pointer;
}

.workspace-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.workspace-dropdown-item.current-ws {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ws-logo-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.ws-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ws-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.ws-url {
    font-size: 0.72rem;
    color: #94a3b8;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.ws-badge-current {
    font-size: 0.65rem;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}
