/* 8air Mail Interface Stylesheet */

:root {
  color-scheme: dark;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Custom Sleek Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.4);
}

/* Smooth Fade in animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Email Body Typography & Sanitized Container */
.email-body-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.email-body-content a {
  color: #3b82f6;
  text-decoration: underline;
}

.email-body-content blockquote {
  border-left: 3px solid #475569;
  padding-left: 12px;
  margin-left: 0;
  color: #94a3b8;
}

.email-body-content pre, .email-body-content code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 4px;
}

.email-body-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Active Email Item styling */
.email-item.active {
  background-color: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}

/* Light Mode Overrides */
html:not(.dark) body {
  background-color: #f8fafc;
  color: #0f172a;
}

html:not(.dark) .bg-surface-950 {
  background-color: #ffffff;
}

html:not(.dark) .bg-surface-900 {
  background-color: #f8fafc;
}

html:not(.dark) .bg-surface-850 {
  background-color: #f1f5f9;
}

html:not(.dark) .bg-surface-800 {
  background-color: #e2e8f0;
}

html:not(.dark) .border-surface-800 {
  border-color: #e2e8f0;
}

html:not(.dark) .border-surface-700 {
  border-color: #cbd5e1;
}

html:not(.dark) .text-slate-100,
html:not(.dark) .text-slate-200,
html:not(.dark) .text-white {
  color: #0f172a;
}

html:not(.dark) .text-slate-300,
html:not(.dark) .text-slate-400 {
  color: #475569;
}

html:not(.dark) .text-slate-500 {
  color: #64748b;
}
