/* CSS styles for Wisal Social Web App */
@layer utilities {
  /* Hide scrollbars for chrome, safari and opera */
  .no-scrollbar::-webkit-scrollbar {
    display: none;
  }
  /* Hide scrollbar for IE, Edge and Firefox */
  .no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
}

/* Animations */
@keyframes scaleUp {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Custom scrollbar for desktop view */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f97316;
}

/* Safe areas support for mobile notch / home bar */
.pt-safe {
  padding-top: max(0.75rem, env(safe-area-inset-top));
}

.pb-safe {
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

/* Glassmorphism helpers */
.glass-panel {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Chat bubble styling */
.chat-bubble-mine {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #0f172a;
  border-bottom-left-radius: 4px;
}

.chat-bubble-their {
  background: #1e293b;
  color: #f8fafc;
  border-bottom-right-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Custom Chat Wallpapers */
.chat-bg-default {
  background-color: rgba(2, 6, 23, 0.4);
}

.chat-bg-sunset {
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.2), transparent 60%),
              radial-gradient(circle at bottom left, rgba(217, 119, 6, 0.15), transparent 50%),
              #0d0c1d;
}

.chat-bg-emerald {
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.2), transparent 60%),
              radial-gradient(circle at bottom right, rgba(13, 148, 136, 0.15), transparent 50%),
              #051412;
}

.chat-bg-nebula {
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.22), transparent 70%),
              radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.18), transparent 60%),
              #0a0818;
}

.chat-bg-midnight {
  background: radial-gradient(circle at top, rgba(6, 182, 212, 0.18), transparent 60%),
              #030712;
}

.chat-bg-pattern {
  background-color: #0b132b;
  background-image: radial-gradient(rgba(249, 115, 22, 0.15) 1px, transparent 1px), radial-gradient(rgba(255, 255, 255, 0.06) 1px, #0b132b 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}