/* MASTER SKING MAIL - Custom Styles */

/* Flash message auto-dismiss animation */
.flash-msg {
  animation: flash-fade-in 0.3s ease-out;
}
@keyframes flash-fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Message content styling */
.message-content img { max-width: 100%; height: auto; }
.message-content a { color: #2563eb; text-decoration: underline; }
.message-content blockquote {
  border-left: 3px solid #d1d5db;
  padding-left: 1rem;
  margin: 0.5rem 0;
  color: #6b7280;
}
.message-content pre {
  background: #f3f4f6;
  padding: 0.75rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  font-size: 0.875rem;
}

/* Sidebar transitions */
.sidebar-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 0.75rem; border-radius: 0.5rem;
  color: #9ca3af; font-size: 0.875rem; transition: all 0.15s;
}
.sidebar-link:hover { background: rgba(55,65,81,0.5); color: #e5e7eb; }
.sidebar-link.active { background: rgba(37,99,235,0.2); color: #60a5fa; }

/* Loading spinner */
.spinner {
  border: 3px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  width: 1.5rem; height: 1.5rem;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #9ca3af; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #6b7280; }

/* Log entry type colors */
.log-auth-failed { color: #ef4444; }
.log-auth-success { color: #22c55e; }
.log-sent { color: #3b82f6; }
.log-bounced { color: #f59e0b; }
.log-rejected { color: #ef4444; }
.log-error { color: #dc2626; font-weight: 600; }
.log-received { color: #8b5cf6; }

/* Print styles */
@media print {
  nav, aside, header, .no-print { display: none !important; }
  main { padding: 0 !important; }
}
