$primary-blue: #1b64f2;
$muted: #6b7280;
$border: #e5e7eb;
$surface: #fff;
$shadow: 0 15px 40px rgba(15, 23, 42, 0.08);

:host {
  display: block;
}

.dashboard-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  padding: 1.25rem 2rem 0;
  max-width: 1400px;
  margin: 0 auto;

  @media (max-width: 768px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1rem;
  }
}

.tab-button {
  border: 1px solid $border;
  border-radius: 16px;
  background: $surface;
  padding: 0.8rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: $muted;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);

  .icon {
    display: inline-flex;
    padding: 0.3rem;
    border-radius: 10px;
    background: rgba(27, 100, 242, 0.08);
    color: $primary-blue;

    svg {
      width: 18px;
      height: 18px;
    }
  }

  &:hover {
    border-color: rgba(27, 100, 242, 0.5);
    color: $primary-blue;
    box-shadow: $shadow;
  }

  &.active {
    border-color: transparent;
    background: linear-gradient(135deg, #1b64f2, #6a8bff);
    color: #fff;
    box-shadow: $shadow;

    .icon {
      background: rgba(255, 255, 255, 0.2);
      color: #fff;
    }
  }
}

.tab-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  min-width: 26px;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #f97316;
  color: #fff;
  text-align: center;
  font-weight: 700;
}

