body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.timeline {
  padding: 1rem;
  padding-bottom: 240px;
}

.time-slot {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.time-label {
  width: 80px;
  color: #666;
  font-weight: 500;
}

.booking-area {
  flex: 1;
  min-height: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  background: #f5f5f5;
  border-radius: 4px;
}

.user-list {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 1rem;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-card {
  padding: 8px 12px;
  background: #2196f3;
  color: white;
  border-radius: 20px;
  cursor: move;
  user-select: none;
  transition: transform 0.1s;
}

.user-card.booked {
  background: #4caf50; /* 绿色 */
}

.user-card.unbooked {
  background: #2196f3; /* 默认蓝色 */
}

.user-card:active {
  transform: scale(1.1);
}
/* 模态框样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  width: 300px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-content input {
  width: 100%;
  padding: 8px;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
}

.modal-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal-actions button:first-child {
  background: #ff4444;
  color: white;
}

.modal-actions button:last-child {
  background: #2196f3;
  color: white;
}

/* 添加按钮 */
.add-button {
  padding: 12px 24px;
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  cursor: pointer;
}
