@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary-blue: #3b82f6;
  --primary-dark: #080d1a;
  --card-bg: #101726;
  --card-border: rgba(30, 58, 138, 0.4);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at 50% 15%, #0c1833 0%, #080d1a 60%, #050811 100%);
}

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

/* Ambient Floating Diamond Background Shapes matching user screenshot */
.ambient-diamond {
  position: absolute;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(14, 165, 233, 0.04) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  transform: rotate(45deg);
  pointer-events: none;
  filter: blur(1px);
  animation: floatAmbient 12s ease-in-out infinite alternate;
}

.ambient-diamond:nth-child(2) {
  animation-duration: 15s;
  animation-delay: -3s;
}

.ambient-diamond:nth-child(3) {
  animation-duration: 18s;
  animation-delay: -6s;
}

.ambient-diamond:nth-child(4) {
  animation-duration: 14s;
  animation-delay: -9s;
}

@keyframes floatAmbient {
  0% {
    transform: rotate(45deg) translate(0px, 0px) scale(1);
  }
  50% {
    transform: rotate(48deg) translate(8px, -12px) scale(1.03);
  }
  100% {
    transform: rotate(42deg) translate(-8px, 10px) scale(0.97);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0f1c;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b82f6;
}

/* Pulse animation for Live Polling */
@keyframes softPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

/* Animation for QR modal */
@keyframes scaleUp {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-up {
  animation: scaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Message Item Hover */
.message-item {
  transition: all 0.2s ease;
}
.message-item:hover {
  background-color: rgba(30, 58, 138, 0.2);
}

/* Glass Card glow */
.glass-card {
  background: rgba(16, 23, 38, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(59, 130, 246, 0.1);
}
