/* ==========================================================================
   ZET Uživo PWA - Premium Design System (Vanilla CSS)
   ========================================================================== */

/* Variables & Design Tokens */
:root {
  --bg-primary: #07090e;
  --bg-secondary: #0f131a;
  --bg-tertiary: #171d29;
  
  --glass-bg: rgba(22, 29, 41, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.03);
  
  --accent-blue: #0066ff;
  --accent-cyan: #00f2fe;
  --accent-glow: rgba(0, 242, 254, 0.25);
  
  --color-text-primary: #ffffff;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  
  --color-live: #00ff66;
  --color-live-glow: rgba(0, 255, 102, 0.35);
  --color-scheduled: #ffaa00;
  --color-scheduled-glow: rgba(255, 170, 0, 0.25);
  --color-error: #ef4444;
  
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-digital: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  
  --nav-height: 72px;
  --header-height: 64px;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Scrollbar styling (for desktop testing) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 3px;
}

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

/* App Header */
.app-header {
  height: var(--header-height);
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 10;
  padding-top: env(safe-area-inset-top);
}

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

.header-logo {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 6px var(--accent-blue));
}

.app-title {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.header-icon-btn {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--glass-highlight);
  border: 1px solid var(--glass-border);
}

.header-icon-btn:active {
  transform: scale(0.95);
  background: var(--glass-border);
  color: var(--color-text-primary);
}

.header-icon-btn.active {
  color: var(--accent-cyan);
  border-color: rgba(0, 242, 254, 0.4);
  background: rgba(0, 242, 254, 0.08);
}

/* App Content Area */
.app-content {
  flex: 1;
  position: relative;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: calc(var(--nav-height) + 24px + env(safe-area-inset-bottom));
}

/* Screens Layout */
.app-screen {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.app-screen.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.app-screen.full-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
}

.screen-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--color-text-primary);
}

/* Bottom Navigation */
.bottom-nav {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  height: var(--nav-height);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  margin-bottom: env(safe-area-inset-bottom);
  padding: 0 8px;
}

.nav-item {
  background: none;
  border: none;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  height: 100%;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item span {
  font-size: 11px;
  font-weight: 500;
}

.nav-item:active .nav-icon {
  transform: scale(0.9);
}

.nav-item.active {
  color: var(--accent-cyan);
}

.nav-item.active .nav-icon {
  transform: scale(1.15) translateY(-2px);
  filter: drop-shadow(0 0 6px var(--accent-cyan));
}

/* Glassmorphism Cards & Rows */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, var(--glass-highlight), transparent);
  pointer-events: none;
}

/* Stops List Layout */
.stops-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stop-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.stop-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.stop-card:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.02);
}

.stop-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.stop-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stop-details {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.stop-distance {
  font-weight: 600;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-distance {
  background: rgba(0, 242, 254, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Line Badges Grid */
.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  max-width: 100%;
}

.line-badge {
  font-size: 10px;
  font-weight: 700;
  height: 20px;
  min-width: 20px;
  padding: 0 5px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Tram Line Badges (Zagreb Blue Style) */
.line-badge.tram {
  background: #0056e0;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

/* Bus Line Badges (Grey/Teal Style) */
.line-badge.bus {
  background: #2e3b4e;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-action-icon {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 12px;
}

.stop-card:active .card-action-icon {
  color: var(--accent-cyan);
}

/* Search Bar */
.search-bar-container {
  margin-bottom: 16px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 0 16px;
  height: 54px;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.search-bar:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-glow);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-secondary);
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 16px;
  outline: none;
  font-family: var(--font-primary);
}

.search-bar input::placeholder {
  color: var(--color-text-muted);
}

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

.search-clear-btn:active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
}

/* Recent Search History */
.search-history-container {
  margin-top: 24px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  font-weight: 600;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text-secondary);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.history-item:active {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-border);
}

/* Loading & Empty States */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--color-text-secondary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3.5px stroke var(--glass-border);
  border-top: 3.5px solid var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 10px var(--accent-glow);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 30px;
  color: var(--color-text-secondary);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  line-height: 1.5;
  max-width: 260px;
}

/* Maps Styles */
#map-container {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
}

/* Blend the map tiles to look premium dark */
.leaflet-container {
  background-color: var(--bg-primary) !important;
}

/* Map Markers Styling */
.user-marker {
  position: relative;
}

.user-marker::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--accent-cyan);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00f2fe;
  top: -8px;
  left: -8px;
  z-index: 2;
}

.user-marker::after {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  background: rgba(0, 242, 254, 0.2);
  border-radius: 50%;
  top: -18px;
  left: -18px;
  animation: pulse-ring 2s infinite ease-out;
  z-index: 1;
}

