/* Global shell styles for modern EmailPilot UI */
:root {
  color-scheme: dark;
  --shell-bg: #030712;
  --shell-panel: rgba(15, 23, 42, 0.7);
  --shell-border: rgba(148, 163, 184, 0.2);
  --shell-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
}

body.shell-body {
  background: var(--shell-bg);
  color: #f8fafc;
}

.glass-panel {
  background: var(--shell-panel);
  border: 1px solid var(--shell-border);
  backdrop-filter: blur(18px);
  box-shadow: 0 25px 45px rgba(2, 6, 23, 0.45);
}

.shell-card {
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.65));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.shell-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.5);
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
}

.pulse-dot {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.shell-sidebar::-webkit-scrollbar,
.shell-main::-webkit-scrollbar {
  width: 6px;
}

.shell-sidebar::-webkit-scrollbar-thumb,
.shell-main::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 999px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.12);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.toast-stack {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 60;
}

.toast {
  min-width: 260px;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(18px);
  box-shadow: 0 15px 35px rgba(3, 7, 18, 0.45);
  animation: toast-in 0.25s ease forwards;
}

@keyframes toast-in {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
