/* 3D Printing Modal */
.printing-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.printing-modal-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.printing-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.printing-close-btn:hover {
  color: #333;
}

.print-step h2 {
  margin-top: 0;
  color: #333;
  font-size: 1.3em;
}

/* Preview */
.print-preview {
  text-align: center;
  margin: 16px 0;
}

.print-preview-placeholder {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 30px;
  color: #999;
}

/* Filament swatches */
.filament-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.filament-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}

.filament-swatch:hover {
  border-color: #999;
}

.filament-swatch.active {
  border-color: #333;
  box-shadow: 0 0 0 2px white, 0 0 0 4px #333;
}

.filament-swatch[title]::after {
  content: attr(title);
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7em;
  white-space: nowrap;
  display: none;
}

.filament-swatch:hover[title]::after {
  display: block;
}

.loading-text {
  color: #999;
  font-style: italic;
}

/* Form */
.print-form-group {
  margin-bottom: 12px;
}

.print-form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 0.9em;
  color: #555;
}

.print-form-group input,
.print-form-group select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95em;
  box-sizing: border-box;
}

.print-form-group input:focus,
.print-form-group select:focus {
  outline: none;
  border-color: mediumpurple;
  box-shadow: 0 0 0 2px rgba(147, 112, 219, 0.2);
}

.print-form-row {
  display: flex;
  gap: 8px;
}

.print-form-row .print-form-group {
  flex: 1;
}

/* Buttons */
.print-btn {
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95em;
  background: white;
  transition: background 0.2s;
}

.print-btn:hover {
  background: #f5f5f5;
}

.print-btn-primary {
  background: mediumpurple;
  color: white;
  border-color: mediumpurple;
}

.print-btn-primary:hover {
  background: #7b5cb8;
}

.print-btn-primary:disabled {
  background: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
}

.print-step-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

/* Summary table */
.print-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.print-summary-table td {
  padding: 8px 4px;
  border-bottom: 1px solid #eee;
}

.print-summary-table td:last-child {
  text-align: right;
}

.print-summary-total td {
  border-top: 2px solid #333;
  border-bottom: none;
  font-size: 1.1em;
}

.print-eta {
  color: #666;
  font-size: 0.9em;
  text-align: center;
  margin: 12px 0;
}

/* Orders page */
.orders-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

.orders-page h1 {
  color: #333;
  margin-bottom: 20px;
}

.order-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  background: white;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.order-id {
  font-weight: bold;
  color: #333;
}

.order-status {
  padding: 4px 10px;
  border-radius: 12px;
  color: white;
  font-size: 0.8em;
  font-weight: bold;
}

.order-details p {
  margin: 4px 0;
  font-size: 0.9em;
  color: #555;
}

.order-tracking {
  color: #5cb85c !important;
  font-weight: bold;
}

/* Spinner (reuse existing if available) */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid mediumpurple;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

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