/* Dashboard Page Styles */
.dashboard-page {
  padding: 2rem 0 5rem;
}

.nav-user-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-right: 0.75rem;
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dashboard-header p {
  color: var(--color-text-muted);
}

/* Summary Cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.summary-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.summary-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.summary-icon-primary {
  background: #ecfdf5;
  color: var(--color-primary);
}

.summary-icon-success {
  background: #ecfdf5;
  color: var(--color-success);
}

.summary-icon-warning {
  background: #fef3c7;
  color: var(--color-warning);
}

.summary-icon-muted {
  background: var(--color-bg-alt-2);
  color: var(--color-text-light);
}

.summary-content {
  flex: 1;
}

.summary-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.summary-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Progress Section */
.progress-section {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.progress-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.progress-percentage {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.progress-bar-large {
  height: 12px;
  background: var(--color-bg-alt-2);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar-large .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 9999px;
  transition: width 0.5s ease;
}

.progress-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Removals Section */
.removals-section {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.removals-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.removals-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.removals-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: var(--color-bg-alt-2);
  color: var(--color-text);
}

.tab-btn.active {
  background: var(--color-primary);
  color: white;
}

/* Removals List */
.removals-list {
  display: flex;
  flex-direction: column;
}

.removal-item {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.2s ease;
  align-items: center;
}

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

.removal-item:hover {
  background: var(--color-bg-alt);
}

.removal-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.removal-broker-icon {
  width: 40px;
  height: 40px;
  background: var(--color-bg-alt-2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.removal-details {
  flex: 1;
  min-width: 0;
}

.removal-broker-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.removal-broker-domain {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.removal-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  justify-content: flex-end;
  min-width: 0;
}

.removal-status .removal-progress {
  flex-shrink: 0;
}

.removal-status .status-badge {
  flex-shrink: 0;
}

.status-badge {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.status-badge.completed {
  background: #ecfdf5;
  color: var(--color-success);
}

.status-badge.in-progress {
  background: #fef3c7;
  color: var(--color-warning);
}

.status-badge.pending {
  background: var(--color-bg-alt-2);
  color: var(--color-text-muted);
}

.status-badge.failed {
  background: #fef2f2;
  color: var(--color-danger);
}

.removal-actions {
  display: flex;
  gap: 0.5rem;
}

.removal-actions .btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

/* Progress Bar in Removal Item */
.removal-progress {
  width: 120px;
  height: 6px;
  background: var(--color-bg-alt-2);
  border-radius: 9999px;
  overflow: hidden;
}

.removal-progress-fill {
  height: 100%;
  background: var(--color-warning);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Empty State */
.removals-empty {
  padding: 4rem 2rem;
  text-align: center;
}

.removals-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
}

.removals-empty h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.removals-empty p {
  color: var(--color-text-muted);
  max-width: 300px;
  margin: 0 auto 1.5rem;
}

/* Subscription Banner */
.subscription-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  color: white;
}

.banner-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.banner-content p {
  opacity: 0.9;
}

.subscription-banner .btn-primary {
  background: white;
  color: var(--color-primary);
  flex-shrink: 0;
}

.subscription-banner .btn-primary:hover {
  background: var(--color-bg-alt);
}

/* Responsive */
@media (max-width: 1024px) {
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-page {
    padding: 1.5rem 0 3rem;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .dashboard-header .btn {
    width: 100%;
    justify-content: center;
  }

  .summary-cards {
    grid-template-columns: 1fr;
  }

  .summary-card {
    padding: 1.25rem;
  }

  .summary-value {
    font-size: 1.5rem;
  }

  .removal-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .removal-status {
    justify-content: flex-start;
  }

  .subscription-banner {
    flex-direction: column;
    text-align: center;
  }

  .subscription-banner .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Loading State */
.removals-loading {
  padding: 4rem 2rem;
  text-align: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border: 4px solid var(--color-bg-alt-2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Filter visibility */
.removal-item.hidden {
  display: none;
}
