/* public/css/the-ve-dich.css — kiểu dáng cho trang tạo thẻ về đích */

.khung-the-ve-dich {
  max-width: 900px;
  margin: 32px auto 64px auto;
  padding: 0 16px;
}

.luoi-the-ve-dich {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 768px) {
  .luoi-the-ve-dich {
    grid-template-columns: 1fr;
  }
}

.cot-form-the {
  background: #ffffff;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(8, 32, 84, 0.04);
}

.cot-xem-truoc {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.khung-canvas-the {
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(8, 32, 84, 0.2);
  background: #082054;
  position: relative;
}

#canvas-the {
  display: block;
  width: 100%;
  height: auto;
}

#img-the-preview {
  display: none;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.nut-thao-tac-the {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.nut-tai-the,
.nut-chia-se {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.nut-tai-the {
  background: var(--teal-500, #00a9cc);
  color: #ffffff;
}

.nut-tai-the:hover {
  background: #0087a3;
}

.nut-chia-se {
  background: var(--navy-800, #082054);
  color: #ffffff;
}

.nut-chia-se:hover {
  background: #0c2d74;
}

.chu-huong-dan-iphone {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--gray-500, #6b7280);
  text-align: center;
}

/* Nút tạo thẻ chính */
.nut-tao-the-chinh {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--teal-500, #00a9cc), #007088);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 12px;
  transition: opacity 0.2s ease;
}

.nut-tao-the-chinh:hover {
  opacity: 0.92;
}

.nut-tao-the-chinh:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
