/* -------------------------------------------------------------
   MA Alexa+ Echo Show Smart Display Simulator Stylesheet
   Pure Maternal Rose Pink (#FF3B69), Peach, Orchid, Mint & Deep Plum
   STRICTLY ZERO BLUE/CYAN in UI - Pure Warm Maternal Sanctuary
   ------------------------------------------------------------- */

:root {
  color-scheme: dark;
  
  /* Primary Swasth Maternal Rose Palette */
  --primary: #FF3B69;
  --primary-hover: #E02B56;
  --primary-glow: rgba(255, 59, 105, 0.45);
  --primary-gradient: linear-gradient(135deg, #FF3B69 0%, #FF6F91 100%);
  --primary-soft: rgba(255, 59, 105, 0.16);

  /* Warm Complements */
  --accent-peach: #FFB088;
  --accent-peach-soft: rgba(255, 176, 136, 0.16);
  --accent-orchid: #C084FC;
  --accent-orchid-soft: rgba(192, 132, 252, 0.16);
  --accent-mint: #10B981;
  --accent-mint-soft: rgba(16, 185, 129, 0.16);
  --accent-gold: #F59E0B;

  /* Surfaces & Hardware Bezel */
  --hw-bezel: #1C121F;
  --hw-bezel-border: #381E3E;
  --screen-bg: radial-gradient(circle at 80% 20%, #28122A 0%, #170A1A 50%, #0B040E 100%);
  --screen-surface: rgba(36, 18, 38, 0.7);
  --screen-card-border: rgba(255, 59, 105, 0.22);
  
  --text-main: #FFF1F5;
  --text-muted: #D1A5BA;
  --text-dim: #8A6478;
  --text-rose: #FF8BA7;
  --text-peach: #FFD4C2;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------
   🌙 Night Mode Bedside Clock Theme (Zero-Blue Amber & Velvet)
   ------------------------------------------------------------- */
body.night-mode {
  --screen-bg: radial-gradient(circle at top right, #241115 0%, #13070A 50%, #060204 100%);
  --hw-bezel: #160D10;
  --hw-bezel-border: #2D181D;
  --screen-surface: rgba(30, 15, 18, 0.82);
  --screen-card-border: rgba(255, 176, 136, 0.2);

  --primary: #FFB088;
  --primary-hover: #F59E0B;
  --primary-glow: rgba(255, 176, 136, 0.38);
  --primary-gradient: linear-gradient(135deg, #FFB088 0%, #F59E0B 100%);

  --text-main: #FFFBEB;
  --text-muted: #D97706;
  --text-dim: #92400E;
  --text-rose: #FDE68A;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #08030A;
  background-image: radial-gradient(circle at 50% 0%, #200E24 0%, #0E0510 50%, #040106 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  transition: background 0.4s ease;
}

/* -------------------------------------------------------------
   Header & Status Bar
   ------------------------------------------------------------- */
.app-header {
  width: 100%;
  max-width: 1240px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  margin-bottom: 8px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.echo-device-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 59, 105, 0.12);
  border: 1px solid rgba(255, 59, 105, 0.3);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: #FF8BA7;
}

.brand-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-text h1 span.logo-highlight {
  color: #FF3B69;
  text-shadow: 0 0 16px rgba(255, 59, 105, 0.6);
}

.badge-plus {
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 59, 105, 0.08);
  border: 1px solid rgba(255, 59, 105, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-rose);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 59, 105, 0.14);
  border: 1px solid rgba(255, 59, 105, 0.35);
  color: var(--text-rose);
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.pill-btn:hover {
  background: #FF3B69;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 59, 105, 0.4);
}

.pill-btn.secondary {
  opacity: 0.85;
}

/* -------------------------------------------------------------
   The Echo Show Hardware Display Frame
   ------------------------------------------------------------- */
.simulator-stage {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 40px;
}

.echo-show-hardware {
  width: 100%;
  max-width: 980px;
  background: var(--hw-bezel);
  border: 4px solid var(--hw-bezel-border);
  border-radius: 36px;
  padding: 16px 20px 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 59, 105, 0.15);
  position: relative;
  transition: all 0.3s ease;
}

.hardware-top-bezel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 18px;
  margin-bottom: 8px;
  position: relative;
}

.camera-lens {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #000000;
  border: 1.5px solid #44224A;
  box-shadow: inset 0 0 4px #FF3B69;
}

.sensor-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #251428;
}

.dual-mic-left, .dual-mic-right {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #100613;
}

/* The Touch Screen */
.echo-show-screen {
  width: 100%;
  min-height: 520px;
  background: var(--screen-bg);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Screen Top Status Bar */
.screen-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 600;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-rose);
}

