/* Analysis Tab Styles */
.chart-card-full {
    height: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.chart-wide-tall {
    flex: 1;
    min-height: 400px;
    position: relative;
    width: 100%;
}

.chart-header-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-group {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.btn-sm {
    background: transparent;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sm:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.btn-sm.active {
    background: var(--bg-card);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

[data-theme="dark"] .btn-sm.active {
    background: var(--bg-hover);
    color: #fff;
}

/* Custom Selection Area */
.custom-select-container {
    padding: 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 200px;
    overflow-y: auto;
}

.custom-select-container.hidden {
    display: none;
}

.custom-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.party-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    padding: 4px;
    border-radius: 4px;
}

.party-toggle:hover {
    background: var(--bg-hover);
}

.party-toggle input {
    accent-color: var(--accent);
}
