#settings h2 {
    margin-bottom: 20px; /* Add margin-bottom to the h2 element */
    color: var(--primary-light);
    font-weight: 1000;
}

.settings-subtitle {
    text-align: center;
    color: var(--primary-dark);
    font-size: 2rem;
    margin: 30px 0 20px;
    font-weight: 1000;
}

.settings-description {
    text-align: center;
    color: var(--text-color);
    font-size: 0.95rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.5;
}



/* Settings Container */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Settings Section */
.settings-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

/* Settings Header */
.settings-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.settings-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(77, 187, 154, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
}

.settings-header h4 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

/* Settings Body */
.settings-body {
    padding: 25px 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.settings-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.settings-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(77, 187, 154, 0.2);
}

.settings-input[readonly] {
    background-color: #f8f9fa;
    cursor: default;
}

.settings-info-message {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #f0f4f8;
    border-radius: 4px;
    color: #4a5568;
    font-size: 13px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.settings-info-message i {
    margin-right: 8px;
    color: #4299e1;
}

.settings-info-message.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Input with Copy Button */
.input-with-copy {
    display: flex;
    position: relative;
}

.input-with-copy input {
    padding-right: 40px; /* Make room for the copy button */
}

.copy-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    transition: color 0.2s;
}

.copy-btn:hover {
    color: var(--primary-color);
}

/* Fee Options */
.fee-options {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.fee-option {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.fee-option:last-child {
    border-bottom: none;
}

.fee-option input[type="radio"] {
    margin-right: 10px;
}

.fee-option label {
    display: inline;
    font-weight: 600;
}

.fee-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.disabled-text {
    color: #a0aec0;
}

.fee-option.highlight-option {
    background-color: rgba(77, 187, 154, 0.05);
    border-left: 3px solid var(--primary-color);
    padding-left: 12px;
}

.option-description {
    margin: 5px 0 0 25px;
    font-size: 13px;
    color: #718096;
}

/* Toggle Switch */
.toggle-options {
    margin-top: 10px;
}

.toggle-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.toggle-option:last-child {
    border-bottom: none;
}

.toggle-option label {
    margin-bottom: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Save Button */
.settings-save-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.settings-save-btn:hover {
    background-color: var(--primary-dark);
}

.settings-save-btn.disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.7;
}

.settings-save-btn.disabled:hover {
    background-color: #cbd5e0;
}

/* Toast Notification */
.settings-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    min-width: 300px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.settings-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
}

.toast-content p {
    margin: 0;
    font-weight: 500;
}

/* Change Password Styles */
.toggle-password-link {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 15px;
    user-select: none;
}

.toggle-password-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(77, 187, 154, 0.1);
    border-radius: 50%;
    margin-right: 10px;
}

.change-password-container {
    background-color: #f8fafc;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.change-password-container.hidden {
    display: none;
}

.password-group {
    margin-bottom: 15px;
    position: relative;
}

.password-input-wrapper {
    position: relative;
}

.toggle-password-visibility {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
}

/* Password Strength Meter */
.password-strength-meter {
    margin-top: 8px;
    height: 5px;
    background-color: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}

.strength-text {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
    text-align: right;
}

/* Password Match Indicators */
.password-match-indicator,
.password-mismatch-indicator {
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.password-match-indicator.hidden,
.password-mismatch-indicator.hidden {
    display: none;
}

.password-match-indicator {
    color: #48BB78;
}

.password-mismatch-indicator {
    color: #E53E3E;
}

.password-match-indicator i,
.password-mismatch-indicator i {
    margin-right: 5px;
}

/* Password Requirements */
.password-requirements {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.password-requirements p {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
}

.password-requirements ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.password-requirements li {
    font-size: 12px;
    color: #718096;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.password-requirements li i {
    font-size: 8px;
    margin-right: 8px;
    transition: color 0.2s;
}

.password-requirements li.valid {
    color: #48BB78;
}

.password-requirements li.valid i {
    color: #48BB78;
}

/* Password Strength Colors */
.strength-weak .strength-bar {
    width: 33%;
    background-color: #F56565;
}

.strength-medium .strength-bar {
    width: 66%;
    background-color: #ED8936;
}

.strength-strong .strength-bar {
    width: 100%;
    background-color: #48BB78;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .settings-header {
        flex-direction: column;
        text-align: center;
    }
    
    .settings-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

.vendor-id-help {
  margin: 6px 0 0 0;
  font-size: 13px;
  color: #718096;
  font-style: italic;
}

/* Webhook Secret Styles */
.webhook-secret-container {
    margin-top: 25px;
}

.webhook-secret-help {
    margin: 6px 0 0 0;
    font-size: 13px;
    color: #718096;
    font-style: italic;
}

.webhook-generate-section {
    margin: 15px 0;
}

.webhook-generate-btn {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: color 0.2s;
}

.webhook-generate-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(77, 187, 154, 0.1);
    border-radius: 50%;
    margin-right: 10px;
}

.webhook-generate-btn:disabled {
    color: #a0aec0;
    cursor: not-allowed;
}

.webhook-generate-btn:disabled i {
    background-color: rgba(160, 174, 192, 0.1);
}

.webhook-secret-display {
    margin-top: 15px;
    background-color: #f7fafc;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    animation: fadeIn 0.3s ease;
}

.webhook-secret-display.hidden {
    display: none;
}

.webhook-secret-warning {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-left: 4px solid #F56565;
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.webhook-secret-warning i {
    color: #F56565;
    margin-right: 8px;
    font-size: 16px;
}

.webhook-secret-warning span {
    color: #744210;
    font-size: 13px;
    font-weight: 500;
}


/* Loading and error message styles */
.settings-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.settings-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(77, 187, 154, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

.settings-container {
    position: relative;
}

.settings-error-message {
    background-color: #FEF2F2;
    border-left: 4px solid #DC2626;
    color: #7F1D1D;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.settings-error-message i {
    margin-right: 10px;
    font-size: 16px;
}

/* Add these styles for the error toast */

.settings-toast.error-toast {
    background-color: #FEF2F2;
    border-left: 4px solid #DC2626;
}

.error-icon {
    color: #DC2626;
}

.error-toast .toast-content p {
    color: #991B1B;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Add at the end of the file */

.support-note {
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
    margin: 40px auto 20px;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
    max-width: 800px;
}

.support-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.support-note a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}