:root {
  --bg-light: #f5f7fb;
  --text-dark: #0f172a;
  --card-bg: #ffffff;
  --border-light: #e2e8f0;
  --accent: #0d6efd;
  --accent-dark: #0a58ca;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg-light);
  color: var(--text-dark);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-page {
  width: 100%;
  max-width: 560px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.auth-card {
  width: 100%;
  background: var(--card-bg);
  border-radius: 1.25rem;
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
  text-align: center;
}

.auth-logo {
  height: 64px;
  margin-bottom: 1rem;
}

.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.auth-card p {
  color: #475569;
  margin-bottom: 2rem;
}

.form-control {
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  border: none;
  padding: 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.note {
  font-size: 0.85rem;
  color: #475569;
  margin-top: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.subheading {
  color: #475569;
}

.dashboard-shell {
  width: 100%;
  flex: 1;
  padding-bottom: 3rem;
}

.dashboard-header {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  color: var(--text-dark);
}

.stats-card,
.table-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.stats-card .label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.table {
  color: var(--text-dark);
}

.table thead th {
  border-color: var(--border-light);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #64748b;
}

.table tbody td {
  border-color: var(--border-light);
}

.badge-days {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.badge-days.urgent {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #b91c1c;
}

.badge-days.soon {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: #854d0e;
}

.shell-footer {
  width: 100%;
  text-align: center;
  padding: 1.5rem;
  color: #475569;
  font-size: 0.85rem;
  border-top: 1px solid var(--border-light);
}

.template-switch .template-btn {
  min-width: 150px;
  font-weight: 500;
  border-radius: 999px;
}

.template-switch .btn-outline-secondary {
  color: var(--text-dark);
  border-color: rgba(15, 23, 42, 0.2);
}

.template-switch .btn-outline-secondary:hover,
.template-switch .btn-outline-secondary:focus {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.alert {
  border-radius: 0.75rem;
}

.email-history-card {
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: #fdfdfd;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.email-history-card.inbound {
  border-left: 4px solid #c026d3;
}

.email-history-card.outbound {
  border-left: 4px solid var(--accent);
}

.email-history-card pre {
  background: #f1f5f9;
  padding: 0.75rem;
  border-radius: 0.5rem;
}
