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

body {
  font-family: 'Inter', sans-serif;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Pulsing effect for running bulk task */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.7); }
}

.pulse-glow {
  animation: pulseGlow 2s infinite;
}

/* ============================================================ */
/* Collapsible Sidebar Styles (Açılır / Kapanır Yan Menü)        */
/* ============================================================ */
#mainSidebar {
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  will-change: margin-left, transform;
}

/* Desktop collapsed: slide fully to the left by its exact width (16rem = 256px) */
#mainSidebar.sidebar-collapsed {
  margin-left: -16rem !important;
}

/* Mobile: slide offscreen as drawer */
@media (max-width: 768px) {
  #mainSidebar {
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    z-index: 50;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
  }
  #mainSidebar.sidebar-collapsed {
    transform: translateX(-100%) !important;
    margin-left: 0 !important;
  }
}
