/* ==========================================================================
   HUTECH IT Got Talent - Giao diện các trang con công khai (Subpages)
   Nạp cho Đăng ký (/dangky), Mã truy cập, và Danh sách đội thi công khai
   ========================================================================== */

/* Ô nhập mã bảo mật trên trang danh sách có mật khẩu */
.letter-spacing-2 {
  letter-spacing: 2px;
  font-size: 1.2rem;
}

/* Đồng hồ đếm ngược trang chưa mở cổng đăng ký & biểu mẫu đăng ký */
.countdown-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
}

.countdown-item {
  text-align: center;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 80px;
}

/* Dùng màu Navy thương hiệu thay cho màu xanh Bootstrap mặc định */
.countdown-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--gt-navy);
  display: block;
}

.countdown-label {
  font-size: 0.9rem;
  color: var(--gt-muted);
}

.reg-countdown {
  gap: 15px;
}

.reg-countdown-box {
  min-width: 80px;
}

.reg-form-container {
  max-width: 960px;
}

/* Chuyển bảng Danh sách đội thành dạng thẻ trên di động */
@media (max-width: 767.98px) {
  .danhsach-mobile-table thead {
    display: none;
  }

  .danhsach-mobile-table tbody tr {
    display: block;
    margin-bottom: 1.25rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  }

  .danhsach-mobile-table tbody td {
    display: block;
    text-align: left !important;
    border: none;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .danhsach-mobile-table tbody td:last-child {
    border-bottom: none;
  }

  .danhsach-mobile-table tbody td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--gt-muted);
    display: inline-block;
    margin-right: 0.35rem;
  }
}
