/* ═══════════════════════════════════════════════════════════
   Controle Provedor - Design System
   Dark Tech / Glassmorphism / Ultra-Modern
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ── Core Palette ── */
  --bg-void: #050510;
  --bg-deep: #0a0a1e;
  --bg-surface: #0f0f2e;
  --bg-card: rgba(15, 15, 46, 0.6);
  --bg-card-hover: rgba(20, 20, 60, 0.8);
  --bg-glass: rgba(15, 20, 50, 0.4);
  --bg-input: rgba(10, 12, 30, 0.8);

  /* ── Accent Gradients ── */
  --accent-cyan: #06d6a0;
  --accent-blue: #118ab2;
  --accent-indigo: #6366f1;
  --accent-violet: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --accent-emerald: #10b981;

  --gradient-hero: linear-gradient(135deg, #06d6a0 0%, #118ab2 50%, #6366f1 100%);
  --gradient-card: linear-gradient(135deg, rgba(6,214,160,0.08) 0%, rgba(99,102,241,0.08) 100%);
  --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);

  /* ── Glass ── */
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.12);
  --glass-blur: 20px;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* ── Text ── */
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #06d6a0;

  /* ── Borders & Radii ── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ── Spacing ── */
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;
  --gap-2xl: 48px;

  /* ── Transitions ── */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.25s;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-void);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Ambient Background ── */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6,214,160,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */

.app-container {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--gap-lg) var(--gap-xl);
  min-height: 100vh;
}

/* ── Header ── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-lg) var(--gap-xl);
  margin-bottom: var(--gap-xl);
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 20px rgba(6,214,160,0.3);
}

.brand-info h1 {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.brand-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}

/* ── Stats Bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap-md);
  margin-bottom: var(--gap-xl);
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.stat-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.cyan   { background: rgba(6,214,160,0.12); color: var(--accent-cyan); }
.stat-icon.blue   { background: rgba(17,138,178,0.12); color: var(--accent-blue); }
.stat-icon.violet { background: rgba(139,92,246,0.12); color: var(--accent-violet); }
.stat-icon.amber  { background: rgba(245,158,11,0.12); color: var(--accent-amber); }

.stat-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-content p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   PROVIDER CARDS
   ═══════════════════════════════════════════════════════════ */

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: var(--gap-xl);
  margin-bottom: var(--gap-2xl);
}

.provider-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.35s var(--ease);
  position: relative;
}

.provider-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 60px rgba(6,214,160,0.05);
  transform: translateY(-4px);
}

.provider-card.status-ativo       { --status-color: var(--accent-emerald); }
.provider-card.status-suspenso    { --status-color: var(--accent-amber); }
.provider-card.status-bloqueado   { --status-color: var(--accent-red); }
.provider-card.status-manutencao  { --status-color: var(--accent-blue); }

.provider-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--status-color, var(--accent-cyan));
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-lg) var(--gap-xl);
  border-bottom: 1px solid var(--glass-border);
}

.card-identity {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}

.card-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.card-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-url {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-ativo      { background: rgba(16,185,129,0.15); color: var(--accent-emerald); border: 1px solid rgba(16,185,129,0.25); }
.badge-suspenso   { background: rgba(245,158,11,0.15); color: var(--accent-amber);   border: 1px solid rgba(245,158,11,0.25); }
.badge-bloqueado  { background: rgba(239,68,68,0.15);  color: var(--accent-red);     border: 1px solid rgba(239,68,68,0.25); }
.badge-manutencao { background: rgba(17,138,178,0.15); color: var(--accent-blue);    border: 1px solid rgba(17,138,178,0.25); }

.badge-online  { background: rgba(16,185,129,0.15); color: var(--accent-emerald); border: 1px solid rgba(16,185,129,0.25); }
.badge-offline { background: rgba(239,68,68,0.15);  color: var(--accent-red);     border: 1px solid rgba(239,68,68,0.25); }

.badge .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; }
  50% { opacity: 0.6; box-shadow: 0 0 8px 2px currentColor; }
}

/* Card Info Bar */
.card-info-bar {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
  padding: var(--gap-md) var(--gap-xl);
  background: rgba(0,0,0,0.15);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-item .material-icons-round {
  font-size: 16px;
  opacity: 0.7;
}

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

/* Card Actions */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--gap-sm);
  padding: var(--gap-sm) var(--gap-xl) var(--gap-md);
}

/* Modules Matrix */
.modules-section {
  padding: var(--gap-md) var(--gap-xl) var(--gap-lg);
}

