.left-panel {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    width: calc(var(--hub-sidebar-width) + var(--sidebar-width));
    min-width: calc(var(--hub-sidebar-width) + var(--sidebar-width));
    font-family: "Quantico", sans-serif;
}

.left-panel.theme-modern {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 245, 255, 0.7));
}

.left-panel.theme-unicorn {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--unicorn-color, #9333ea) 85%, black),
            color-mix(in srgb, var(--unicorn-color, #9333ea) 60%, black));
}

.left-panel-header {
    display: flex;
    align-items: center;
    padding: 8px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.05);
}

.theme-unicorn .left-panel-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.logo-box {
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    align-items: baseline;
    font-family: "Iceland", sans-serif;
    letter-spacing: 1px;
}

.logo-k {
    color: white;
    font-size: 2.2rem;
    font-weight: 400;
}

.logo-yst {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.8rem;
    font-weight: 400;
    margin-left: -2px;
}

.server-selector-wrapper {
    flex: 1;
    position: relative;
}

.server-selector-btn {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.server-selector-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.theme-unicorn .server-selector-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.theme-unicorn .server-selector-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.server-selector-arrow {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.theme-unicorn .server-selector-arrow {
    color: rgba(255, 255, 255, 0.7);
}

.server-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
}

.server-dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: background 0.15s;
}

.server-dropdown-item:hover {
    background: var(--bg-tertiary);
}

.server-dropdown-item.active {
    background: rgba(35, 131, 226, 0.1);
}

.server-dropdown-item.manage {
    flex-direction: row;
    color: var(--accent);
    font-weight: 500;
}

.server-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.server-item-host {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.server-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

.sidebar-tabs {
    display: flex;
    padding: 0 8px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.02);
}

.theme-unicorn .sidebar-tabs {
    background: rgba(0, 0, 0, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.sidebar-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.sidebar-tab:hover:not(.disabled) {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
}

.sidebar-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.sidebar-tab.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.theme-unicorn .sidebar-tab {
    color: rgba(255, 255, 255, 0.6);
}

.theme-unicorn .sidebar-tab:hover:not(.disabled) {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.theme-unicorn .sidebar-tab.active {
    color: white;
    border-bottom-color: white;
}

.left-panel-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.lib-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid var(--border);
}

.theme-unicorn .lib-sidebar {
    border-left-color: rgba(255, 255, 255, 0.1);
}
