.smtpConfig-page .smtp-status-bar {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  margin-bottom: 24px;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
  background-color: #ffffff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.03);
}

.smtpConfig-page .smtp-status-icon {
  font-size: 12px;
  margin-right: 12px;
}

.smtpConfig-page .smtp-status-icon.status-default {
  color: #10b981;
}

.smtpConfig-page .smtp-status-icon.status-custom {
  color: var(--primary-color)
}

.smtpConfig-page .smtp-status-bar span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #343a40;
}

.smtpConfig-page .form-section {
  background-color: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.03);
}

.smtpConfig-page .form-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #343a40;
  padding-bottom: 10px;
  border-bottom: 1px solid #e1e5e9;
}

.smtpConfig-page .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.smtpConfig-page .form-group .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.smtpConfig-page .form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  background-color: #ffffff;
  font-size: 0.9rem;
  color: #343a40;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.smtpConfig-page .form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  
}

.smtpConfig-page .form-input::placeholder {
  color: #adb5bd;
}

.smtpConfig-page .form-checkbox {
  margin-right: 8px;
 --primary-color: var(--primary-color);
 --primary-color-contrast: #ffffff;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.smtpConfig-page .form-group .form-label:has(.form-checkbox) {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

/* --- Botões --- */
.smtpConfig-page .btn-container {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f3f5;
  display: flex;
  gap: 12px;
}

.smtpConfig-page .btn-smtp-save-configs {
    background-color: var(--primary-color);
    color: var(--btn-secundary-text-color);
    border: var(--border-type);
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.smtpConfig-page .btn-smtp-test-configs {
    background-color: var(--btn-secundary-color);
    color: var(--btn-secundary-text-color);
    border: var(--border-type);
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}


.smtpConfig-page .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.smtpConfig-page .smtp-config-list {
  margin-top: 10px;
}

.smtpConfig-page .smtp-config-item {
  display: flex;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  background: #ffffff;
  transition: box-shadow 0.2s ease-in-out;
}

.smtpConfig-page .smtp-config-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  font-size: 16px;
  background-color: #e0e7ff;
  color: #3730a3;
}

.smtpConfig-page .smtp-config-item-content {
  flex-grow: 1;
}

.smtpConfig-page .smtp-config-item-header {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  gap: 10px;
}

.smtpConfig-page .smtp-config-item-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #343a40;
}

.smtpConfig-page .smtp-config-item-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background-color: var(--primary-color);
  color: #065f46;
}

.smtpConfig-page .smtp-config-item-details {
  font-size: 0.85rem;
  color: #6c757d;
}

.smtpConfig-page .smtp-config-item-details span {
  margin-right: 16px;
}

.smtpConfig-page .smtp-config-item-details i {
  margin-right: 4px;
}

.smtpConfig-page .smtp-config-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.smtpConfig-page .btn-action-edit {
  background: var(--primary-color);
  color: var(--primary-color-contrast);
  border: var(--border-type);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.8rem;
}


.smtpConfig-page .btn-action-danger {
  background: var(--btn-secondary-color);
  color: var(--primary-color-contrast);
  border: var(--border-type);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.8rem;
  color: #495057;
}

html.dark-theme .smtpConfig-page .btn-action-danger{
  color: #ffffff !important;
}

.smtpConfig-page .loading-placeholder,
.smtpConfig-page .no-config-message {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px dashed #dee2e6;
}

.smtpConfig-page .loading-placeholder i {
  font-size: 28px;
  margin-bottom: 15px;
  animation: spin 1s linear infinite;
}

.smtpConfig-page .no-config-message h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 5px;
}

.smtpConfig-page .no-config-message p {
  font-size: 0.95rem;
  margin: 0;
}

