/* Telegram Reservierung Widget - Step-Based UI */

.tr-widget {
  box-sizing: border-box;
  width: 100%;
  max-width: 600px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.6);
}

.tr-widget * { box-sizing: border-box; }

.tr-widget h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 600;
}

.tr-step {
  margin-bottom: 20px;
}

.tr-step.tr-hidden {
  display: none;
}

.tr-step-label {
  display: block;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
  opacity: 0.95;
}

.tr-step input[type="date"] {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.35);
  color: inherit;
  font-size: 16px;
}

.tr-time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.tr-time-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 14px;
  border: 2px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.35);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.tr-time-slot:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.3);
  background: rgba(2, 6, 23, 0.5);
}

.tr-time-slot:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tr-time-slot.tr-available {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
}

.tr-time-slot.tr-available:hover:not(:disabled) {
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.15);
}

.tr-time-slot.tr-low {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
}

.tr-time-slot.tr-low:hover:not(:disabled) {
  border-color: rgba(251, 191, 36, 0.6);
  background: rgba(251, 191, 36, 0.15);
}

.tr-time-slot.tr-full {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.06);
}

.tr-time {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.tr-status {
  font-size: 13px;
  opacity: 0.8;
}

.tr-loading {
  text-align: center;
  opacity: 0.7;
  font-style: italic;
  padding: 12px;
}

.tr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tr-field label {
  font-size: 13px;
  opacity: 0.85;
}

.tr-field input {
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.35);
  color: inherit;
  font-size: 15px;
}

.tr-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.tr-actions button {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tr-actions button[data-action="reserve"] {
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
}

.tr-actions button[data-action="reserve"]:hover {
  background: rgba(34, 197, 94, 1);
}

.tr-actions button[data-action="back"] {
  background: rgba(100, 100, 100, 0.5);
  color: #fff;
}

.tr-actions button[data-action="back"]:hover {
  background: rgba(120, 120, 120, 0.7);
}

.tr-note,
.tr-error {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
}

.tr-note:not(:empty) {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.tr-error:not(:empty) {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
