/* ==========================================================================
   RIGHT: CONFIG PANEL - Clean Layout
   Minimal design consistent with builder style
   ========================================================================== */

.fps-config-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(1.125rem, 2.25vw, 1.5rem);
    box-shadow: none;
}

/* Warning Banner - Standalone card style */
.fps-warning-banner {
    display: flex;
    align-items: flex-start;
    gap: clamp(0.5rem, 1.25vw, 0.75rem);
    padding: clamp(0.875rem, 1.75vw, 1.125rem) clamp(1rem, 2vw, 1.25rem);
    background: #222222;
    border: 1px solid rgba(var(--warning-rgb), 0.3);
    border-left: 3px solid var(--warning);
    border-radius: 10px;
    font-size: clamp(0.75rem, 1.1vw + 0.1rem, 0.8125rem);
    line-height: 1.6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

html.light .fps-warning-banner {
    background: #fffbf5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.fps-warning-banner svg {
    color: var(--warning);
    flex-shrink: 0;
    margin-top: 1px;
    width: 18px;
    height: 18px;
}

.fps-warning-banner span {
    color: #c0c0c0;
}

html.light .fps-warning-banner span {
    color: #555555;
}

.fps-warning-banner strong {
    color: #ffffff;
}

html.light .fps-warning-banner strong {
    color: #1a1a1a;
}

/* ==========================================================================
   CONFIG SECTIONS - Clean elevated cards
   ========================================================================== */

.config-section {
    background: #222222;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: clamp(1.125rem, 2.25vw, 1.5rem);
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

html.light .config-section {
    background: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.config-section:hover {
    border-color: #404040;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

html.light .config-section:hover {
    border-color: #c0c0c0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.config-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(1rem, 2vw, 1.25rem);
}

.config-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.875rem, 1.5vw + 0.1rem, 1rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

html.light .config-section__title {
    color: #1a1a1a;
}

.config-section__title svg {
    color: #808080;
    width: 18px;
    height: 18px;
}

.config-section__actions {
    display: flex;
    gap: 0.5rem;
}

/* ==========================================================================
   INFO BANNERS - Contextual information
   ========================================================================== */

.info-banner {
    display: flex;
    align-items: flex-start;
    gap: clamp(0.5rem, 1vw, 0.625rem);
    padding: clamp(0.625rem, 1.25vw, 0.875rem);
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    font-size: clamp(0.75rem, 1.1vw + 0.1rem, 0.8125rem);
    line-height: 1.5;
    color: #c0c0c0;
}

html.light .info-banner {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #555555;
}

.info-banner svg {
    color: var(--info);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

.info-banner--warning {
    background: rgba(var(--warning-rgb), 0.06);
    border-color: rgba(var(--warning-rgb), 0.2);
}

html.light .info-banner--warning {
    background: #fffbf5;
}

.info-banner--warning svg {
    color: var(--warning);
}

.info-banner--success {
    background: rgba(var(--success-rgb), 0.06);
    border-color: rgba(var(--success-rgb), 0.2);
}

html.light .info-banner--success {
    background: #f5fff5;
}

.info-banner--success svg {
    color: var(--success);
}

.info-banner--error {
    background: rgba(var(--error-rgb), 0.06);
    border-color: rgba(var(--error-rgb), 0.2);
}

html.light .info-banner--error {
    background: #fff5f5;
}

.info-banner--error svg {
    color: var(--error);
}

/* ==========================================================================
   COLLAPSIBLE SECTIONS
   ========================================================================== */

.collapsible-section {
    background: #222222;
    border: 1px solid #333333;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

html.light .collapsible-section {
    background: #ffffff;
    border-color: #e0e0e0;
}

.collapsible-section:hover {
    border-color: #404040;
}

html.light .collapsible-section:hover {
    border-color: #c0c0c0;
}

.collapsible-section__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(0.875rem, 1.75vw, 1.125rem);
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: clamp(0.8125rem, 1.25vw + 0.1rem, 0.875rem);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

html.light .collapsible-section__trigger {
    color: #1a1a1a;
}

.collapsible-section__trigger:hover {
    background: #2a2a2a;
}

html.light .collapsible-section__trigger:hover {
    background: #f5f5f5;
}

.collapsible-section__trigger svg {
    color: #808080;
    transition: transform 0.2s ease, color 0.2s ease;
    width: 16px;
    height: 16px;
}

.collapsible-section.is-open .collapsible-section__trigger svg {
    transform: rotate(180deg);
    color: var(--accent);
}

.collapsible-section__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-section.is-open .collapsible-section__content {
    max-height: 1000px;
}

.collapsible-section__inner {
    padding: 0 clamp(0.875rem, 1.75vw, 1.125rem) clamp(0.875rem, 1.75vw, 1.125rem);
}

/* ==========================================================================
   ACTION BUTTONS - Primary actions
   ========================================================================== */

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: clamp(1rem, 2vw, 1.25rem);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(0.5rem, 1.25vw, 0.625rem) clamp(0.875rem, 1.75vw, 1.125rem);
    background: #2a2a2a;
    border: 1px solid #333333;
    border-radius: 8px;
    color: #ffffff;
    font-size: clamp(0.75rem, 1.1vw + 0.1rem, 0.8125rem);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

html.light .action-btn {
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: #1a1a1a;
}

.action-btn:hover {
    border-color: #505050;
    background: #333333;
}

html.light .action-btn:hover {
    background: #e8e8e8;
    border-color: #b0b0b0;
}

.action-btn svg {
    width: 14px;
    height: 14px;
}

.action-btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1a1a;
}

.action-btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* ==========================================================================
   QUICK STATS - Summary information
   ========================================================================== */

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: clamp(0.625rem, 1.25vw, 0.875rem);
    margin-top: clamp(1rem, 2vw, 1.25rem);
}

.quick-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: clamp(0.625rem, 1.25vw, 0.875rem);
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    text-align: center;
    transition: border-color 0.2s ease;
}

html.light .quick-stat {
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.quick-stat:hover {
    border-color: #404040;
}

html.light .quick-stat:hover {
    border-color: #c0c0c0;
}

.quick-stat__value {
    font-size: clamp(1.125rem, 2vw + 0.2rem, 1.375rem);
    font-weight: 800;
    color: var(--accent);
}

.quick-stat__label {
    font-size: clamp(0.625rem, 0.9vw, 0.6875rem);
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

html.light .quick-stat__label {
    color: #666666;
}

/* ==========================================================================
   DIVIDERS
   ========================================================================== */

.config-divider {
    height: 1px;
    background: #333333;
    margin: clamp(1rem, 2vw, 1.25rem) 0;
}

html.light .config-divider {
    background: #e0e0e0;
}

.config-divider--subtle {
    background: #2a2a2a;
}

html.light .config-divider--subtle {
    background: #f0f0f0;
}
