/* TalkWide Web - Base Theme with Custom Vector SVG Pattern */
:root {
  --bg-primary: #070b12;
  --bg-secondary: #0d1420;
  --bg-tertiary: #141e2e;
  --bg-card: rgba(18, 27, 40, 0.82);
  --bg-card-hover: rgba(24, 36, 54, 0.92);
  --border-color: rgba(255, 255, 255, 0.10);
  --border-glow: rgba(56, 189, 248, 0.35);

  --accent-primary: #0284c7;
  --accent-primary-hover: #0369a1;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  --accent-glow: rgba(2, 132, 199, 0.35);

  --emerald-btn: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --emerald-btn-hover: linear-gradient(135deg, #34d399 0%, #059669 100%);
  --emerald-glow: rgba(16, 185, 129, 0.35);

  --danger: #ef4444;
  --danger-hover: #dc2626;
  --warning: #f59e0b;

  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #070b12;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Vector SVG Doodle Pattern - Clean & Crisp (Hardware GPU Accelerated) */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  background-color: #0b141a;
}

#doodle-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #0b141a;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(2, 132, 199, 0.14) 0%, transparent 60%),
    url('/assets/doodle_pattern.svg');
  background-repeat: no-repeat, repeat;
  background-size: 100% 500px, 420px 420px;
  transform: translateZ(0);
  will-change: transform;
}

header, main, footer, .modal-backdrop, .btn-scroll-to-top, #toast-container {
  position: relative;
  z-index: 1;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Animations */
@keyframes pulseSpeaking {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.2s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
