/* Reset & Variables */
:root {
  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-primary);
  
  /* Color Palette - Dark Mode Default */
  --bg-app: #080b11;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(23, 33, 53, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  /* Accent Colors */
  --primary: #10b981; /* Emerald Green (like Google Sheets) */
  --primary-hover: #059669;
  --primary-light: rgba(16, 185, 129, 0.15);
  --accent: #6366f1; /* Indigo */
  --accent-light: rgba(99, 102, 241, 0.15);
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.1);
  --success: #10b981;
  --warning: #f59e0b;
  
  /* Utility & Effects */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --glow-primary: 0 0 20px rgba(16, 185, 129, 0.2);
  --glow-accent: 0 0 20px rgba(99, 102, 241, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode overrides */
body.light-mode {
  --bg-app: #f4f6f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(0, 0, 0, 0.15);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --primary-light: rgba(16, 185, 129, 0.1);
  --accent-light: rgba(99, 102, 241, 0.1);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.4s ease;
  position: relative;
}

/* Decorative Background Blobs (Premium Touch) */
body::before, body::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  z-index: -1;
  filter: blur(50px);
  pointer-events: none;
}
body::before {
  top: -100px;
  right: -50px;
}
body::after {
  bottom: -150px;
  left: -100px;
}

body.light-mode::before, body.light-mode::after {
  opacity: 0.5;
}

/* Typography styles */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* App Header & Navigation */
header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(8, 11, 17, 0.8);
  transition: background-color 0.4s ease, border-color 0.3s ease;
}

body.light-mode header {
  background-color: rgba(244, 246, 249, 0.85);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.25rem;
  box-shadow: var(--glow-primary);
}

.logo-title {
  font-size: 1.5rem;
  background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.nav-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  padding: 0.25rem;
  border-radius: 30px;
}

body.light-mode .nav-tabs {
  background: rgba(0, 0, 0, 0.05);
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.tab-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

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

.tab-btn.active {
  background: var(--text-primary);
  color: var(--bg-app);
  box-shadow: var(--shadow-sm);
}

body.light-mode .tab-btn.active {
  background: #111827;
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-color-hover);
  background: rgba(255, 255, 255, 0.05);
}

body.light-mode .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Layout container */
main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Common Card Style (Glassmorphism) */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
}

/* --- ADMIN VIEW --- */
.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

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

.admin-header {
  margin-bottom: 1.5rem;
}

.admin-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.admin-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

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

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.input-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

body.light-mode .input-control {
  background: rgba(255, 255, 255, 0.9);
}

.input-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  background: rgba(0, 0, 0, 0.35);
}

body.light-mode .input-control:focus {
  background: #fff;
}

/* Custom Configuration Options */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

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

.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #0b1511;
  box-shadow: var(--glow-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

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

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

.btn-danger {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: var(--danger);
  color: white;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Instructions card */
.guide-card {
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.guide-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.guide-steps {
  list-style: none;
}

.guide-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.guide-step:last-child {
  margin-bottom: 0;
}

.step-num {
  width: 26px;
  height: 26px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.step-content code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
}

/* Status Alert Message */
.alert-box {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
  line-height: 1.5;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-info {
  background: rgba(99, 102, 241, 0.08);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.alert-box svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

/* --- LIST VIEW --- */
.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-filter-box {
  display: flex;
  gap: 1rem;
  flex: 1;
  max-width: 600px;
  width: 100%;
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

.status-dot.online {
  background-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.status-dot.loading {
  background-color: var(--warning);
  animation: pulse 1.5s infinite;
}

.status-dot.error {
  background-color: var(--danger);
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* View Mode Switcher */
.toggle-group {
  display: flex;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  padding: 2px;
  border-radius: 8px;
}

.toggle-btn {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.toggle-btn:hover {
  color: var(--text-primary);
}

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

body.light-mode .toggle-btn.active {
  background: rgba(0, 0, 0, 0.08);
}

/* Empty State Styling */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  margin-top: 1rem;
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 450px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* TABLE VIEW CONTAINER */
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
  background: rgba(0, 0, 0, 0.1);
}

body.light-mode .table-container {
  background: rgba(255, 255, 255, 0.5);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.data-table th {
  background-color: rgba(17, 24, 39, 0.9);
  color: var(--text-primary);
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--border-color);
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

body.light-mode .data-table th {
  background-color: #eaeef3;
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table tr {
  transition: background-color 0.2s ease;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background-color: var(--bg-card-hover);
}

.data-table tbody tr:hover td {
  color: var(--text-primary);
}

/* CARD GRID VIEW */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.data-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: cardPulse 0.3s ease;
}

@keyframes cardPulse {
  from { transform: scale(0.98); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.card-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  margin-bottom: 0.25rem;
}

.card-title-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.field-value {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.4;
  word-break: break-word;
}

/* PAGINATION CONTROLS */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.page-info span {
  color: var(--text-primary);
  font-weight: 600;
}

.pagination-buttons {
  display: flex;
  gap: 0.5rem;
}

.page-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.page-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.page-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-btn.active-num {
  background: var(--primary);
  color: #0b1511;
  border-color: var(--primary);
}

/* Skeleton Loading (Premium placeholder while fetching data) */
.skeleton-row td {
  padding: 1.25rem;
}

.skeleton-text {
  height: 16px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skeletonLoading 1.5s infinite linear;
}

body.light-mode .skeleton-text {
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 200% 100%;
}

@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Custom styling for spreadsheet list items */
.sheet-link-anchor {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  display: inline-block;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.light-mode .sheet-link-anchor {
  color: #4f46e5;
}

.sheet-link-anchor:hover {
  color: var(--primary);
  text-decoration: underline;
}

.table-title-cell strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.table-desc-cell {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.action-icon-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

body.light-mode .action-icon-btn {
  background: rgba(0, 0, 0, 0.03);
}

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

body.light-mode .action-icon-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.action-icon-btn.open-btn:hover {
  color: var(--primary);
  border-color: rgba(16, 185, 129, 0.4);
  background: var(--primary-light);
}

.action-icon-btn.copy-btn:hover {
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.4);
  background: var(--accent-light);
}

.action-icon-btn.delete-btn:hover {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.4);
  background: var(--danger-light);
}

.sheet-card-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Section Titles in Dual Layout */
.section-title {
  font-size: 1.25rem;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 0.75rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
}

/* Status count badges styling */
.status-badge-wrapper {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.badge-status-pendente, 
.badge-status-realizado, 
.badge-status-error, 
.badge-status-loading,
.badge-status-muted {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-status-pendente {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-status-realizado {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-status-loading {
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-status-error {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-status-muted {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* Mini loading spinner */
.mini-spinner {
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: miniSpinnerRotate 0.8s linear infinite;
  display: inline-block;
}

@keyframes miniSpinnerRotate {
  to { transform: rotate(360deg); }
}

/* Footer Section */
footer {
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
