/**
 * Spixels Workshop Agenda - Modern Styling
 * Inspired by shadcn/ui design system
 */

/* Container */
.spxs-workshop-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Table wrapper met shadow en rounded corners */
.spxs-table-wrapper {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* Table styling */
.spxs-workshop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

/* Table header */
.spxs-workshop-table thead {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.spxs-workshop-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0.025em;
}

/* Table body */
.spxs-workshop-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.15s ease;
}

.spxs-workshop-table tbody tr:last-child {
  border-bottom: none;
}

.spxs-workshop-table tbody tr:hover {
  background-color: #f9fafb;
}

.spxs-workshop-table td {
  padding: 1rem;
  color: var(--base-3);
  vertical-align: middle;
}

/* Workshop titel - bold */
.spxs-workshop-table td:first-child {
  font-weight: 600;
  color: var(--base-3);
}

/* Badge voor beschikbaarheid */
.spxs-stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.spxs-stock-available {
  background-color: #dcfce7;
  color: #166534;
}

.spxs-stock-low {
  background-color: #fef3c7;
  color: #92400e;
}

.spxs-stock-full {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Button styling */
.spxs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.spxs-btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.spxs-btn-primary:hover {
  background-color: var(--accent);
  opacity: 0.9;
  color: #ffffff;
}

.spxs-btn-disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

/* Prijs styling */
.spxs-price {
  font-weight: 600;
  color: var(--base-3);
}

/* Responsive design */
@media (max-width: 768px) {
  .spxs-workshop-table {
    font-size: 0.8125rem;
  }
  
  .spxs-workshop-table th,
  .spxs-workshop-table td {
    padding: 0.625rem 0.75rem;
  }
  
  /* Stack op mobile indien nodig */
  .spxs-workshop-table thead {
    display: none;
  }
  
  .spxs-workshop-table,
  .spxs-workshop-table tbody,
  .spxs-workshop-table tr,
  .spxs-workshop-table td {
    display: block;
    width: 100%;
  }
  
  .spxs-workshop-table tr {
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
  }
  
  .spxs-workshop-table td {
    padding: 0.5rem 0;
    border: none;
    position: relative;
    padding-left: 40%;
  }
  
  .spxs-workshop-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 35%;
    padding-right: 10px;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.75rem;
    text-transform: uppercase;
  }
  
  .spxs-workshop-table td:first-child {
    padding-left: 0;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .spxs-workshop-table td:first-child:before {
    display: none;
  }
}

/* Empty state */
.spxs-empty-state {
  padding: 3rem 1rem;
  text-align: center;
  color: #6b7280;
}

.spxs-empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.spxs-empty-state-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Loading state animation */
@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

.spxs-loading {
  animation: shimmer 1.2s ease-in-out infinite;
  background: linear-gradient(to right, #f3f4f6 0%, #e5e7eb 20%, #f3f4f6 40%, #f3f4f6 100%);
  background-size: 800px 104px;
}