/* 
 * Slate & Terracotta Light Theme for the English Immersive Tracker
 */

:root {
  --bg-primary: #f4f6f9;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --border-color: rgba(44, 62, 80, 0.1);
  
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  
  --accent-cyan: #8e6e66; /* Terracotta Primary Accent */
  --accent-cyan-glow: rgba(142, 110, 102, 0.18);
  --accent-emerald: #2c3e50; /* Slate Blue Header */
  --accent-emerald-glow: rgba(44, 62, 80, 0.12);
  --accent-blue: #3b82f6;
  --accent-orange: #f97316;
  
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-primary);
  background: linear-gradient(135deg, #f4f6f9 0%, #e9eff4 100%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Soft Light Aura Background Effect */
.glow-bg {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at 80% 20%, rgba(142, 110, 102, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(44, 62, 80, 0.04) 0%, transparent 45%);
  z-index: -1;
  pointer-events: none;
}

.text-cyan { color: var(--accent-cyan) !important; }
.text-emerald { color: var(--accent-emerald) !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.w-100 { width: 100% !important; }

/* Header Navigation styling - Matching top menu bar in screenshot */
.app-header {
  background: var(--accent-emerald);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo i {
  font-size: 26px;
  color: #ffffff !important;
}

.logo h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.logo h1 span {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 8px;
}

.back-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-btn:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

/* App Container Layout */
.app-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 24px;
}

/* Glassmorphism Panel styles - Adjusted to light mode */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.05);
  padding: 24px;
}

/* Dashboard Stats Cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 2rem;
}

.stats-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(44, 62, 80, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.card-info h3 {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
}

.stats-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-emerald);
  margin-bottom: 6px;
}

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

/* Accumulator Progress Bar */
.progress-bar-container {
  background: #edf2f7;
  border-radius: 8px;
  height: 8px;
  width: 100%;
  margin: 8px 0;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  height: 100%;
  border-radius: 8px;
  transition: width 1s ease-in-out;
}

