/* ==========================================================================
   MOKA Teleprompter - Modern Design System & Studio Styling
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #090D16;
  --bg-card: #111827;
  --bg-card-hover: #1A2438;
  --bg-elevated: #1E293B;
  --bg-input: #0F172A;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #38BDF8;
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  /* Brand Accents */
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-glow: rgba(37, 99, 235, 0.35);
  
  --accent-cyan: #38BDF8;
  --accent-green: #10B981;
  --accent-red: #EF4444;
  
  /* Prompter Configurable Properties */
  --prompt-font-size: 100px;
  --prompt-line-height: 1.4;
  --prompt-side-margin: 60px;
  --prompt-text-color: #FFFFFF;
  --prompt-bg-color: #000000;
  
  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.25s;
}

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

html, body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  user-select: none;
  touch-action: manipulation;
}

/* iOS Safe Area Support */
body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body.reader-active {
  background-color: #000000 !important;
  overflow: hidden !important;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

/* ==========================================================================
   App Header & Navigation
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #38BDF8, #2563EB);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-logo-badge img {
  width: 24px;
  height: 24px;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, #FFFFFF, #93C5FD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: scale(0.95);
}

.icon-btn.active-controller {
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

/* ==========================================================================
   Views Container
   ========================================================================== */

.view-container {
  display: none;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.view-container.active {
  display: block;
}

/* ==========================================================================
   Search & Filter Bar
   ========================================================================== */

.search-bar-container {
  position: relative;
  margin-bottom: 16px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--duration-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.filter-chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.filter-chips-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 7px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* ==========================================================================
   Script Cards
   ========================================================================== */

.scripts-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 90px;
}

@media (min-width: 680px) {
  .view-container {
    max-width: 1080px;
  }

  .scripts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1100px) {
  .scripts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.script-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 18px;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.script-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.script-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.script-card-badge {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: -0.03em;
}

.script-card-meta {
  flex: 1;
  margin-left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.script-brand-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}

.script-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.script-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.action-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.action-icon-btn.delete-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

.script-card-title {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.script-card-snippet {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.script-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.script-stats {
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.start-read-btn {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ==========================================================================
   Buttons & FAB
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-danger {
  background: #EF4444;
  color: #FFFFFF;
}

.btn-danger:hover {
  background: #DC2626;
}

.fab-btn {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  right: calc(24px + env(safe-area-inset-right));
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38BDF8, #2563EB);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 8px 24px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
  transition: all var(--duration-normal) var(--ease-spring);
}

.fab-btn:hover {
  transform: scale(1.08) rotate(90deg);
}

.fab-btn:active {
  transform: scale(0.92);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: 20px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: #FFFFFF;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto 20px;
}

/* ==========================================================================
   Script Editor
   ========================================================================== */

.editor-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
}

.editor-header-fields {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .editor-header-fields {
    grid-template-columns: 1fr;
  }
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--duration-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.editor-textarea {
  min-height: 340px;
  line-height: 1.6;
  resize: vertical;
}

.editor-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.editor-stats-readout {
  display: flex;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

/* ==========================================================================
   Okuma Ekranı (Teleprompter Reader Screen)
   ========================================================================== */

#readerScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: var(--prompt-bg-color);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

#readerScreen.active {
  display: flex;
}

/* Fullscreen Prompter Scroll Area */
.prompter-scroll-container {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-behavior: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.prompter-scroll-container::-webkit-scrollbar {
  display: none;
}

/* Mirror Mode Transform */
.prompter-scroll-container.is-mirrored {
  transform: scaleX(-1);
}

/* Text Content Area */
.prompter-text-container {
  padding-top: 38vh;  /* Starts below the eye-line guide */
  padding-bottom: 75vh; /* Allows scrolling past the last paragraph */
  padding-left: var(--prompt-side-margin);
  padding-right: var(--prompt-side-margin);
  font-size: var(--prompt-font-size);
  line-height: var(--prompt-line-height);
  color: var(--prompt-text-color);
  font-weight: 700;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.prompter-text-container p {
  margin-bottom: 1.2em;
}

/* Odak Çizgisi (Eye-line Indicator / Cue Guide) */
.cue-guide-overlay {
  position: absolute;
  top: 35%;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45) 15%, rgba(56, 189, 248, 0.7) 50%, rgba(56, 189, 248, 0.45) 85%, transparent);
  pointer-events: none;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.cue-pointer-left, .cue-pointer-right {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.cue-pointer-left {
  border-left: 14px solid #38BDF8;
}

.cue-pointer-right {
  border-right: 14px solid #38BDF8;
}

/* Floating HUD Badge (Speed / Action status) */
.prompter-hud {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  z-index: 150;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(-8px);
}

.prompter-hud.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Countdown Overlay */
.countdown-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11rem;
  font-weight: 900;
  color: #38BDF8;
  text-shadow: 0 0 60px rgba(56, 189, 248, 0.8);
  pointer-events: none;
  z-index: 200;
}

.countdown-overlay.pulse {
  animation: countdownPulse 0.9s ease-out;
}

@keyframes countdownPulse {
  0% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
  30% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  85% { transform: translate(-50%, -50%) scale(0.95); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0; }
}

/* Capsule Floating Toolbar (Inspired by Screenshot 5) */
.reader-floating-toolbar {
  position: absolute;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: rgba(226, 232, 240, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 40px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.reader-floating-toolbar.toolbar-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(40px);
  pointer-events: none;
}

.toolbar-btn {
  background: none;
  border: none;
  color: #0F172A;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.toolbar-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.toolbar-btn:active {
  transform: scale(0.92);
}

.toolbar-play-btn {
  background: #0F172A;
  color: #FFFFFF;
}

.toolbar-play-btn:hover {
  background: #1E293B;
}

.toolbar-play-btn.btn-playing {
  background: #2563EB;
}

.reader-timer-display {
  font-family: "SF Mono", Monaco, Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  min-width: 70px;
  text-align: center;
  letter-spacing: 0.05em;
}

/* Force Orientation Classes */
#readerScreen.force-landscape {
  /* Hint for orientation */
}

/* ==========================================================================
   Modals (Settings, TCQI Remote, Confirm)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  width: 100%;
  max-width: 580px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s var(--ease-spring);
}

.modal-backdrop.visible .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 1.25rem;
  color: #FFFFFF;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Settings Sections */
.settings-section {
  margin-bottom: 24px;
}

.settings-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  background: rgba(56, 189, 248, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.setting-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.setting-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
}

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

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

.slider-val-badge {
  font-family: monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-cyan);
  min-width: 48px;
  text-align: right;
}

/* Custom Range Slider */
input[type=range] {
  -webkit-appearance: none;
  width: 140px;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-elevated);
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #38BDF8;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform var(--duration-fast);
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* iOS Toggle Switch */
.ios-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

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

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  transition: .3s;
  border-radius: 28px;
}

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

input:checked + .slider-round {
  background-color: #2563EB;
}

input:checked + .slider-round:before {
  transform: translateX(21px);
}

/* Radio Group (Yatay / Dikey) */
.segmented-control {
  display: flex;
  background: var(--bg-input);
  border-radius: 10px;
  padding: 3px;
  border: 1px solid var(--border-subtle);
}

.segmented-control label {
  flex: 1;
  text-align: center;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.segmented-control input[type=radio] {
  display: none;
}

.segmented-control input[type=radio]:checked + span {
  color: #FFFFFF;
}

.segmented-control label.selected {
  background: #2563EB;
  color: #FFFFFF;
}

/* ==========================================================================
   TCQI Remote Interactive Tester Modal
   ========================================================================== */

.tcqi-tester-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tcqi-guide-alert {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #BAE6FD;
  line-height: 1.5;
  margin-bottom: 20px;
  width: 100%;
}

.tcqi-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
}

.status-waiting {
  color: #FBBF24;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-connected {
  color: var(--accent-green);
  font-size: 0.85rem;
  font-weight: 700;
}

.tcqi-svg-wrapper {
  margin: 10px 0 20px;
}

/* TCQI Remote SVG Glowing Animation */
.tcqi-interactive-btn {
  cursor: pointer;
  transition: fill 0.2s ease, filter 0.2s ease;
}

.tcqi-interactive-btn:hover {
  fill: #334155 !important;
}

.tcqi-interactive-btn.btn-active-glow {
  fill: #10B981 !important;
  filter: drop-shadow(0 0 14px #10B981);
}

.tcqi-live-key-box {
  width: 100%;
  min-height: 64px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.detected-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  animation: detectedIn 0.2s ease-out;
}

@keyframes detectedIn {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.detected-action {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-green);
}

.detected-code code {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #F8FAFC;
}

/* Utility Helpers */
.hidden {
  display: none !important;
}
