/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.8);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 1);
}

/* Email Item active state & transitions */
.email-item {
  transition: all 0.15s ease-in-out;
}

.email-item:hover {
  background-color: rgba(30, 41, 59, 0.7);
}

.email-item.active {
  background-color: rgba(30, 41, 59, 0.95);
  border-left: 3px solid #3b82f6;
}

/* New Email pulse animation */
@keyframes highlightNew {
  0% {
    background-color: rgba(59, 130, 246, 0.3);
  }
  100% {
    background-color: transparent;
  }
}

.new-email-highlight {
  animation: highlightNew 2s ease-out;
}

/* Email Reader HTML container */
#readerBodyHtml {
  color: #e2e8f0;
  line-height: 1.6;
  font-size: 0.925rem;
}

#readerBodyHtml a {
  color: #60a5fa;
  text-decoration: underline;
}

#readerBodyHtml table {
  max-width: 100% !important;
}

#readerBodyHtml img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px;
}
