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

* {
  box-sizing: border-box;
}
html, body, #root {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  background-color: #050505;
  color: white;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
}
.rain-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.12;
}
.scanline {
  width: 100%;
  height: 3px;
  background: linear-gradient(to bottom, transparent, rgba(239, 68, 68, 0.08), transparent);
  position: fixed;
  z-index: 5;
  top: 0;
  animation: scan 6s linear infinite;
}
@keyframes scan {
  0%   { top: -10%; }
  100% { top: 110%; }
}
.logo-glow {
  filter: drop-shadow(0 0 25px rgba(239, 68, 68, 0.3));
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #ef4444;
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar {
  width: 3px;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  width: fit-content;
}
.typing-indicator span {
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-8px); opacity: 1; }
}
.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: black;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  animation: pulse 1.5s infinite;
  border: 2px solid #050505;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.2); opacity: 0.8; }
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: statusPulse 2s infinite;
}
.status-dot.connected {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}
.status-dot.disconnected {
  background: #ef4444;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}
input:focus {
  outline: none;
}
@media (max-width: 640px) {
  .rain-canvas { opacity: 0.05; }
  .logo-glow { filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.2)); }
}
html {
  overflow-y: scroll;
}
body, button, input {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.chat-toggle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 24px;
}
@media (max-width: 640px) {
  .chat-toggle-btn {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
}
.footer-link {
  transition: color 0.3s ease;
  cursor: pointer;
}
.footer-link:hover {
  color: #ef4444;
}
