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

body {
    background-color: #e9e9e9;
    /* 🚫 Chặn select text trên mobile */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;          /* Standard */
    -webkit-touch-callout: none; /* iOS Safari - chặn long-press menu */
}

/* ✅ Cho phép select text trong input, textarea */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

/* Khối nội dung chính */
.content {
    max-width: 550px;
    margin: 0 auto;
    padding: 5px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 100vh;
}


/* 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: 10px;
    margin: 4px 6px 0 0;
    border-radius: 10px;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive cho bảng trên màn hình nhỏ */
@media (max-width: 480px) {

    table th,
    table td {
        padding: 8px;
        font-size: 16px;
    }
}

#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: #ffc4c4;
    /* màu vàng nhạt kiểu sticky note */
    border: 2px solid #fb2d2d;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    padding: 20px;
}

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

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

#closePopupBtn {
    padding: 8px 16px;
    font-size: 20px;
    font-weight: bold;
    background-color: #fb2d2d;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#closePopupBtn:hover {
    background-color: #b50505;
}