/* ================= COOL CARBON DARK ================= */
:root {
  --bg-main: #0f1218;
  --bg-panel: #151a23;
  --border: #242b3a;

  --text-main: #e4e7ee;
  --text-muted: #8b93a7;

  --accent: #4f8cff;
  --accent-hover: #3b7cf0;

  --green: #3ddc97;
  --amber: #f6c177;
  --red: #f07178;
}

/* ================= BASE ================= */
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont;
}

/* ================= LAYOUT ================= */
.dashboard-container {
  max-width: 1500px;
}

/* ================= HEADER ================= */
.hero-header {
  padding: 48px 40px;
  border-radius: 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border);
}

.page-title {
  font-size: 2.4rem;
  font-weight: 600;
}
.page-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 520px;
}

/* ================= PANELS ================= */
.panel {
  background-color: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* ================= KPI ================= */
.kpi-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.kpi-value {
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent);
}

/* ================= PROGRESS ================= */
.progress {
  height: 6px;
  background-color: #0b0f14;
}
.progress-bar {
  background-color: var(--accent);
}

/* ================= INPUT ================= */
.input-group input {
  background-color: #0f141d;
  border: 1px solid var(--border);
  color: var(--text-main);
}
.input-group input::placeholder {
  color: var(--text-muted);
}
.input-group input:focus {
  border-color: var(--accent);
  box-shadow: none;
}

/* ================= COPY CARD ================= */

.copy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.copy-count {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.copy-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ================= BUTTON ================= */
.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #0f1218;
  font-weight: 600;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
}

/* ================= MULTI RESULT ================= */
.sender-card {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.sender-card:last-child {
  border-bottom: none;
}

.sender-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.sender-name {
  font-weight: 600;
  font-size: 1rem;
}
.sender-email {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mailbox-row {
  display: grid;
  grid-template-columns: 120px 1.2fr 1.5fr auto 70px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background-color: #0f141d;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.mailbox-row:last-child {
  margin-bottom: 0;
}

.mailbox-sendername {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.mailbox-email {
  font-size: 0.8rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mailbox-subject {
  font-size: 0.8rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
}

.status.inbox {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
}

.timeago {
  font-size: 0.7rem;
  color: #64748b;
  text-align: right;
  white-space: nowrap;
}

/* ================= STATUS ================= */
.status {
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.status.INBOX {
  background-color: rgba(61, 220, 151, 0.15);
  color: var(--green);
}
.status.promo {
  background-color: rgba(246, 193, 119, 0.15);
  color: var(--amber);
}
.status.SPAM {
  background-color: rgba(240, 113, 120, 0.15);
  color: var(--red);
}

/* ================= UPGRADE ================= */
.upgrade-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ================= SPINNER ================= */

.spinner {
  display: flex;
  gap: 6px;
  margin-left: auto;
  justify-content: center;
}

.spinner::before,
.spinner::after,
.spinner span {
  content: "";
  width: 6px;
  height: 6px;
  background: #4f8cff;
  border-radius: 50%;
  animation: bounce 1.2s infinite ease-in-out;
}

.spinner span {
  animation-delay: 0.2s;
}
.spinner::after {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
