/* ==========================================================================
   Design System Variables & Global Styles
   ========================================================================== */
:root {
  --bg-primary: #080c14;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-terminal: #030712;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-focus: rgba(59, 130, 246, 0.5);
  
  /* Harmonious Color Palette */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.15);
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.15);
  --info: #06b6d4;
  --info-glow: rgba(6, 182, 212, 0.15);
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.15);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.15);
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;
  
  --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Glassmorphism utility */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.app-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.view-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  flex-direction: column;
  flex: 1;
}

.view-panel.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Authentication Views (First-run / Login)
   ========================================================================== */
#login-view {
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.auth-header {
  text-align: center;
}

.logo-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: inline-block;
  animation: bounce 2s infinite;
}

.auth-header h1 {
  font-size: 28px;
  margin-bottom: 8px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.auth-step {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.auth-step.active {
  display: flex;
}

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-group input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

/* Buttons */
.btn {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

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

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

.btn-danger {
  background: var(--danger);
  color: var(--text-primary);
  box-shadow: 0 4px 12px var(--danger-glow);
}

.btn-danger:hover {
  transform: translateY(-1px);
  background: #dc2626;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 6px;
}

.btn-group {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}

/* Status Indicator Loader */
.auth-status-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

/* ==========================================================================
   Dashboard View Styles
   ========================================================================== */
#dashboard-view {
  gap: 20px;
}

/* Dashboard Header */
.dashboard-header {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-emoji {
  font-size: 32px;
}

.logo-text h2 {
  font-size: 18px;
  font-weight: 600;
}

.status-indicator-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 50px;
  margin-top: 4px;
}

.status-indicator-tag.active {
  background: var(--success-glow);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--success);
  animation: pulse-dot-anim 1.5s infinite;
}

/* Stats Row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  font-size: 28px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-content h3 {
  font-size: 24px;
  font-weight: 700;
}

.stat-content p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 2px;
}

/* Colors utility */
.text-blue { color: var(--primary); }
.text-green { color: var(--success); }
.text-yellow { color: var(--warning); }

/* Dashboard Columns Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 20px;
  flex: 1;
  min-height: 500px;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.panel-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  max-height: calc(100vh - 360px);
}

@media (max-width: 1024px) {
  .panel-body {
    max-height: 400px;
  }
}

/* ==========================================================================
   Chats List Panel
   ========================================================================== */
.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.chats-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-item {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.chat-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-color);
}

.chat-item.capturing {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.02);
}

.chat-details {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0; /* allows text truncation */
}

/* Chat initials circle */
.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.chat-item.capturing .chat-avatar {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e1b4b 100%);
}

.chat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chat-title-text {
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.chat-badge {
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.02em;
}

.badge-group { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge-supergroup { background: rgba(167, 139, 250, 0.15); color: #c084fc; }
.badge-channel { background: rgba(244, 63, 94, 0.15); color: #fb7185; }

.chat-members {
  color: var(--text-muted);
}

/* iOS Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  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: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 24px;
  border: 1px solid var(--border-color);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
  border-color: rgba(59, 130, 246, 0.5);
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: var(--text-primary);
}

/* Loading & Empty states inside panel */
.chats-loading-state, .chats-empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-secondary);
  gap: 16px;
}

.chats-loading-state .spinner {
  display: block;
}

/* ==========================================================================
   Activity Monitor Panel (Downloads & Terminal)
   ========================================================================== */
.monitor-panel {
  flex: 1;
}

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

.monitor-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  max-height: calc(100vh - 360px);
}

@media (max-width: 1024px) {
  .monitor-body {
    max-height: initial;
  }
}

/* Active Downloads progress area */
.downloads-progress-container {
  display: none;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
}

.downloads-progress-container h4 {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.download-progress-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.download-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.download-filename {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75%;
}

.download-percentage {
  color: var(--info);
  font-weight: 600;
}

.btn-skip-download {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition-smooth);
  line-height: 1;
}

.btn-skip-download:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}


.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--info) 100%);
  width: 0%;
  transition: width 0.1s ease;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

/* Terminal Wrapper */
.terminal-wrapper {
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
}

.log-terminal {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 250px;
}

/* Color Coding for Log Lines */
.terminal-line {
  word-break: break-all;
}

.system-line {
  color: var(--text-muted);
}

.info-line {
  color: var(--text-secondary);
}

.success-line {
  color: #a7f3d0;
}

.download-line {
  color: #818cf8;
}

.warning-line {
  color: #fde047;
}

.error-line {
  color: #fca5a5;
  font-weight: 500;
}

.log-time {
  color: var(--text-muted);
  margin-right: 8px;
}

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

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

@keyframes pulse-dot-anim {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.chat-media-count {
  background: rgba(16, 185, 129, 0.15);
  color: #a7f3d0;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.chat-deleted-count {
  background: rgba(245, 158, 11, 0.15);
  color: #fde047;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition-smooth);
}

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

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

/* ==========================================================================
   Lock Screen Overlay & Animations
   ========================================================================== */
.lock-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lock-screen-overlay.active {
  display: flex;
}

.lock-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  animation: modal-appear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lock-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lock-icon {
  font-size: 40px;
  animation: bounce 3s infinite ease-in-out;
  margin-bottom: 8px;
}

.lock-header h1 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.lock-header .subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

#lock-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#lock-password {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: var(--transition-smooth);
}

#lock-password:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

#btn-lock-submit {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.error-text {
  color: #fb7185;
  font-size: 12px;
  text-align: center;
  margin-top: 4px;
  animation: shake 0.4s ease-in-out;
}

@keyframes modal-appear {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ==========================================================================
   File Manager Modal Styles
   ========================================================================== */
.file-manager-card {
  width: 90%;
  max-width: 850px;
  height: 80vh;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  animation: modal-appear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.fm-title-icon {
  font-size: 24px;
}

.file-manager-header .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 4px;
}

.btn-icon-close:hover {
  color: var(--danger);
  transform: scale(1.1);
}

.fm-path-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 16px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-xs {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 6px;
  height: auto;
  line-height: 1.4;
}

.fm-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 0; /* Ensures flex container calculates height correctly without leaking */
  padding-right: 4px;
}

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

.fm-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: var(--transition-smooth);
}

.fm-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-color-focus);
  transform: translateY(-1px);
}

.fm-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.fm-item-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.fm-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fm-item-name {
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.fm-item-name.directory-link {
  cursor: pointer;
  color: var(--primary);
}

.fm-item-name.directory-link:hover {
  text-decoration: underline;
}

.fm-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  margin-top: 2px;
}

.fm-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.fm-loading-state,
.fm-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  gap: 16px;
  color: var(--text-secondary);
  text-align: center;
}