/* Heatmap Chart styling */
.heatmap-section {
  width: 100%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 10px;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-box {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.heatmap-wrapper {
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.heatmap-grid {
  display: grid;
  grid-template-flow: column;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 13px);
  gap: 4px;
  min-width: 720px;
}

.heatmap-cell {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  background: #e2e8f0;
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: scale 0.1s ease;
  cursor: pointer;
  position: relative;
}

.heatmap-cell:hover {
  scale: 1.25;
  border-color: rgba(44, 62, 80, 0.3);
  z-index: 10;
}

/* Light Slate & Terracotta Heatmap colors */
.level-0 { background-color: #e2e8f0; } /* Light gray-blue */
.level-1 { background-color: #dbeafe; } /* Passive background listening only */
.level-2 { background-color: #93c5fd; } /* Short active < 60m input/output */
.level-3 { background-color: #3b82f6; } /* One channel reached 60m */
.level-4 { 
  background-color: var(--accent-cyan); /* BOTH reached 60m (Perfect day!) */
  box-shadow: 0 0 8px var(--accent-cyan-glow);
}

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

/* Content layout split */
.content-split-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

@media (max-width: 992px) {
  .content-split-layout {
    grid-template-columns: 1fr;
  }
}

/* Logger Tabs styling */
.logging-tabs {
  padding: 0;
  overflow: hidden;
}

.tab-headers {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  padding: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn:hover {
  background: #edf2f7;
  color: var(--text-primary);
}

.tab-btn.active {
  border-bottom-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(142, 110, 102, 0.06);
}

.tab-content {
  display: none;
  padding: 24px;
}

.tab-content.active {
  display: block;
}

/* Custom Forms */
.form-row {
  display: flex;
  gap: 15px;
}

.form-group {
  margin-bottom: 20px;
}

.col-6 {
  flex: 1;
}

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

.form-control-custom {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: var(--transition);
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
  background: #ffffff;
}

.form-control-custom::placeholder {
  color: #a0aec0;
}

/* Passive Mode Toggle box */
.passive-toggle-box {
  background: rgba(249, 115, 22, 0.05);
  border: 1px dashed rgba(249, 115, 22, 0.2);
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.passive-checkbox {
  margin-right: 12px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.passive-label {
  font-size: 13px;
  color: #c2410c;
  font-weight: 600;
  cursor: pointer;
}

/* Buttons */
.btn-primary-custom {
  background: var(--accent-cyan);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-custom:hover {
  background: #7a5a52;
  box-shadow: 0 4px 12px var(--accent-cyan-glow);
  transform: translateY(-1px);
}

.btn-secondary-custom {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary-custom:hover {
  background: #edf2f7;
  color: var(--text-primary);
  border-color: rgba(44, 62, 80, 0.2);
}

.btn-text-only {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-text-only:hover {
  color: #ef4444;
}

/* Star Rating Selector */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 8px;
  font-size: 22px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  color: #cbd5e1;
  cursor: pointer;
  transition: var(--transition);
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #eab308;
  text-shadow: 0 0 6px rgba(234, 179, 8, 0.2);
}

/* History Log List */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

.history-item {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.history-item:hover {
  border-color: rgba(44, 62, 80, 0.2);
  background: #edf2f7;
}

.history-item-details h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 4px;
}

.history-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.history-item-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-log {
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-log.input {
  background: rgba(142, 110, 102, 0.1);
  color: var(--accent-cyan);
}

.badge-log.input.passive {
  background: rgba(249, 115, 22, 0.1);
  color: #c2410c;
}

.badge-log.output {
  background: rgba(44, 62, 80, 0.08);
  color: var(--accent-emerald);
}

.btn-delete-log {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  transition: var(--transition);
}

.btn-delete-log:hover {
  color: #ef4444;
}

/* Tool Cards & Panels */
.tool-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-intro {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

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

.header-with-action h3 {
  margin-bottom: 0;
}

/* System prompt panel elements */
.prompt-copy-box {
  background: rgba(142, 110, 102, 0.05);
  border: 1px dashed rgba(142, 110, 102, 0.25);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.prompt-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--accent-emerald);
}

.btn-copy-prompt {
  background: var(--accent-cyan);
  color: #ffffff;
  border: none;
  font-size: 11px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-prompt:hover {
  background: #7a5a52;
}

/* Vocabulary management chips list */
.vocab-list-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  background: #f8fafc;
  padding: 10px;
  border-radius: 8px;
  align-content: flex-start;
}

.vocab-chip {
  background: rgba(142, 110, 102, 0.08);
  border: 1px solid rgba(142, 110, 102, 0.15);
  color: var(--accent-cyan);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vocab-chip-remove {
  cursor: pointer;
  color: rgba(142, 110, 102, 0.5);
  transition: var(--transition);
  font-size: 10px;
}

.vocab-chip-remove:hover {
  color: #ef4444;
}

/* Sync Settings section */
.settings-group {
  margin-bottom: 12px;
}

.sync-actions {
  display: flex;
  gap: 8px;
}

.sync-status {
  font-size: 11px;
  text-align: center;
  word-break: break-all;
}

/* Checkpoint Table UI */
.checkpoint-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.checkpoint-intro {
  font-size: 13px;
  color: var(--text-secondary);
}

.checkpoint-list-wrapper {
  overflow-x: auto;
}

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

.checkpoint-table th, 
.checkpoint-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.checkpoint-table th {
  color: #ffffff;
  font-weight: 700;
  background: var(--accent-emerald);
}

.checkpoint-table tr:hover {
  background: #edf2f7;
}

/* Modal Styling - Light Mode */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

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

.modal-content-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 15px 30px rgba(44, 62, 80, 0.1);
  overflow: hidden;
}

.modal-content-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: #ef4444;
}

.modal-content-body {
  padding: 20px;
}

.modal-content-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8fafc;
}

.btn-custom {
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-custom-secondary {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.btn-custom-secondary:hover {
  background: #edf2f7;
  color: var(--text-primary);
}

.btn-custom-primary {
  background: var(--accent-cyan);
  color: #ffffff;
}

.btn-custom-primary:hover {
  background: #7a5a52;
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
  background: #edf2f7;
}

/* Timer Display & Actions */
.timer-display {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-emerald);
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 8px;
  min-width: 85px;
  text-align: center;
}

.btn-timer-action {
  background: var(--accent-cyan);
  color: #ffffff;
  border: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-timer-action:hover {
  background: #7a5a52;
  box-shadow: 0 4px 10px var(--accent-cyan-glow);
}

.btn-timer-action.emerald {
  background: var(--accent-emerald);
}

.btn-timer-action.emerald:hover {
  background: #1e293b;
  box-shadow: 0 4px 10px var(--accent-emerald-glow);
}

.btn-timer-action.active {
  background: #ef4444 !important;
  color: #ffffff !important;
  animation: pulse-red 1.5s infinite;
}

.btn-timer-action.active:hover {
  background: #f87171 !important;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2) !important;
}

@keyframes pulse-red {
  0% { transform: scale(1); }
  50% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

.alert-timer-info {
  background: rgba(142, 110, 102, 0.08);
  border: 1px solid rgba(142, 110, 102, 0.2);
  color: var(--accent-cyan);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-timer-info.emerald {
  background: rgba(44, 62, 80, 0.06);
  border: 1px solid rgba(44, 62, 80, 0.15);
  color: var(--accent-emerald);
}

/* ==========================================================================
   5. Zone Mode & Floating Tooltip & Badge Styles
   ========================================================================== */

/* Zone Mode Overlay */
.zone-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-sans);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.zone-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Pulsating Focus Rings */
.zone-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  margin-top: -160px;
  margin-left: -160px;
  border-radius: 50%;
  border: 1px solid rgba(142, 110, 102, 0.25); /* Terracotta tint */
  pointer-events: none;
}

.zone-overlay.output-mode .zone-glow-ring {
  border-color: rgba(16, 185, 129, 0.2); /* Emerald tint */
}

.zone-glow-ring.ring-1 {
  animation: pulse-ring 8s infinite linear;
}
.zone-glow-ring.ring-2 {
  animation: pulse-ring 8s infinite linear 2.66s;
}
.zone-glow-ring.ring-3 {
  animation: pulse-ring 8s infinite linear 5.33s;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Info container */
.zone-info-container {
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.zone-badge {
  background: rgba(142, 110, 102, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(142, 110, 102, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zone-overlay.output-mode .zone-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.3);
}

.zone-title {
  font-size: 24px;
  font-weight: 500;
  max-width: 600px;
  line-height: 1.4;
  color: #e2e8f0;
  margin-top: 10px;
}

.zone-timer-display {
  font-size: 96px;
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.1));
  letter-spacing: -0.02em;
  margin: 15px 0;
}

.zone-breathing-guide {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 20px;
}

.breath-dot {
  width: 8px;
  height: 8px;
  background-color: #3b82f6;
  border-radius: 50%;
  animation: breath-dot-anim 4s infinite ease-in-out;
}

.zone-overlay.output-mode .breath-dot {
  background-color: #10b981;
}

@keyframes breath-dot-anim {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(2.2);
    opacity: 1;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
  }
}

.zone-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.btn-zone-action {
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-zone-action.stop {
  background: #ef4444;
  color: #ffffff;
}

.btn-zone-action.stop:hover {
  background: #dc2626;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.btn-zone-action.minimize {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

.btn-zone-action.minimize:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Floating widget when minimized */
.zone-floating-badge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: var(--transition);
  animation: float-badge 3s infinite ease-in-out;
}

.zone-floating-badge:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.floating-badge-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #ffffff;
  font-size: 14px;
}

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

/* Floating cursor tooltip for heatmap */
.heatmap-tooltip {
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
  line-height: 1.4;
}

/* Custom modal inner styling adjustments */
.modal-content-body h5 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-left: 3px solid;
  padding-left: 8px;
}

.modal-content-body h5 i {
  margin-right: 4px;
}

/* ==========================================================================
   Login Overlay UI
   ========================================================================== */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.login-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  text-align: center;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-overlay.hidden .login-card {
  transform: translateY(-20px) scale(0.95);
}

.login-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 8px;
}

.login-header p {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 25px;
}

.login-form .input-group {
  text-align: left;
}

.login-form .form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.login-form .form-control-custom {
  width: 100%;
  padding: 12px 15px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  transition: var(--transition);
}

.login-form .form-control-custom:focus {
  outline: none;
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}
