/* Layout com sidebar */
.layout-sidebar {
  display: flex;
  min-height: 100vh;
}
.layout-sidebar .content {
  flex: 1;
  padding: 24px;
  background: #f8f9fa;
  overflow-y: auto;
}

/* Cards de stats */
.stat-card {
  border: none;
  border-radius: 10px;
  transition: transform 0.2s;
}
.stat-card:hover {
  transform: translateY(-2px);
}
.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
}
.stat-card .stat-label {
  font-size: 0.85rem;
  color: #6c757d;
}

/* Badge de status */
.badge-active { background-color: #198754; }
.badge-pending { background-color: #ffc107; color: #000; }
.badge-paid { background-color: #0d6efd; }
.badge-churned { background-color: #dc3545; }
.badge-paused { background-color: #6c757d; }

/* Tabelas */
.table th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #6c757d;
}

/* Copy button */
.copy-btn {
  cursor: pointer;
}
.copy-btn:hover {
  color: #0d6efd;
}

/* Sidebar desktop */
.sidebar-desktop {
  width: 250px;
  min-width: 250px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

/* Mobile topbar */
.mobile-topbar {
  background: #212529;
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* Offcanvas sidebar */
.offcanvas-sidebar .nav-link {
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
}
.offcanvas-sidebar .nav-link:hover,
.offcanvas-sidebar .nav-link.bg-primary {
  background: #0d6efd;
  color: #fff;
}

/* Onboarding Wizard Stepper */
.onboarding-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.onboarding-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  background: #e9ecef;
  color: #6c757d;
  transition: all 0.3s;
}

.onboarding-step.active .step-circle {
  background: #0d6efd;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
}

.onboarding-step.completed .step-circle {
  background: #198754;
  color: #fff;
}

.step-label {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 4px;
  font-weight: 500;
}

.onboarding-step.active .step-label {
  color: #0d6efd;
  font-weight: 600;
}

.onboarding-step.completed .step-label {
  color: #198754;
}

.step-connector {
  width: 60px;
  height: 3px;
  background: #e9ecef;
  margin-bottom: 20px;
}

.step-connector.completed {
  background: #198754;
}

/* Onboarding Checklist */
.onboarding-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.onboarding-check-item:last-child {
  border-bottom: none;
}

.onboarding-check-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.85rem;
}

.onboarding-check-icon.done {
  background: #198754;
  color: #fff;
}

.onboarding-check-icon.pending {
  background: #e9ecef;
  color: #6c757d;
}

/* Affiliate onboarding tip cards */
.affiliate-tip-card {
  transition: transform 0.2s;
}

.affiliate-tip-card:hover {
  transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 767.98px) {
  .layout-sidebar {
    flex-direction: column;
  }
  .layout-sidebar .content {
    padding: 16px 12px;
  }
  .mobile-topbar {
    width: 100%;
  }
  .stat-card .stat-value {
    font-size: 1.4rem;
  }
  .stat-card .stat-label {
    font-size: 0.78rem;
  }
  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  .step-connector {
    width: 30px;
  }
  .onboarding-step {
    min-width: 60px;
  }
  .step-label {
    font-size: 0.65rem;
  }
}
