/* 메인 사이드 탭 */
.side-tab {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 60px;
    background: #111827;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.side-tab-item {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.side-tab-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: scale(1.05);
}

.side-tab-item.active {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.side-tab-item i {
    font-size: 1.2rem;
}

.side-tab-tooltip {
    position: absolute;
    left: 55px;
    background: #374151;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1060;
}

.side-tab-item:hover .side-tab-tooltip {
    opacity: 1;
}

/* 보조 사이드 탭 */
.secondary-side-tab {
    position: fixed;
    left: 60px;
    top: 0;
    height: 100vh;
    width: 150px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1045;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.secondary-side-tab.show {
    transform: translateX(0);
}

.secondary-tab-header {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.secondary-tab-item {
    width: 100%;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.secondary-tab-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.secondary-tab-item.active {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* 사이드바 */
.sidebar {
    position: fixed;
    left: 60px;
    top: 0;
    height: 100vh;
    width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1040;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    background: #111827;
    color: white;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 15;
}

.logo {
    width: 32px;
    height: 32px;
}

.nav-tabs-custom {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    margin-top: 1rem;
}

.nav-tabs-custom .nav-link {
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.nav-tabs-custom .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 사이드바 스크롤 및 오버플로우 */
.sidebar,
.sidebar .p-4,
.sidebar .card,
.sidebar .card-body,
.tab-content,
.tab-pane {
    overflow-x: visible !important;
}

.gu-list {
    max-height: 512px;
    overflow-y: auto;
    overflow-x: visible;
    padding-right: 10px;
}

@media (max-width: 992px) {
    .sidebar {
        width: 80%;
    }
}
