/* Reset nhẹ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body tổng thể */
body  {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    color: #333;
    padding: 5px;
    user-select: none;
    -webkit-user-select: none; /* Safari, iOS */
    -ms-user-select: none;     /* IE/Edge */
}

/* khối main body chưa các nội dung chính */
.wrapper {
  max-width: 550px;
  margin: 0 auto;
}

/* Khối nội dung chính */
.content {
    max-width: 550px;
    margin: 0 auto;
    padding: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Tiêu đề */
h3 {
    margin-bottom: 10px;
    font-size: 28px;
}

h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

h1 {
    margin-bottom: 10px;
    font-size: 20px;
}

.tcenter {
  text-align: center;
}

/* Form nhập */
input[type="text"], [type="tel"], input[type="number"], input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

/* Nút bấm */
input[type="submit"], button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover,
button:hover {
    background-color: #0056b3;
}

textarea {
  width:95%;
  height:100px;
  border:1px solid #f0e68c;
  background-color:#fff9c4;
  font-size: 16px;
  padding:5px;
}

/* Thông báo lỗi */
.error-message {
    color: red;
    margin-bottom: 15px;
    text-align: center;
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 480px) {
    .content {
        padding: 15px;
    }

    h2 {
        font-size: 20px;
    }
}

/* Nút checkin/checkout nổi bật */
.button-check {
    background-color: #28a745;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 20px;
    border: none;
    border-radius: 12px;
    width: 100%;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.button-check:hover {
    background-color: #218838;
}

.btn-green {
    background-color: #28a745;
    color: white;
    font-size: 30px;
    font-weight: bold;
    padding: 20px 25px;
    border: none;
    border-radius: 8px;
    margin: 10px 0;
    width: 100%;
}

.btn-red {
    background-color: #dc3545;
    color: white;
    font-size: 30px;
    font-weight: bold;
    padding: 20px 25px;
    border: none;
    border-radius: 8px;
    margin: 10px 0;
    width: 100%;
}

.success-msg {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
    margin-top: 20px;
}
.missing-badge {
    display: inline-block;
    background-color: #ffe0e0;
    color: #d63031;
    padding: 5px 10px;
    margin: 4px 6px 0 0;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Style cho <select> */
select {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

select:focus {
    border-color: #007bff;
    background-color: #fff;
    outline: none;
}

/* Style cho bảng */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 16px;
}

table th, table td {
    padding: 5px;
    text-align: center;
    border: 1px solid #ccc;
}

table th {
    background-color: #0077b6;
    color: #fff;
    font-weight: bold;
}

table td {
    background-color: #fff;
    color: #333;
    font-size: 16px;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table td.late-warning {
    color: red;
    font-weight: bold;
}

table td.early-warning {
    color: orange;
    font-weight: bold;
}

table td.no-warning {
    color: green;
}

/* Responsive cho bảng trên màn hình nhỏ */
@media (max-width: 480px) {
    table th, table td {
        padding: 8px;
        font-size: 16px;
    }
}

/* Style cho <a> - liên kết */
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

a:active {
    color: #003366;
}

/* Style cho <a> khi là nút */
a.button-link {
    display: inline-block;
    padding: 12px 25px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

a.button-link:hover {
    background-color: #0056b3;
}

a.button-link:active {
    background-color: #003366;
}

#popupAlert {
  position: fixed;
  top: 20px; /* cách mép trên màn hình */
  left: 50%;
  transform: translateX(-50%);
  width: 95%; /* nhỏ hơn chiều ngang màn hình điện thoại */
  max-width: 450px;
  background-color: #fff9c4; /* màu vàng nhạt kiểu sticky note */
  border: 2px solid #fbc02d;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 9999;
  display: none;
}

#popupContent {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#popupMessage {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
  text-align: center;
}

#closePopupBtn {
  padding: 8px 16px;
  font-size: 16px;
  font-weight: bold;
  background-color: #fbc02d;
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#closePopupBtn:hover {
  background-color: #f9a825;
}
