@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Temp-Mail Dark Palette */
  --bg-body: #0e131f;
  --bg-card: #161c2d;
  --bg-card-hover: #1c2438;
  --bg-input: #0b0f19;
  --border: #222b3e;
  --border-light: #2d3748;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
}

body.light {
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #cbd5e1;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
}

* {
  box-sizing: border-box;
  font-family: var(--font-sans);
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* Temp-Mail Style Hero Card */
.tm-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.35);
}

/* Big Email Address Display Input */
.tm-address-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  color: var(--text-main);
  transition: all 0.2s ease;
}
.tm-address-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Action Buttons Grid */
.tm-action-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  transition: all 0.15s ease-in-out;
}
.tm-action-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-1px);
}
.tm-action-btn:active {
  transform: translateY(0);
}

.tm-action-btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.tm-action-btn.primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 15px -2px rgba(59, 130, 246, 0.4);
}

.tm-action-btn.danger {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
}
.tm-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
}

/* Inbox Table Row Styles */
.inbox-row {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.15s ease;
}
.inbox-row:last-child {
  border-bottom: none;
}
.inbox-row:hover {
  background-color: var(--bg-card-hover);
}

/* Radar pulse animation for empty inbox */
.radar-circle {
  border: 1.5px solid rgba(59, 130, 246, 0.35);
  border-radius: 50%;
  position: absolute;
  animation: radar-expand 3s ease-out infinite;
}
.radar-circle:nth-child(2) {
  animation-delay: 1s;
}
.radar-circle:nth-child(3) {
  animation-delay: 2s;
}

@keyframes radar-expand {
  0% { transform: scale(0.3); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Accordion transition */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.faq-item.open .faq-content {
  max-height: 350px;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}