.clock-display {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #FFF;
}

.status-divider {
  opacity: 0.4;
}

.room-tag {
  color: var(--text-muted);
  font-size: 12px;
}

.baby-badge {
  background: rgba(255, 59, 105, 0.2);
  border: 1px solid rgba(255, 59, 105, 0.35);
  color: #FFF;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-icon {
  font-size: 12px;
  opacity: 0.75;
}

.screen-btn-icon {
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
}

.screen-btn-icon:hover {
  background: rgba(255, 59, 105, 0.2);
}

/* Dynamic Screen Viewport */
.screen-viewport {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Ambient Home Glance View */
.ambient-hero {
  margin-bottom: 18px;
}

.ambient-greeting {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.ambient-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* Nursery Widgets Grid */
.nursery-widgets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.nursery-widget {
  background: var(--screen-surface);
  border: 1px solid var(--screen-card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nursery-widget:hover {
  transform: translateY(-2px);
  border-color: #FF3B69;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.widget-main {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 4px;
}

.widget-meta {
  font-size: 11px;
  color: var(--text-rose);
}

/* Things to Try Carousel */
.alexa-things-to-try {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.try-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.try-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.try-pill {
  white-space: nowrap;
  background: rgba(255, 59, 105, 0.12);
  border: 1px solid rgba(255, 59, 105, 0.3);
  color: var(--text-rose);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.try-pill:hover {
  background: #FF3B69;
  color: #FFF;
  box-shadow: 0 4px 12px rgba(255, 59, 105, 0.4);
}

/* -------------------------------------------------------------
   Active Voice & APL Multimodal View
   ------------------------------------------------------------- */
.user-caption-bar {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.caption-label {
  color: var(--text-dim);
  font-weight: 700;
}

.caption-text {
  color: #FFF;
  font-style: italic;
}

.alexa-response-hero {
  background: var(--screen-surface);
  border: 1.5px solid var(--screen-card-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 14px;
}

.response-speaker-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.speaker-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #FF8BA7;
}

.brevity-tag {
  margin-left: auto;
  font-size: 11px;
  background: rgba(255, 59, 105, 0.2);
  color: #FF8BA7;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

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

.voice-wave span {
  width: 3px;
  height: 6px;
  background: #FF3B69;
  border-radius: 2px;
  animation: wave 1.2s infinite ease-in-out;
}

.voice-wave span:nth-child(2) { animation-delay: 0.2s; height: 12px; }
.voice-wave span:nth-child(3) { animation-delay: 0.4s; height: 16px; }
.voice-wave span:nth-child(4) { animation-delay: 0.2s; height: 10px; }
.voice-wave span:nth-child(5) { animation-delay: 0.5s; height: 5px; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1.4); }
}

.response-body-text {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  color: #FFFFFF;
}

/* Safety Care Banner */
.safety-care-banner {
  margin-top: 16px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.care-icon {
  font-size: 24px;
}

.care-details strong {
  font-size: 14px;
  color: #FDE68A;
}

.care-details p {
  font-size: 12px;
  color: #FFF;
  margin: 4px 0 8px;
}

.helpline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.helpline-badge {
  background: #B45309;
  color: #FFF;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

/* -------------------------------------------------------------
   The Signature Alexa Multimodal Light Bar (Bottom Edge)
   ------------------------------------------------------------- */
.alexa-light-bar-container {
  width: 100%;
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 18px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.alexa-light-bar {
  width: 100%;
  height: 4.5px;
  border-radius: 99px;
  background: linear-gradient(90deg, #FF3B69 0%, #FFB088 35%, #C084FC 70%, #FF3B69 100%);
  background-size: 300% 100%;
  box-shadow: 0 0 16px rgba(255, 59, 105, 0.7);
  margin-bottom: 6px;
  animation: lightSweep 4s ease infinite;
}

@keyframes lightSweep {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.alexa-stage-status {
  text-align: center;
  font-size: 12px;
  color: var(--text-rose);
  font-weight: 600;
}

.hardware-speaker-grill {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.grill-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2D1830;
}

/* -------------------------------------------------------------
   Below Screen: Alexa Push-to-Talk & Utterance Console
   ------------------------------------------------------------- */
.alexa-control-console {
  width: 100%;
  max-width: 820px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mic-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.alexa-ptt-button {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid #FF3B69;
  background: radial-gradient(circle, #FF3B69 0%, #A21CAF 100%);
  color: #FFF;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(255, 59, 105, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.alexa-ptt-button:hover {
  transform: scale(1.06);
  box-shadow: 0 0 35px rgba(255, 59, 105, 0.7);
}

.alexa-ptt-button.recording {
  animation: pttPulse 1s infinite alternate;
}

@keyframes pttPulse {
  0% { box-shadow: 0 0 20px #FF3B69; }
  100% { box-shadow: 0 0 45px #FF6F91, 0 0 10px #FFF; }
}

.ptt-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-rose);
  letter-spacing: 0.5px;
}

.utterance-form {
  width: 100%;
}

.input-shell {
  display: flex;
  align-items: center;
  background: rgba(28, 14, 30, 0.85);
  border: 1.5px solid rgba(255, 59, 105, 0.35);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease;
}

.input-shell:focus-within {
  border-color: #FF3B69;
  box-shadow: 0 0 16px rgba(255, 59, 105, 0.4);
}

.prompt-prefix, .prompt-suffix {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #FF3B69;
  font-size: 15px;
}

.input-shell input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFF;
  font-size: 14px;
  padding: 8px 10px;
}

.send-utterance-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-gradient);
  border: none;
  color: #FFF;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.send-utterance-btn:hover {
  box-shadow: 0 4px 14px rgba(255, 59, 105, 0.5);
  transform: translateY(-1px);
}

/* -------------------------------------------------------------
   Collapsible Telemetry Drawer (Alexa Directives & FastMCP)
   ------------------------------------------------------------- */
.telemetry-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  height: 100vh;
  background: #150A18;
  border-left: 2px solid rgba(255, 59, 105, 0.3);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.telemetry-drawer.open {
  right: 0;
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-drawer {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}

.btn-close-drawer:hover {
  color: #FF3B69;
}

.telemetry-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.tab-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.active {
  background: #FF3B69;
  color: #FFF;
  border-color: #FF3B69;
}

.tab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
}

.panel-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.tool-calls-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.tool-call-card {
  background: rgba(0, 0, 0, 0.4);
  border-left: 3.5px solid #FF3B69;
  border-radius: 4px;
  padding: 10px;
}

.tool-name {
  color: #FF3B69;
  font-weight: 700;
}

.tool-status {
  font-size: 10px;
  color: #10B981;
}

.tool-params, .tool-output {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 30px 10px;
  font-size: 12px;
  color: var(--text-dim);
}

/* Timeline & Partner Tasks in Drawer */
.timeline-event {
  border-left: 3px solid #FF3B69;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 6px 6px 0;
  font-size: 12px;
}

.timeline-event.sleep-event {
  border-left-color: #C084FC;
}

.partner-task-list {
  list-style: none;
}

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.task-row.done span {
  text-decoration: line-through;
  opacity: 0.5;
}

.add-task-form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.add-task-form input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFF;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
}

.btn-add {
  background: #FF3B69;
  border: none;
  color: #FFF;
  padding: 0 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
