/* SMTP Configuration page */

.smtp-page .smtp-body {
  padding: 16px 16px 32px;
}

.smtp-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.smtp-back {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #25b7a7;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.smtp-back svg { width: 16px; height: 16px; }
.smtp-back:hover { background: #1a9e8f; }

.smtp-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.smtp-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
  padding: 8px 18px 22px;
}

.smtp-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 22px;
}

.smtp-tab {
  border: 0;
  background: transparent;
  padding: 12px 2px 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.smtp-tab:hover { color: #0e7490; }
.smtp-tab.is-active {
  color: #25b7a7;
  border-bottom-color: #25b7a7;
}

.smtp-pane[hidden] { display: none !important; }

.smtp-form {
  max-width: 420px;
  margin: 0 auto 28px;
}

.smtp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.smtp-field label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.smtp-req { color: #ef4444; }

.smtp-field input[type="email"],
.smtp-field input[type="password"],
.smtp-field input[type="text"] {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: #1e293b;
  background: #fff;
}

#smtpEmail,
#smtpPassword {
  background: #e0f2fe;
  border-color: #bae6fd;
}

.smtp-field input:focus {
  outline: none;
  border-color: #25b7a7;
  box-shadow: 0 0 0 2px rgba(37, 183, 167, .2);
  background: #fff;
}

.smtp-pass { position: relative; }
.smtp-pass input { width: 100%; padding-right: 42px; }
.smtp-pass__toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
}
.smtp-pass__toggle svg { width: 16px; height: 16px; }
.smtp-pass__toggle:hover { background: rgba(15, 23, 42, .06); }

.smtp-checks {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 4px 0 18px;
}

.smtp-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}

.smtp-check input {
  width: 15px;
  height: 15px;
  accent-color: #25b7a7;
}

.smtp-actions {
  display: flex;
  justify-content: center;
}

.smtp-save {
  min-width: 110px;
  height: 38px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #25b7a7;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.smtp-save:hover { background: #1a9e8f; }

.smtp-guide {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 18px 18px;
  background: #fff;
}

.smtp-guide h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #25b7a7;
}

.smtp-guide__lead {
  margin: 0 0 14px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.smtp-guide__item + .smtp-guide__item {
  margin-top: 12px;
}

.smtp-guide__item strong {
  display: block;
  font-size: 13px;
  color: #1e293b;
  margin-bottom: 4px;
}

.smtp-guide__item p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.smtp-guide__item span {
  color: #94a3b8;
}

.smtp-table-wrap {
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.smtp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 13px;
}

.smtp-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.smtp-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  color: #1e293b;
  vertical-align: middle;
}

.smtp-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
}

.smtp-badge--yes {
  color: #16a34a;
  border: 1px solid #86efac;
}

.smtp-badge--warn {
  color: #ef4444;
  border: 1px solid #fca5a5;
}

.smtp-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.smtp-icon-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.smtp-icon-btn svg { width: 16px; height: 16px; }
.smtp-icon-btn--edit { color: #25b7a7; }
.smtp-icon-btn--del { color: #ef4444; }
.smtp-icon-btn:hover { background: #f1f5f9; }

.smtp-toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.smtp-toast {
  min-width: 220px;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .25);
  font-size: 13px;
}

.smtp-toast strong {
  display: block;
  margin-bottom: 2px;
}

@media (max-width: 700px) {
  .smtp-form { max-width: none; }
  .smtp-checks { flex-direction: column; align-items: flex-start; gap: 10px; }
}
