/* sidebar.css - Premium Glassmorphic details panel - Light Theme */

.sidebar-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: #ffffff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
    border-left: 1px solid rgba(148, 163, 184, 0.2);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    z-index: 1010;
    overflow-y: auto;
    padding: 30px;
    visibility: hidden;
    color: #0f172a;
    box-sizing: border-box;
}

.sidebar-container.open {
    transform: translateX(0);
    visibility: visible;
}

.sidebar-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.sidebar-close-btn:hover {
    color: #0f172a;
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.sidebar-content {
    margin-top: 30px;
}

.sidebar-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.95rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a 40%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.sidebar-content .metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.sidebar-content .metric .label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #64748b;
}

.sidebar-content .metric .value {
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.45); /* Semi-transparent dark gray */
    opacity: 0;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    z-index: 1000;
    visibility: hidden;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 450px) {
    .sidebar-container {
        width: 100%;
        max-width: 100%;
        border-left: none;
        padding: 16px;
    }
}