.smtpConfig-page .no-config-icon {
  font-size: 48px;
  color: #adb5bd;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

html.dark-theme .smtpConfig-page .smtp-status-bar {
  background-color: #2c2c2c;
  border-color: #555555;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

html.dark-theme .smtpConfig-page .smtp-status-bar span {
  color: #f0f0f0;
}

html.dark-theme .smtpConfig-page .form-section {
  background-color: var(--btn-secondary-color);
  border-color: #555555;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

html.dark-theme .smtpConfig-page .form-section h3 {
  color: #f0f0f0;
  border-bottom-color: #555555;
}


html.dark-theme .smtpConfig-page .form-group .form-label {
  color: var(--btn-secondary-color);
}

html.dark-theme .smtpConfig-page .btn-container {
  border-top-color: #555555;
}

/* --- Inputs (Dark Mode) --- */
html.dark-theme .smtpConfig-page .form-input {
  background-color: #3a3a3a;
  border-color: #555555;
  color: #f0f0f0;
}

html.dark-theme .smtpConfig-page .form-input::placeholder {
  color: #777777;
}

html.dark-theme .smtpConfig-page .smtp-config-item {
  background-color: #2c2c2c;
  border-color: #555555;
}

html.dark-theme .smtpConfig-page .smtp-config-item-name {
  color: #f0f0f0;
}

html.dark-theme .smtpConfig-page .smtp-config-item-badge {
  background-color: rgba(209, 250, 229, 0.2);
  color: var(--primary-color)
}

html.dark-theme .smtpConfig-page .smtp-config-item-details {
  color: #b0b0b0;
}

html.dark-theme .smtpConfig-page .loading-placeholder,
html.dark-theme .smtpConfig-page .no-config-message {
  background-color: #2c2c2c;
  border-color: #555555;
  color: #b0b0b0;
}

html.dark-theme .smtpConfig-page .no-config-message h3 {
  color: #f0f0f0;
}

html.dark-theme .smtpConfig-page .no-config-message p {
  color: #b0b0b0;
}

html.dark-theme .smtpConfig-page .form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  
}

html.dark-theme .confirmation-modal-btn-confirm { 
color: var(--primary-color-contrast)
}

.smtpConfig-page .confirmation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.smtpConfig-page .confirmation-modal-overlay.confirmation-modal-show {
    opacity: 1;
}

.smtpConfig-page .confirmation-modal-overlay.confirmation-modal-fade-out {
    opacity: 0;
}

.smtpConfig-page .confirmation-modal {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    min-width: 400px;
    max-width: 500px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.smtpConfig-page .confirmation-modal-overlay.confirmation-modal-show .confirmation-modal {
    transform: scale(1);
}

.smtpConfig-page .confirmation-modal-header {
    background-color: var(--primary-color);
    color: var(--primary-color-contrast);
    padding: 20px;
    font-size: 1.25rem;
    font-weight: 600;
}

.smtpConfig-page .confirmation-modal-body {
    padding: 30px 20px;
    color: #333333;
    font-size: 1rem;
    line-height: 1.6;
}

.smtpConfig-page .confirmation-modal-footer {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e5e7eb;
}

/* Botões */
.smtpConfig-page .confirmation-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.smtpConfig-page .confirmation-modal-btn i {
    font-size: 0.9rem;
}

.smtpConfig-page .confirmation-modal-btn-cancel {
    background-color: var(--btn-secondary-color);
    color:  var(--btn-secundary-text-color);
}

.smtpConfig-page .confirmation-modal-btn-confirm {
    background-color: var(--primary-color);
    color: var(--primary-color-contrast)
}

@media (max-width: 500px) {
   .smtpConfig-page .confirmation-modal {
        min-width: 90%;
        max-width: 90%;
    }
}

.smtpConfig-page .toggle-label {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  width: 100%;
  padding: 8px 0;
  cursor: pointer;
  user-select: none;
}

.smtpConfig-page .toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.smtpConfig-page .toggle-text {
  font-size: 0.95rem;
  color: #f0f0f0;
  font-weight: 500;
  line-height: 1;
}

.smtpConfig-page .toggle-slider {
  width: 34px;
  height: 18px;
  background-color: #475569;
  border-radius: 20px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 10px;
}

.smtpConfig-page .toggle-slider::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  background: white;
  transition: all 0.3s ease;
}

.smtpConfig-page .toggle-input:checked ~ .toggle-slider {
  background-color: var(--primary-color);
}

.smtpConfig-page .toggle-input:checked ~ .toggle-slider::before {
  transform: translateX(16px);
}