/* wsp.ai - Settings Panel Styles - Material Design 3 */

/* ============================================
   SETTINGS PANEL
   ============================================ */

.settings-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #1b1b1b;
}

.settings-header {
    padding: calc(var(--spacing-lg) * 0.8) var(--spacing-md);
    background-color: #1b1b1b;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.settings-header h3 {
    font-size: 20px;
    font-weight: 500;
    color: #90caf9;
    margin: 0 0 4px 0;
}

.settings-subtitle {
    font-size: 12px;
    color: #b0b0b0;
    margin: 0;
}

.settings-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    scroll-behavior: smooth;
}

/* ============================================
   SETTINGS SECTIONS
   ============================================ */

.settings-section {
    background: linear-gradient(135deg, #252525 0%, #1e1e1e 100%);
    border: 1px solid #333;
    border-radius: 10px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: visible;
    animation: slideIn 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) backwards;
}

.settings-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #90caf9, #2196f3);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    clip-path: inset(0 0 0 0 round 10px 0 0 10px);
}

.settings-section:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #252525 100%);
    border-color: rgba(144, 202, 249, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.settings-section:hover::before {
    opacity: 1;
}

.settings-section:nth-child(1) { animation-delay: 0.05s; }
.settings-section:nth-child(2) { animation-delay: 0.1s; }
.settings-section:nth-child(3) { animation-delay: 0.15s; }
.settings-section:nth-child(4) { animation-delay: 0.2s; }
.settings-section:nth-child(5) { animation-delay: 0.25s; }

.section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 15px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    margin: 0 0 var(--spacing-sm) 0;
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.section-title .material-symbols-outlined {
    font-size: 20px;
    color: var(--md-sys-color-primary);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

label {
    font-size: 13px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 12px;
    background-color: var(--md-sys-color-surface-container-highest);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--radius-sm);
    color: var(--md-sys-color-on-surface);
    font-size: 14px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    outline: none;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 2px rgba(168, 199, 250, 0.2);
}

.form-input:read-only {
    background-color: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface-variant);
    cursor: not-allowed;
}

.form-select {
    cursor: pointer;
}

.form-textarea {
    width: 100%;
    padding: 10px 12px;
    background-color: var(--md-sys-color-surface-container-highest);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--radius-sm);
    color: var(--md-sys-color-on-surface);
    font-size: 14px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: all var(--transition-fast);
}

.form-textarea:focus {
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 2px rgba(168, 199, 250, 0.2);
}

/* Input with Unit */
.input-with-unit {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.input-with-unit .form-input {
    flex: 1;
}

.input-unit {
    font-size: 13px;
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 500;
    min-width: 40px;
}

/* ============================================
   RADIO BUTTONS
   ============================================ */

.radio-group {
    display: flex;
    gap: var(--spacing-md);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    padding: 8px 12px;
    background-color: var(--md-sys-color-surface-container-highest);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.radio-label:hover {
    background-color: var(--md-sys-color-surface-container-high);
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    color: var(--md-sys-color-primary);
    font-weight: 500;
}

.radio-label span {
    font-size: 14px;
    color: var(--md-sys-color-on-surface);
}

/* ============================================
   CHECKBOXES
   ============================================ */

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-xs);
    transition: all var(--transition-fast);
}

.checkbox-label:hover {
    background-color: var(--md-sys-color-surface-container-high);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 14px;
    color: var(--md-sys-color-on-surface);
}

/* ============================================
   INFO CARD
   ============================================ */

.info-card {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: rgba(168, 199, 250, 0.1);
    border: 1px solid rgba(168, 199, 250, 0.3);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.4;
}

.info-card .material-symbols-outlined {
    font-size: 18px;
    color: var(--md-sys-color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================
   SETTINGS ACTIONS
   ============================================ */

.settings-actions {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-top: 1px solid var(--md-sys-color-outline-variant);
    background-color: #252525;
}

/* Base action button style - matches knowledge panel footer-action */
.action-btn {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(144, 202, 249, 0.1);
    border: 1px solid rgba(144, 202, 249, 0.2);
    border-radius: 8px;
    color: #90caf9;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.action-btn:hover {
    background: rgba(144, 202, 249, 0.2);
    border-color: rgba(144, 202, 249, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(144, 202, 249, 0.3);
}

.action-btn .material-symbols-outlined {
    font-size: 18px;
}

/* Secondary variant - same as base */
.action-btn.secondary {
    background: rgba(144, 202, 249, 0.1);
    border: 1px solid rgba(144, 202, 249, 0.2);
    color: #90caf9;
}

.action-btn.secondary:hover {
    background: rgba(144, 202, 249, 0.2);
    border-color: rgba(144, 202, 249, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(144, 202, 249, 0.3);
}

/* Primary variant - same style but can be distinguished if needed */
.action-btn.primary {
    background: rgba(144, 202, 249, 0.1);
    border: 1px solid rgba(144, 202, 249, 0.2);
    color: #90caf9;
}

.action-btn.primary:hover {
    background: rgba(144, 202, 249, 0.2);
    border-color: rgba(144, 202, 249, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(144, 202, 249, 0.3);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

.settings-content::-webkit-scrollbar {
    width: 8px;
}

.settings-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.settings-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.settings-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
    }
}
