* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  color: #333;
  background: #f0f0f0;
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

.warning {
  color: #e53935;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.badge {
  background: #f5c542;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.btn {
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  padding: 10px 16px;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-primary,
.btn-blue {
  background: #1a7fe8;
  color: #fff;
}

.btn-gray {
  background: #9e9e9e;
  color: #fff;
}

.btn-sm {
  font-size: 13px;
  padding: 8px 14px;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
}

.modal-large {
  max-height: 90vh;
}

.form-item {
  margin-bottom: 16px;
}

.form-item label {
  display: block;
  margin-bottom: 8px;
}

.label-red {
  color: #e53935;
  font-size: 12px;
}

.form-item input[type='text'],
.form-item input[type='number'],
.form-item textarea,
.form-item select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
}

.form-item textarea {
  min-height: 80px;
  resize: vertical;
}

.date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.date-row input {
  width: 70px !important;
  text-align: center;
}

.radio-row {
  display: flex;
  gap: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.preview-img,
.avatar-preview {
  max-width: 120px;
  margin-top: 10px;
  border-radius: 4px;
}

.avatar-preview {
  width: 60px;
  height: 60px;
  object-fit: cover;
}
