/**
 * Part of LinkMyGoals.com project.
 * GitHub: https://github.com/ChadsCode/LinkMyGoals
 * License: MIT Open-Source
 * Website: https://www.linkmygoals.com/
 *
 * Copyright (c) 2025 Chad Wigington
 * LinkedIn: https://www.linkedin.com/in/chadwigington/
 */

/* Panel Tabs */
.panel-tab {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: var(--linkedin-blue);
    color: var(--pure);
    padding: 20px 10px;
    cursor: pointer;
    z-index: 200;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.left-tab {
    left: 0;
    border-radius: 0 6px 6px 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.right-tab {
    right: 0;
    border-radius: 6px 0 0 6px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

.panel-tab:hover {
    padding-left: 14px;
    padding-right: 14px;
    background: var(--linkedin-blue-dark);
}

.panel-tab.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Sliding Panels */
.panel {
    position: fixed;
    top: var(--header-height);
    bottom: var(--footer-height);
    height: calc(100vh - var(--header-height) - var(--footer-height));
    width: var(--panel-width);
    background: var(--surface);
    z-index: 150;
    transition: transform 0.3s ease;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

.left-panel {
    left: calc(-1 * var(--panel-width));
    border-right: 1px solid var(--border);
}

.right-panel {
    right: calc(-1 * var(--panel-width));
    border-left: 1px solid var(--border);
}

.left-panel.active {
    transform: translateX(var(--panel-width));
}

.right-panel.active {
    transform: translateX(calc(-1 * var(--panel-width)));
}

.panel-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--pearl);
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--charcoal);
}

.panel-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.panel-close:hover {
    background: var(--ash);
    color: var(--charcoal);
}

.panel-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Custom Scrollbar for Panels */
.panel-content::-webkit-scrollbar {
    width: 8px;
}

.panel-content::-webkit-scrollbar-track {
    background: var(--pearl);
}

.panel-content::-webkit-scrollbar-thumb {
    background: var(--silver);
    border-radius: 4px;
}

.panel-content::-webkit-scrollbar-thumb:hover {
    background: var(--steel);
}