/* ==========================================================================
   PharmaCare AI - Premium Design System Stylesheet
   ========================================================================== */

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

:root {
  /* HSL Color System */
  --bg-primary: #090d16;
  --bg-secondary: #111827;
  --bg-surface: rgba(17, 24, 39, 0.75);
  --bg-surface-inset: rgba(10, 15, 26, 0.85);
  
  --primary: #0ea5e9;
  --primary-glow: rgba(14, 165, 233, 0.35);
  --primary-hover: #38bdf8;
  
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.3);
  --accent-hover: #34d399;
  
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-primary: rgba(14, 165, 233, 0.2);
  
  /* Layout Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Settings & Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

body {
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Glassmorphism Styles */
.glassmorphism {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glassmorphism-inset {
  background: var(--bg-surface-inset);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

/* Buttons */
.btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  text-decoration: none;
  font-size: 14px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 25px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-glow);
}
.btn-accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 25px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #1e293b;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: #334155;
  transform: translateY(-2px);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}

/* Header Navigation */
.header {
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  background: rgba(9, 13, 22, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.logo-icon {
  font-size: 28px;
  text-shadow: 0 0 10px var(--primary-glow);
}

.logo-text {
  font-size: 22px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition-smooth);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Cart Button & Badge */
.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-secondary);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px 0;
}

.hero-grid {
  align-items: center;
  gap: 48px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid var(--border-primary);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.5s infinite;
}

.hero-title {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Floating Mockup Card */
.floating-hero-card {
  width: 100%;
  max-width: 440px;
  padding: 24px;
  border: 1px solid var(--border-primary);
  animation: float 6s ease-in-out infinite;
}

.hero-card-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.ai-glow-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.hero-prompt-chip {
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 8px;
  background: var(--bg-surface-inset);
  border: 1px solid var(--border-light);
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.hero-prompt-chip:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

/* Category Filters */
.catalog-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-light);
}

.section-header {
  margin-bottom: 40px;
  text-align: center;
}

.section-title {
  font-size: 32px;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: #fff;
  font-family: inherit;
  transition: var(--transition-smooth);
}
.search-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.15);
}

.search-icon-svg {
  position: absolute;
  left: 14px;
  top: 13px;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.filter-group {
  display: flex;
  gap: 10px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.filter-btn:hover {
  color: #fff;
  border-color: var(--border-primary);
}
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Products Grid */
.products-grid {
  gap: 24px;
  min-height: 400px;
}

.product-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-primary);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.prod-icon {
  font-size: 32px;
  background: var(--bg-surface-inset);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.rx-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.prod-name {
  font-size: 18px;
  margin-bottom: 4px;
  color: #fff;
}

.prod-brand {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.prod-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-details {
  border-top: 1px dashed var(--border-light);
  padding-top: 12px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-line {
  font-size: 11px;
  color: var(--text-muted);
}
.detail-line strong {
  color: var(--text-secondary);
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.prod-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}

/* Sidebar Cart Panel */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: #0d131f;
  border-left: 1px solid var(--border-light);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.drawer-close:hover {
  color: var(--danger);
  transform: rotate(90deg);
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.empty-cart-message {
  text-align: center;
  color: var(--text-muted);
  margin-top: 60px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-surface-inset);
  border: 1px solid var(--border-light);
  position: relative;
}

.cart-item-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #1e293b;
  border: 1px solid var(--border-light);
  color: white;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.qty-btn:hover {
  background: var(--primary);
}

.qty-val {
  font-size: 13px;
  font-weight: 600;
}

.cart-item-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.cart-item-remove:hover {
  color: var(--danger);
}

.drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}
.summary-line.total {
  font-size: 18px;
  font-weight: 700;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  margin-top: 12px;
}

/* Database Dashboard Viewer Section */
.database-section {
  padding: 60px 0;
  background: #090e18;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.db-viewer {
  max-height: 380px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.db-table th {
  background: var(--bg-secondary);
  padding: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.db-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  vertical-align: middle;
}
.db-table tr:hover td {
  color: #fff;
  background: rgba(255, 255, 255, 0.01);
}

.db-table .pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}
.db-table .pill.pill-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
}
.db-table .pill.pill-yellow {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

/* Floating AI Chat Widget styling */
.ai-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

/* Floating Action Button (FAB) */
.chat-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
  position: relative;
}
.chat-fab:hover {
  transform: scale(1.08) rotate(-5deg);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.6);
}

.chat-fab-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0.6;
  animation: fab-pulse 2s infinite;
}

