/* Tabbed Panel System - Inspired by CodePen example */
.panel-tabs {
    display: flex;
    background: var(--bg-medium);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    justify-content: center;
    gap: 4px;
}

.panel-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
}

.panel-tab:hover {
    background: rgba(0, 255, 65, 0.1);
    color: var(--text-primary);
}

.panel-tab.active {
    background: var(--accent-primary);
    color: #000;
    border-bottom: 2px solid var(--accent-primary);
}

.panel-tab i {
    font-size: 16px;
    margin-bottom: 2px;
}

.tab-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.panel-tab-content {
    display: none;
    padding: 12px;
    height: calc(100vh - var(--header-height) - 160px - 50px);
    overflow-y: auto;
}

.panel-tab-content.active {
    display: block;
}

/* Unified panel styling */
#unified-panel {
    width: var(--right-panel-width);
    background: var(--bg-dark);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform: translateX(0);
    overflow: hidden;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    height: calc(100vh - 50px);
    position: relative;
}

#unified-panel.closed {
    transform: translateX(100%);
    width: 0;
    border-left: none;
}

/* Hide the separate panels when using unified panel */
#side-panel, #layers-panel, #tilemap-panel {
    display: none;
}

/* Dropins container styling */
.dropins-container {
    position: relative;
    z-index: 100;
    width: var(--right-panel-width);
    pointer-events: auto;
}

/* Panel tabs container styling */
.panel-tabs {
    position: relative;
    z-index: 101;
    background: var(--bg-medium);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    justify-content: center;
    gap: 4px;
    pointer-events: auto;
}

/* Ensure tab buttons are clickable */
.panel-tab {
    pointer-events: auto;
    cursor: pointer;
}

/* Ensure content panels are clickable */
.content {
    pointer-events: auto;
}