/* SMTP-specific styles */

.smtp-tab-button.active {
  background-color: #2563eb;
  color: white;
  border-bottom: 2px solid #2563eb;
  border-radius: 6px 6px 0 0;
}

.smtp-format-btn.active {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #3b82f6;
}

.smtp-format-btn {
  transition: all 0.2s ease;
}

.smtp-format-btn:hover {
  background-color: #e2e8f0;
}

/* SMTP stats cards */
.smtp-stats-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.smtp-stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* SMTP account list styling */
.smtp-account-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  transition: all 0.2s ease;
}

.smtp-account-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.smtp-account-status.active {
  background-color: #dcfce7;
  color: #166534;
}

.smtp-account-status.inactive {
  background-color: #fef2f2;
  color: #dc2626;
}

/* Email logs table */
.smtp-logs-table {
  font-size: 0.875rem;
}

.smtp-logs-table th {
  background-color: #f8fafc;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.smtp-logs-table tr:hover {
  background-color: #f8fafc;
}

/* Direction badges */
.direction-badge.outbound {
  background-color: #dbeafe;
  color: #1e40af;
}

.direction-badge.inbound {
  background-color: #dcfce7;
  color: #166534;
}

/* API key display */
.api-key-field {
  font-family: 'Courier New', monospace;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

/* Gmail setup steps */
.gmail-setup-step {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.gmail-setup-step h4 {
  color: #1e40af;
  margin-bottom: 0.5rem;
}

/* Code examples */
.smtp-code-example {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* SMTP form styling */
.smtp-form-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.smtp-form-section h3 {
  color: #1e293b;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Send email form specific */
.smtp-send-form {
  max-width: 42rem;
  margin: 0 auto;
}

.smtp-send-form .form-group {
  margin-bottom: 1.5rem;
}

.smtp-send-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.smtp-send-form .form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.smtp-send-form .form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.smtp-send-form textarea {
  resize: vertical;
  min-height: 200px;
}

/* Button group for send form */
.smtp-button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.smtp-button-group button {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* Configuration cards */
.smtp-config-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .smtp-config-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.smtp-config-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.smtp-config-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Server settings display */
.smtp-server-settings {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1rem;
}

.smtp-server-settings .setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.smtp-server-settings .setting-row:last-child {
  border-bottom: none;
}

.smtp-server-settings .setting-label {
  font-weight: 500;
  color: #374151;
}

.smtp-server-settings .setting-value {
  font-family: 'Courier New', monospace;
  color: #6b7280;
  background: #ffffff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #d1d5db;
}