/* ======================================================
   AURA CHAT IA - DESIGN SYSTEM & CSS STYLESHEET
   Dark Glassmorphism, Neon Accents & Modern Typography
   ====================================================== */

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

:root {
  --bg-dark: #090D16;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-input: #1E293B;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(16, 185, 129, 0.4);
  
  --primary-emerald: #10B981;
  --primary-emerald-glow: rgba(16, 185, 129, 0.35);
  --primary-cyan: #06B6D4;
  --accent-purple: #8B5CF6;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --sidebar-width: 260px;
  --chat-sidebar-width: 340px;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-emerald);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15);
}

/* Gradient Text & Buttons */
.gradient-text {
  background: linear-gradient(135deg, #10B981 0%, #06B6D4 50%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-neon {
  background: linear-gradient(135deg, var(--primary-emerald) 0%, var(--primary-cyan) 100%);
  color: #090D16;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px var(--primary-emerald-glow);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-neon:hover {
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
  color: #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Badges */
.badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Landing Page Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-emerald), var(--primary-cyan));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #090D16;
  box-shadow: 0 0 15px var(--primary-emerald-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.hero-section {
  padding: 160px 5% 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

/* Pricing Grid */
.pricing-section {
  padding: 100px 5%;
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 50px;
}

.pricing-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.popular {
  border-color: var(--primary-emerald);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.pricing-ribbon {
  position: absolute;
  top: -14px;
  right: 24px;
  background: linear-gradient(135deg, var(--primary-emerald), var(--primary-cyan));
  color: #090D16;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin: 16px 0;
}

.price-amount span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin: 24px 0 32px;
}

.pricing-features li {
  margin-bottom: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li.active {
  color: var(--text-main);
}

.pricing-features li i.check {
  color: var(--primary-emerald);
}

.pricing-features li i.cross {
  color: var(--text-dim);
}

/* Floating Live Chat Widget */
.floating-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.widget-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: transform 0.3s ease;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.widget-btn:hover {
  transform: scale(1.1);
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  width: 90%;
  max-width: 480px;
  padding: 36px;
  background: #0F172A;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
}

/* SPA APP LAYOUT */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.app-sidebar {
  width: var(--sidebar-width);
  background: #0B111E;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
}

.nav-item-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: all 0.2s ease;
}

.nav-item-btn:hover, .nav-item-btn.active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary-emerald);
}

.app-main {
  flex: 1;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Chat Module Layout */
.chat-workspace {
  display: flex;
  height: 100%;
  width: 100%;
}

.chat-list-panel {
  width: var(--chat-sidebar-width);
  background: #0F172A;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.chat-filter-tabs {
  display: flex;
  padding: 12px;
  gap: 6px;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  padding: 8px 4px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.tab-btn.active {
  background: var(--bg-input);
  color: var(--primary-emerald);
}

.chat-items-list {
  flex: 1;
  overflow-y: auto;
}

.chat-item {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  gap: 12px;
}

.chat-item:hover, .chat-item.active {
  background: rgba(30, 41, 59, 0.6);
}

.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, var(--primary-emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.chat-item-info {
  flex: 1;
  min-width: 0;
}

.chat-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.chat-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-item-time {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.chat-item-preview {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chat Main Screen */
.chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #090D16;
}

.chat-header {
  height: 70px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-color);
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.03) 0%, transparent 70%);
}

.msg-bubble {
  max-width: 65%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  position: relative;
  line-height: 1.4;
}

.msg-bubble.incoming {
  align-self: flex-start;
  background: #1E293B;
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.msg-bubble.outgoing {
  align-self: flex-end;
  background: linear-gradient(135deg, #059669, #0D9488);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-bubble.bot {
  align-self: flex-start;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.msg-sender-name {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 4px;
  opacity: 0.8;
}

.msg-timestamp {
  font-size: 0.7rem;
  opacity: 0.6;
  text-align: right;
  margin-top: 4px;
}

.chat-input-bar {
  padding: 16px 24px;
  background: #0F172A;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-field {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-full);
  color: #fff;
  outline: none;
  font-size: 0.95rem;
}

.input-field:focus {
  border-color: var(--primary-emerald);
}

/* Audio Player */
.audio-player-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 14px;
  border-radius: 12px;
  margin-top: 6px;
}

.audio-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-emerald);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}

.audio-wave {
  height: 18px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.audio-wave span {
  width: 3px;
  height: 100%;
  background: var(--primary-emerald);
  border-radius: 2px;
  animation: wave 1s infinite alternate;
}

@keyframes wave {
  0% { height: 20%; }
  100% { height: 100%; }
}

/* Forms & Cards */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-emerald);
}

/* Responsiveness */
@media (max-width: 992px) {
  .hero-section { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 0 auto 36px; }
  .chat-list-panel { width: 100%; }
  .chat-window { display: none; }
  .chat-window.active { display: flex; width: 100%; }
}

/* System Note Messages */
.msg-bubble.system-note {
  align-self: center;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #94a3b8;
  font-size: 0.8rem;
  max-width: 85%;
  text-align: center;
  border-radius: 8px;
  padding: 8px 14px;
  margin: 4px 0;
  font-style: italic;
}

.msg-bubble.system-note .msg-sender-name {
  color: #6366f1;
  font-style: normal;
  font-size: 0.75rem;
}

/* WhatsApp-like Bold in messages */
.msg-bubble strong {
  font-weight: 700;
}
