/* =========================================================================
   System Settings Stylesheet (Adaptive Light & Dark Theme)
   ========================================================================= */

#systemSettingsContainer {
    padding: 1.25rem 1.5rem 3rem 1.5rem;
    animation: settingsFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 960px;
    margin: 0 auto;
}

@keyframes settingsFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

body:not(.light-theme) .settings-card {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.settings-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #F1F5F9;
}

body:not(.light-theme) .settings-banner {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.settings-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.settings-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

body:not(.light-theme) .settings-title {
    color: #FFFFFF;
}

.settings-subtitle {
    font-size: 0.85rem;
    color: #64748B;
    margin-top: 0.2rem;
}

body:not(.light-theme) .settings-subtitle {
    color: #94A3B8;
}

/* Provider Radio Pills */
.provider-selector-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.provider-radio-card {
    flex: 1 1 180px;
    position: relative;
    cursor: pointer;
}

.provider-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.provider-radio-content {
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

body:not(.light-theme) .provider-radio-content {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.provider-radio-card input[type="radio"]:checked + .provider-radio-content {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.12);
}

.provider-radio-card:hover .provider-radio-content {
    border-color: #CBD5E1;
}

.provider-logo-icon {
    font-size: 1.25rem;
}

.provider-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #0F172A;
}

body:not(.light-theme) .provider-title {
    color: #FFFFFF;
}

.provider-desc {
    font-size: 0.74rem;
    color: #64748B;
}

/* Inputs & Form Controls */
.settings-field-group {
    margin-bottom: 1.35rem;
}

.settings-field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

body:not(.light-theme) .settings-field-label {
    color: #CBD5E1;
}

.settings-input-group {
    position: relative;
}

.settings-input-group input,
.settings-input-group select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #CBD5E1;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    color: #0F172A;
    background: #FFFFFF;
    transition: all 0.2s ease;
}

body:not(.light-theme) .settings-input-group input,
body:not(.light-theme) .settings-input-group select {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.settings-input-group input:focus,
.settings-input-group select:focus {
    border-color: #10B981;
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.btn-toggle-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748B;
    cursor: pointer;
    padding: 0.35rem;
}

.settings-field-hint {
    font-size: 0.74rem;
    color: #64748B;
    margin-top: 0.35rem;
}

body:not(.light-theme) .settings-field-hint {
    color: #94A3B8;
}

/* Action Buttons */
.settings-action-bar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-save-settings {
    background: #10B981;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.35rem;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s ease;
}

.btn-save-settings:hover {
    background: #059669;
}

.btn-verify-settings {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #0284c7;
    border-radius: 10px;
    padding: 0.65rem 1.35rem;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-verify-settings:hover {
    background: rgba(56, 189, 248, 0.22);
    color: #0369a1;
}

/* Verification Result Box */
.verify-status-banner {
    border-radius: 10px;
    padding: 0.85rem 1.15rem;
    margin-top: 1.25rem;
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.verify-status-banner.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065F46;
}

body:not(.light-theme) .verify-status-banner.success {
    color: #6EE7B7;
}

.verify-status-banner.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #991B1B;
}

body:not(.light-theme) .verify-status-banner.error {
    color: #FCA5A5;
}
