/* ChatBeds Modern PMS Design System & Styling */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary: #6C3CE9;
  --primary-light: #8B5CF6;
  --primary-dark: #4C1D95;
  --accent-wa: #25D366;
  --accent-wa-dark: #128C7E;
  --accent-blue: #38BDF8;
  --accent-amber: #F59E0B;
  --accent-rose: #F43F5E;
  --bg-dark: #090B14;
  --bg-dark-card: #111425;
  --bg-dark-card-hover: #171B33;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(108, 60, 233, 0.35);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: #F8FAFC;
  overflow-x: hidden;
  selection-background-color: #6C3CE9;
  selection-color: #ffffff;
}

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

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(9, 11, 20, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(17, 20, 37, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(108, 60, 233, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -10px rgba(108, 60, 233, 0.2);
}

.glass-card-static {
  background: rgba(17, 20, 37, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Gradients */
.gradient-primary {
  background: linear-gradient(135deg, #6C3CE9 0%, #9061F9 50%, #C084FC 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 50%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
  background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-glow {
  background: linear-gradient(135deg, #A78BFA 0%, #C084FC 50%, #F472B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(167, 139, 250, 0.4));
}

/* Subtle Animated Background Orbs */
.orb-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: pulse-slow 8s infinite alternate ease-in-out;
}

@keyframes pulse-slow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
  50% { transform: scale(1.15) translate(30px, -20px); opacity: 0.55; }
  100% { transform: scale(1) translate(0, 0); opacity: 0.35; }
}

/* Grid Patterns */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.bg-radial-vignette {
  background: radial-gradient(circle at 50% 30%, rgba(108, 60, 233, 0.15) 0%, rgba(9, 11, 20, 0) 70%);
}

/* Phone Simulator Styling */
.phone-mockup-frame {
  width: 100%;
  max-width: 390px;
  height: 720px;
  border-radius: 46px;
  background: #1F2430;
  padding: 12px;
  box-shadow: 
    0 0 0 2px rgba(255, 255, 255, 0.12),
    0 25px 50px -12px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(108, 60, 233, 0.35);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.phone-screen {
  background: #0B141A; /* WhatsApp Dark Mode Background */
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 20px 20px;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #000000;
  border-radius: 20px;
  z-index: 40;
}

/* WhatsApp message bubbles */
.wa-bubble-in {
  background: #202C33;
  color: #E9EDEF;
  border-radius: 12px 12px 12px 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.wa-bubble-out {
  background: #005C4B;
  color: #E9EDEF;
  border-radius: 12px 12px 2px 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.wa-card-rich {
  background: #182229;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.wa-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #53BDEB;
  font-weight: 600;
  transition: all 0.2s ease;
}

.wa-btn:hover {
  background: rgba(83, 189, 235, 0.15);
  border-color: #53BDEB;
}

/* Typing indicator */
.typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8696A0;
  margin: 0 2px;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Audio Waveform animation */
.audio-bar {
  display: inline-block;
  width: 3px;
  background: #25D366;
  border-radius: 2px;
  margin: 0 1.5px;
  animation: wave 1.2s ease-in-out infinite alternate;
}

@keyframes wave {
  0% { height: 4px; }
  100% { height: 18px; }
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #090B14;
}
::-webkit-scrollbar-thumb {
  background: #2D3748;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4A5568;
}

/* Interactive Slider Styles */
input[type=range] {
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 3px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #8B5CF6;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.7);
  transition: transform 0.15s ease;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Modal animation */
.modal-enter {
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Glow button effect */
.btn-glow {
  position: relative;
  z-index: 1;
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #6C3CE9, #EC4899, #38BDF8);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.6;
  filter: blur(10px);
  transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
  opacity: 1;
  filter: blur(14px);
}
