/* NUTEP.CSS - Nutep integration styles */

/* Nutep slot badge */
.nutep-slot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #93c5fd;
}

.nutep-slot-badge.booked {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}

.nutep-slot-badge.expired {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

/* Nutep modal */
.nutep-modal-content {
  max-height: 600px;
  overflow-y: auto;
}

.nutep-search-form {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.nutep-search-form input,
.nutep-search-form select {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
}

.nutep-search-form button {
  padding: 8px 16px;
  background: var(--indigo);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.nutep-search-form button:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.nutep-search-form button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

/* Nutep slots list */
.nutep-slots-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nutep-slot-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}

.nutep-slot-item:hover {
  border-color: var(--indigo);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.nutep-slot-item.selected {
  border-color: var(--indigo);
  background: #eff6ff;
}

.nutep-slot-info {
  flex: 1;
}

.nutep-slot-time {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.nutep-slot-details {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
}

.nutep-slot-detail {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nutep-slot-actions {
  display: flex;
  gap: 8px;
}

.nutep-slot-btn {
  padding: 8px 16px;
  border: 1px solid var(--indigo);
  background: white;
  color: var(--indigo);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.nutep-slot-btn:hover {
  background: var(--indigo);
  color: white;
}

.nutep-slot-btn.primary {
  background: var(--indigo);
  color: white;
}

.nutep-slot-btn.primary:hover {
  background: #4f46e5;
}

/* Nutep loading */
.nutep-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--muted);
}

.nutep-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top-color: var(--indigo);
  border-radius: 50%;
  animation: nutep-spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes nutep-spin {
  to { transform: rotate(360deg); }
}

/* Nutep empty state */
.nutep-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--muted);
  text-align: center;
}

.nutep-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* Nutep error */
.nutep-error {
  padding: 16px;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #991b1b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nutep-error svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Manual mode toggle */
.nutep-manual-mode {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  margin-bottom: 20px;
}

.nutep-manual-mode input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.nutep-manual-mode label {
  font-size: 14px;
  font-weight: 600;
  color: #78350f;
  cursor: pointer;
}

/* Nutep info in order card */
.nutep-info-card {
  padding: 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  margin-top: 12px;
}

.nutep-info-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #0c4a6e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.nutep-info-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nutep-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.nutep-info-label {
  color: #0369a1;
  font-weight: 600;
}

.nutep-info-value {
  color: #0c4a6e;
}
