/* Add this to your style.css - Using YOUR exact CSS */

/* Your existing card CSS from the code you sent */
.customer-dashboard-service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.customer-dashboard-service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.dashboard-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.dashboard-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.customer-dashboard-service-card:hover .dashboard-card-image {
  transform: scale(1.05);
}

.dashboard-card-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dashboard-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1rem;
}

.dashboard-card-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.dashboard-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  object-fit: cover;
  border: 2px solid var(--card-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.dashboard-card-header-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dashboard-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* STAR RATING - From your CSS */
.dashboard-card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dashboard-card-rating svg {
  width: 14px;
  height: 14px;
  fill: #fbbf24;
  color: #fbbf24;
}

.dashboard-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dashboard-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.dashboard-card-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dashboard-card-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.dashboard-card-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.dashboard-card-detail-item svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

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

.dashboard-card-price {
  color: var(--primary) !important;
  font-weight: 700;
}

.dashboard-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: auto;
}

/* BUTTONS from your CSS */
.dashboard-card-actions button {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  border: 1px solid transparent;
}

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

.btn-service-primary:hover {
  background: var(--primary-dark);
}

.btn-service-secondary {
  background: white;
  border-color: var(--border-light);
  color: var(--text-primary);
}

.btn-service-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--border-medium);
}

.dashboard-card-actions button svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  stroke-width: 2;
}

/* Responsive adjustments from your CSS */
@media (min-width: 64rem) {
  .dashboard-card-details-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-card-detail-item:last-child {
      grid-column: span 2;
  }
}

/* Add to your CSS */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #16a34a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.htmx-indicator {
  opacity: 0;
  transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator {
  opacity: 1;
}

.htmx-request.htmx-indicator {
  opacity: 1;
}