/* Excuse Generator Scoped Styles */
.exg-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
  line-height: 1.5;
}

.exg-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.exg-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.exg-title-row h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.exg-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.exg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exg-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5563;
}

.exg-select {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.9rem;
  color: inherit;
}

.exg-select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.exg-action-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.exg-btn {
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.exg-btn-primary {
  background: #4f46e5;
  color: #ffffff;
}

.exg-btn-primary:hover {
  background: #4338ca;
}

.exg-btn-secondary {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.exg-btn-secondary:hover {
  background: #e5e7eb;
}

.exg-result-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #4f46e5;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
}

.exg-quote {
  font-size: 1.25rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.6;
  margin-bottom: 16px;
}

.exg-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}

.exg-badge {
  display: inline-block;
  padding: 3px 10px;
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Email Template Section */
.exg-email-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  margin-top: 16px;
}

.exg-email-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exg-email-body {
  font-family: inherit;
  font-size: 0.95rem;
  color: #374151;
  background: #fdfdfd;
  border: 1px solid #f1f5f9;
  border-radius: 6px;
  padding: 16px;
  white-space: pre-wrap;
  line-height: 1.6;
}