.fab-icon-svg {
  width: 28px;
  height: 28px;
  color: white;
  transition: var(--transition-smooth);
}

.chat-fab.active .fab-icon-svg {
  transform: rotate(90deg) scale(0.8);
}

/* Chat Card Window */
.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 560px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bot-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.bot-status {
  display: flex;
  flex-direction: column;
}
.bot-status h4 {
  font-size: 14px;
  font-weight: 700;
}

.status-online {
  font-size: 10px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-controls {
  display: flex;
  gap: 8px;
}

.control-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}
.control-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.control-btn.active {
  color: var(--primary);
}

/* Chat Messages Area */
.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  word-wrap: break-word;
}

.msg-bubble.bot {
  background: var(--bg-surface-inset);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-top-left-radius: 2px;
  align-self: flex-start;
}

.msg-bubble.user {
  background: var(--primary);
  color: white;
  border-top-right-radius: 2px;
  align-self: flex-end;
}

/* Embedded Product Card inside Chat bubbles */
.chat-product-embed {
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.embed-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.embed-icon {
  font-size: 20px;
}
.embed-details h5 {
  font-size: 12px;
  font-weight: 700;
}
.embed-details span {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
}

.btn-embed-add {
  font-size: 10px;
  padding: 6px 10px;
  border-radius: 6px;
}

/* Suggested Action Chips list */
.chat-suggestions {
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}
/* Hide scrollbar for action chips row */
.chat-suggestions::-webkit-scrollbar {
  display: none;
}

.suggest-chip {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 11px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.suggest-chip:hover {
  border-color: var(--primary);
  color: white;
  background: rgba(14, 165, 233, 0.05);
}

/* Chat Input Bar */
.chat-input-bar {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: white;
  padding: 0 16px;
  font-size: 13px;
  font-family: inherit;
  transition: var(--transition-smooth);
}
.chat-input:focus {
  border-color: var(--primary);
  outline: none;
}

/* Voice Dictation (waveform) Indicator styles */
.waveform-container {
  display: none; /* Controlled by JS classes */
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 24px;
  padding: 0 10px;
  flex: 1;
}

.waveform-container.active {
  display: flex;
}

.wave-bar {
  width: 3px;
  height: 10px;
  background: var(--primary);
  border-radius: 3px;
  animation: bounce-wave 0.8s ease-in-out infinite alternate;
}
.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; }
.wave-bar:nth-child(5) { animation-delay: 0.6s; }

/* Bot Typing Animation styling */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-surface-inset);
  border: 1px solid var(--border-light);
  align-self: flex-start;
  margin-top: 4px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-dot 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Checkout Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}

.checkout-modal {
  width: 100%;
  max-width: 500px;
  padding: 32px;
  border: 1px solid var(--border-primary);
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.2);
}

.modal-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.prescription-box {
  border: 2px dashed var(--border-primary);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  margin: 16px 0;
  transition: var(--transition-smooth);
}
.prescription-box:hover {
  background: rgba(14, 165, 233, 0.03);
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes bounce-wave {
  0% { height: 4px; }
  100% { height: 20px; }
}

@keyframes typing-dot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* Footer Section */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Media Queries for Responsiveness */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .chat-window {
    width: calc(100vw - 40px);
    right: -10px;
    height: 480px;
  }
  .controls-row {
    flex-direction: column;
    align-items: stretch;
  }
  .search-wrapper {
    max-width: 100%;
  }
}