/* Custom SVG Stop Pin on Map */
.stop-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--glass-bg);
  border: 2px solid var(--accent-blue);
  border-radius: 50%;
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.stop-pin.selected {
  transform: scale(1.2);
  border-color: var(--accent-cyan);
  background: var(--accent-blue);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Sliding Stop Detail Panel */
.sliding-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80%;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-radius: 28px 28px 0 0;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.94, 0.6, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.sliding-panel.open {
  transform: translateY(0);
}

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

.panel-icon-btn {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
}

.panel-icon-btn:active {
  background: var(--glass-border);
  color: var(--color-text-primary);
}

.panel-icon-btn.active {
  color: #ffcc00;
  border-color: rgba(255, 204, 0, 0.4);
  background: rgba(255, 204, 0, 0.08);
}

.panel-title-container {
  flex: 1;
  text-align: center;
  padding: 0 10px;
  min-width: 0;
}

.panel-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-subtitle {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 2px;
  display: block;
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Departures Digital Board */
.departures-board-wrapper {
  background: #000000;
  border-radius: 20px;
  border: 2px solid #2e3b4e;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.board-header {
  padding: 10px 16px;
  background: #0d0f14;
  border-bottom: 1px solid #1a2230;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.board-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-text-muted);
}

.status-dot.realtime {
  background-color: var(--color-live);
  box-shadow: 0 0 8px var(--color-live-glow);
  animation: pulse-glow 1.5s infinite alternate;
}

.status-dot.scheduled {
  background-color: var(--color-scheduled);
  box-shadow: 0 0 6px var(--color-scheduled-glow);
}

.digital-board {
  padding: 14px 16px;
  font-family: var(--font-digital);
  position: relative;
}

/* CRT Scanline Retro Effect Layer */
.digital-board::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  z-index: 5;
}

.board-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 170, 0, 0.15);
  font-size: 14px;
}

.board-row:last-child {
  border-bottom: none;
}

.board-grid-header {
  color: #5d6d84;
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 1px solid #1a2230;
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.col-line {
  width: 50px;
  font-weight: 700;
  color: #00f2fe;
  text-shadow: 0 0 6px rgba(0, 242, 254, 0.4);
}

.col-dest {
  flex: 1;
  color: #ffaa00;
  text-shadow: 0 0 8px rgba(255, 170, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 10px;
  text-transform: uppercase;
}

.col-time {
  width: 90px;
  text-align: right;
  font-weight: 700;
}

.board-row.realtime .col-time {
  color: var(--color-live);
  text-shadow: 0 0 8px var(--color-live-glow);
}

.board-row.scheduled .col-time {
  color: var(--color-scheduled);
  text-shadow: 0 0 8px var(--color-scheduled-glow);
}

.board-row.departure-empty {
  color: #ffaa00;
  text-shadow: 0 0 6px rgba(255, 170, 0, 0.4);
  justify-content: center;
  font-style: italic;
  padding: 20px 0;
}

.board-footer {
  padding: 10px 16px;
  background: #0d0f14;
  border-top: 1px solid #1a2230;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--color-text-muted);
}

.refresh-btn {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.refresh-btn:active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Filter Line Badges on stop */
.filter-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-badge {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.filter-badge:active {
  transform: scale(0.95);
}

.filter-badge.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  color: var(--color-text-primary);
}

.filter-badge .badge-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
}

/* Overlays / Fullscreen Panel */
.fullscreen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 500;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-overlay.open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.overlay-header {
  height: var(--header-height);
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  padding-top: env(safe-area-inset-top);
}

.overlay-title {
  font-size: 18px;
  font-weight: 700;
}

.overlay-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Form Styles */
.settings-card {
  padding: 24px 20px;
}

.settings-card-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  text-align: center;
}

.setup-logo {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 12px var(--accent-blue));
  margin-bottom: 12px;
}

.settings-card-logo h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.settings-card-logo p {
  font-size: 13px;
  color: var(--color-text-secondary);
  max-width: 250px;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.form-group input {
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0 14px;
  color: #fff;
  font-size: 15px;
  outline: none;
  font-family: var(--font-primary);
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  border-color: var(--accent-cyan);
}

.input-hint {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.form-error-msg {
  color: var(--color-error);
  font-size: 12px;
  margin-bottom: 16px;
  line-height: 1.4;
  padding: 10px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Button UI */
.btn {
  height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-primary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.25);
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 5px rgba(0, 102, 255, 0.25);
  opacity: 0.9;
}

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

.btn-secondary:active {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(0.98);
}

.btn-small {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Info Grid */
.info-section {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 20px;
}

.info-section h4 {
  font-size: 14px;
  margin-bottom: 12px;
}

.info-section p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 12px;
  column-gap: 20px;
  font-size: 13px;
}

.info-label {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.info-value {
  text-align: right;
  font-weight: 600;
  font-family: var(--font-digital);
  font-size: 12px;
}

.badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  display: inline-block;
}

.badge-success {
  background: rgba(0, 255, 102, 0.15);
  color: var(--color-live);
  border: 1px solid rgba(0, 255, 102, 0.2);
}

/* Toast Notifications */
.toast-notification {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(0, 242, 254, 0.1);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 1000;
  transform: translateY(-100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.toast-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-cyan);
  animation: spin 3s linear infinite;
}

.toast-text h4 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 2px;
}

.toast-text p {
  font-size: 11px;
  color: var(--color-text-secondary);
}

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes pulse-glow {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.hidden {
  display: none !important;
}

.icon {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
}

/* Tooltip helper */
.tooltip {
  position: relative;
}

/* Responsive adjustment for desktop test frames */
@media (min-width: 600px) {
  #app {
    max-width: 480px;
    height: 850px;
    margin: 40px auto;
    border-radius: 36px;
    border: 8px solid #222;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
    background: var(--bg-primary);
  }
  
  body {
    background-color: #0b0d12;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
