/* ==========================================================================
   OmniTranslate Wear OS - Premium Dark Design System & Watch Simulator Styles
   ========================================================================== */

:root {
  /* Color Palette - OLED Dark Theme default */
  --bg-dark: #080a0f;
  --bg-panel: #11141d;
  --bg-watch-body: #161a24;
  --bg-watch-screen: #000000;
  
  --primary: #00f2fe;
  --primary-glow: rgba(0, 242, 254, 0.4);
  --primary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  
  --secondary: #7F00FF;
  --secondary-glow: rgba(127, 0, 255, 0.35);
  --secondary-gradient: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%);

  --accent-green: #00e676;
  --accent-amber: #ffab00;
  --accent-red: #ff3d00;
  
  --text-main: #f0f4f8;
  --text-muted: #8a99ad;
  --text-dim: #516075;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 242, 254, 0.3);
  
  --radius-watch: 50%;
  --radius-card: 16px;
  --radius-btn: 24px;
  
  --watch-size: 390px;
  --font-main: 'Outfit', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Theme Skins */
body.theme-amber {
  --primary: #ffab00;
  --primary-glow: rgba(255, 171, 0, 0.4);
  --primary-gradient: linear-gradient(135deg, #ff9100 0%, #ffc400 100%);
  --secondary: #ff3d00;
}

body.theme-emerald {
  --primary: #00e676;
  --primary-glow: rgba(0, 230, 118, 0.4);
  --primary-gradient: linear-gradient(135deg, #00b0ff 0%, #00e676 100%);
  --secondary: #00bfa5;
}

body.theme-amethyst {
  --primary: #d500f9;
  --primary-glow: rgba(213, 0, 249, 0.4);
  --primary-gradient: linear-gradient(135deg, #651fff 0%, #d500f9 100%);
  --secondary: #651fff;
}

body.theme-stealth {
  --primary: #eceff1;
  --primary-glow: rgba(236, 239, 241, 0.25);
  --primary-gradient: linear-gradient(135deg, #78909c 0%, #cfd8dc 100%);
  --secondary: #455a64;
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* App Outer Shell */
.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Toolbar */
.dev-toolbar {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  z-index: 100;
}

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

.logo-icon {
  font-size: 32px;
  color: var(--primary);
  background: rgba(0, 242, 254, 0.1);
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border-active);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  font-size: 0.65rem;
  padding: 3px 8px;
  background: var(--primary-gradient);
  color: #000;
  font-weight: 800;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.control-group select {
  background: #1c2230;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.control-group select:focus {
  border-color: var(--primary);
}

.btn-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-tool:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* Workspace Layout */
.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  padding: 32px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
}

@media (max-width: 1024px) {
  .workspace {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .desktop-testing-panel {
    width: 100%;
    max-width: 500px;
  }
}

/* ==========================================================================
   SMARTWATCH SIMULATOR & HARDWARE STYLES
   ========================================================================== */

.watch-device-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: auto;
  padding: 40px 0;
  transition: transform 0.3s var(--transition-smooth);
}

/* Watch Straps */
.watch-strap {
  width: 160px;
  height: 60px;
  background: linear-gradient(90deg, #151821 0%, #2a3142 50%, #151821 100%);
  border-radius: 12px;
  position: absolute;
  z-index: 1;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.top-strap {
  top: -10px;
  border-bottom: 2px solid rgba(255,255,255,0.05);
}

.bottom-strap {
  bottom: -10px;
  border-top: 2px solid rgba(255,255,255,0.05);
}

/* Watch Chassis Body */
.watch-chassis {
  position: relative;
  width: var(--watch-size);
  height: var(--watch-size);
  background: radial-gradient(circle at 30% 30%, #303748 0%, #161a25 70%, #0b0e14 100%);
  border-radius: var(--radius-watch);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(0, 242, 254, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -3px 8px rgba(0, 0, 0, 0.8);
  padding: 18px;
  z-index: 2;
  transition: all 0.4s var(--transition-smooth);
}

/* Watch Hardware Crowns */
.hardware-crown {
  position: absolute;
  right: -14px;
  background: linear-gradient(180deg, #424b5d 0%, #1c222e 100%);
  border-radius: 4px;
  box-shadow: 2px 0 6px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: transform 0.1s;
}

.hardware-crown:active {
  transform: scaleX(0.85);
}

.main-crown {
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 48px;
  border-radius: 0 6px 6px 0;
  border-left: 2px solid #5a667d;
}

.top-crown {
  top: 24%;
  width: 10px;
  height: 28px;
  border-radius: 0 4px 4px 0;
}

/* Rotating Bezel Ring */
.watch-bezel {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: var(--radius-watch);
  border: 2px dashed rgba(255, 255, 255, 0.12);
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.watch-bezel.rotate-cw {
  transform: rotate(30deg);
}

.watch-bezel.rotate-ccw {
  transform: rotate(-30deg);
}

/* Smartwatch Screen (Inner OLED Display) */
.watch-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-watch-screen);
  border-radius: var(--radius-watch);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* WATCH FORM VARIATIONS */

/* 1. Galaxy Watch (Circular Default) */
.watch-device-container.circular-galaxy {
  --radius-watch: 50%;
}

/* 2. Pixel Watch (Dome Glass) */
.watch-device-container.circular-pixel .watch-chassis {
  box-shadow: 
    0 30px 60px rgba(0,0,0,0.9),
    inset 0 0 25px rgba(255, 255, 255, 0.4);
  background: radial-gradient(circle at 50% 10%, #4a5468 0%, #151821 80%);
}

/* 3. Watch Ultra (Square Form) */
.watch-device-container.square-ultra {
  --radius-watch: 44px;
}
.watch-device-container.square-ultra .watch-strap {
  width: 220px;
}
.watch-device-container.square-ultra .hardware-crown {
  right: -12px;
}

/* 4. Fullscreen Mode */
.watch-device-container.fullscreen {
  width: 100%;
  max-width: 480px;
}
.watch-device-container.fullscreen .watch-chassis {
  width: 100%;
  height: 600px;
  border-radius: 32px;
}
.watch-device-container.fullscreen .watch-screen {
  border-radius: 24px;
}
.watch-device-container.fullscreen .watch-strap,
.watch-device-container.fullscreen .watch-bezel {
  display: none;
}

/* ==========================================================================
   WATCH SCREEN INNER VIEWS & COMPONENTS
   ========================================================================== */

/* Top Status Bar */
.watch-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px 4px 24px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  z-index: 10;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-icons .material-symbols-rounded {
  font-size: 14px;
}

.status-mic-indicator {
  color: var(--text-dim);
  transition: color 0.3s;
}

.status-mic-indicator.active {
  color: var(--accent-red);
  animation: pulse-dot 1s infinite alternate;
}

@keyframes pulse-dot {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Watch View Navigation Pages */
.watch-view {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition: all 0.3s var(--transition-smooth);
}

.watch-view.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* WATCH VIEW 1: MAIN TRANSLATOR UI */

/* Language Selector Card */
.lang-selector-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  padding: 4px 8px;
  margin: 4px 12px 10px 12px;
  backdrop-filter: blur(8px);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 16px;
  transition: background 0.2s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-btn .flag {
  font-size: 1rem;
}

.swap-lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s var(--transition-smooth);
}

.swap-lang-btn:hover {
  transform: rotate(180deg);
  background: var(--primary);
  color: #000;
}

.swap-lang-btn .material-symbols-rounded {
  font-size: 16px;
}

/* Central Microphone Zone & Visualizer */
.dictation-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 4px 0 10px 0;
}

.mic-ripple-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0;
  pointer-events: none;
}

.dictation-zone.listening #ripple-ring-1 {
  animation: ripple-expand 1.8s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.dictation-zone.listening #ripple-ring-2 {
  animation: ripple-expand 1.8s infinite cubic-bezier(0.215, 0.61, 0.355, 1) 0.6s;
}

@keyframes ripple-expand {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.0);
    opacity: 0;
  }
}

.big-mic-button {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--primary-gradient);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 25px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--transition-smooth), box-shadow 0.3s;
}

.big-mic-button:active {
  transform: scale(0.92);
}

.dictation-zone.listening .big-mic-button {
  background: linear-gradient(135deg, #ff3d00 0%, #ff9100 100%);
  box-shadow: 0 0 30px rgba(255, 61, 0, 0.6);
}

#waveform-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
}

.mic-icon-wrapper {
  position: relative;
  z-index: 2;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mic-icon-wrapper .material-symbols-rounded {
  font-size: 38px;
}

.mic-state-label {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.dictation-zone.listening .mic-state-label {
  color: var(--accent-amber);
}

/* Translation Display Box (Watch Card) */
.translation-display-card {
  flex: 1;
  background: rgba(18, 22, 33, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 10px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-scroll-area {
  overflow-y: auto;
  max-height: 110px;
  padding-right: 4px;
}

/* Custom Scrollbar for Watch Screen */
.card-scroll-area::-webkit-scrollbar,
.lang-scroll-list::-webkit-scrollbar,
.phrases-list::-webkit-scrollbar,
.history-list::-webkit-scrollbar {
  width: 3px;
}

.card-scroll-area::-webkit-scrollbar-thumb,
.lang-scroll-list::-webkit-scrollbar-thumb,
.phrases-list::-webkit-scrollbar-thumb,
.history-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.speech-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.block-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.block-label.highlight {
  color: var(--primary);
}

.transcript-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.transcript-text.translated {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.divider-line {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0;
}

.translated-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--primary);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.mini-icon-btn:hover {
  background: var(--primary);
  color: #000;
}

.mini-icon-btn.danger {
  color: var(--accent-red);
}
.mini-icon-btn.danger:hover {
  background: var(--accent-red);
  color: #fff;
}

.mini-icon-btn .material-symbols-rounded {
  font-size: 14px;
}

/* Watch Navigation Dock */
.watch-nav-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 8px;
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.nav-item:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.nav-item .material-symbols-rounded {
  font-size: 20px;
}

.nav-label {
  font-size: 0.6rem;
  font-weight: 500;
}

/* ==========================================================================
   OTHER WATCH VIEWS (LANGUAGES, PHRASES, HISTORY, SETTINGS)
   ========================================================================== */

.view-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-back {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-main);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.view-header h2 {
  font-size: 0.95rem;
  font-weight: 700;
  flex: 1;
}

/* Language Drawer Search & List */
.search-box-wear {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 4px 8px;
  gap: 6px;
  margin-bottom: 8px;
}

.search-box-wear .material-symbols-rounded {
  font-size: 16px;
  color: var(--text-muted);
}

.search-box-wear input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.78rem;
  width: 100%;
  outline: none;
}

.lang-scroll-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lang-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.lang-item-row:hover,
.lang-item-row.selected {
  background: rgba(0, 242, 254, 0.15);
  color: var(--primary);
}

.lang-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Quick Phrases View */
.phrase-categories {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.cat-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.cat-chip.active {
  background: var(--primary);
  color: #000;
  font-weight: 700;
}

.phrases-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phrase-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.phrase-card:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.phrase-src {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
}

.phrase-tgt {
  font-size: 0.72rem;
  color: var(--primary);
}

/* History View */
.history-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 8px;
  font-size: 0.75rem;
}

.history-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--text-dim);
  margin-bottom: 2px;
}

/* Settings View */
.settings-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  border-radius: 12px;
  gap: 8px;
}

.setting-info {
  display: flex;
  flex-direction: column;
}

.setting-title {
  font-size: 0.75rem;
  font-weight: 600;
}

.setting-desc {
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* Toggle Switch Component */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #333d4d;
  transition: .3s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(16px);
  background-color: #000;
}

.wear-select {
  background: #1c2230;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-size: 0.68rem;
  padding: 4px;
  border-radius: 6px;
  max-width: 120px;
}

/* Toast Overlay */
.watch-toast {
  position: absolute;
  top: 45px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.watch-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  font-size: 16px;
  color: var(--primary);
}

.toast-msg {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   DESKTOP TEST PANEL
   ========================================================================== */

.desktop-testing-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.panel-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.panel-header .material-symbols-rounded {
  color: var(--primary);
  font-size: 24px;
}

.panel-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.panel-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.manual-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manual-input-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.input-with-button {
  display: flex;
  gap: 8px;
}

.input-with-button input {
  flex: 1;
  background: #181d2a;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
}

.input-with-button input:focus {
  border-color: var(--primary);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #000;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.quick-preset-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.status-summary-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.stat-label {
  color: var(--text-muted);
}

.stat-value {
  font-weight: 600;
}

.highlight-green {
  color: var(--accent-green);
}

.watch-hardware-sim-controls h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sim-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sim-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sim-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}

/* Modal Window */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-active);
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  padding: 24px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  flex: 1;
  margin-left: 8px;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.guide-steps {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.guide-steps strong {
  color: var(--text-main);
}

.modal-footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}