.modules-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--gap-md);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.module-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  cursor: default;
}

.module-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
}

.module-item.disabled {
  opacity: 0.45;
}

.module-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.module-label .material-icons-round {
  font-size: 16px;
  opacity: 0.8;
}

.module-item.enabled .module-label {
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════
   TOGGLE SWITCH
   ═══════════════════════════════════════════════════════════ */

.toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(100, 116, 139, 0.3);
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.3s var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.toggle-switch input:checked + .toggle-slider {
  background: rgba(6, 214, 160, 0.3);
  border-color: rgba(6, 214, 160, 0.4);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(16px);
  background: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(6, 214, 160, 0.5);
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-1px);
}

.btn .material-icons-round {
  font-size: 18px;
}

.btn-primary {
  background: var(--gradient-hero);
  border-color: transparent;
  color: #0a0e1a;
  font-weight: 600;
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(6,214,160,0.3);
  filter: brightness(1.1);
  border-color: transparent;
}

.btn-danger {
  background: var(--gradient-danger);
  border-color: transparent;
  color: white;
}

.btn-danger:hover {
  box-shadow: 0 4px 20px rgba(239,68,68,0.3);
  filter: brightness(1.1);
  border-color: transparent;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.72rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--glass-border-hover);
}

.btn-icon .material-icons-round {
  font-size: 18px;
}

/* ═══════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 580px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 100px rgba(6,214,160,0.05);
  transform: scale(0.9) translateY(20px);
  transition: all 0.35s var(--ease);
  overflow: hidden;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-lg) var(--gap-xl);
  border-bottom: 1px solid var(--glass-border);
  background: var(--gradient-card);
}

.modal-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.modal-header h2 .material-icons-round {
  font-size: 22px;
  color: var(--accent-cyan);
}

.modal-body {
  padding: var(--gap-xl);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--gap-md);
  padding: var(--gap-md) var(--gap-xl) var(--gap-lg);
  border-top: 1px solid var(--glass-border);
}

/* ── Form Elements ── */
.form-group {
  margin-bottom: var(--gap-md);
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  transition: all var(--duration) var(--ease);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6,214,160,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 70px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
}

/* ═══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  font-size: 0.85rem;
  animation: toast-in 0.35s var(--ease);
  transition: opacity 0.3s var(--ease);
  max-width: 400px;
}

.toast.success { border-left: 3px solid var(--accent-emerald); }
.toast.error   { border-left: 3px solid var(--accent-red); }
.toast.warning { border-left: 3px solid var(--accent-amber); }
.toast.info    { border-left: 3px solid var(--accent-blue); }

@keyframes toast-in {
  from { transform: translateX(100px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   LOADING SPINNER
   ═══════════════════════════════════════════════════════════ */

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--glass-border);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-md);
  padding: var(--gap-2xl);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   AUDIT LOG TABLE
   ═══════════════════════════════════════════════════════════ */

.audit-section {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--gap-xl);
  margin-top: var(--gap-xl);
}

.audit-section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: var(--gap-lg);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.audit-section h3 .material-icons-round {
  font-size: 20px;
  color: var(--accent-violet);
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
}

.audit-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--glass-border);
}

.audit-table td {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.audit-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

.audit-table td:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--gap-2xl);
  color: var(--text-muted);
  text-align: center;
}

.empty-state .material-icons-round {
  font-size: 48px;
  opacity: 0.3;
  margin-bottom: var(--gap-md);
}

.empty-state p {
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .app-container {
    padding: var(--gap-md);
  }

  .app-header {
    flex-direction: column;
    gap: var(--gap-md);
    text-align: center;
  }

  .providers-grid {
    grid-template-columns: 1fr;
  }

  .modules-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-info-bar {
    flex-wrap: wrap;
    gap: var(--gap-sm);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal {
    width: 95%;
  }
}

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

  .stats-bar {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.provider-card {
  animation: fade-in 0.5s var(--ease) both;
}

.provider-card:nth-child(2) { animation-delay: 0.08s; }
.provider-card:nth-child(3) { animation-delay: 0.16s; }
.provider-card:nth-child(4) { animation-delay: 0.24s; }

.stat-card {
  animation: fade-in 0.4s var(--ease) both;
}

.stat-card:nth-child(2) { animation-delay: 0.06s; }
.stat-card:nth-child(3) { animation-delay: 0.12s; }
.stat-card:nth-child(4) { animation-delay: 0.18s; }

/* ── Status indicator glow ── */
.provider-card.status-ativo::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  margin: 12px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-emerald);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}
