body {
    font-family: Arial;
    background: #ffffff;
    margin: 0;
}

.header {
    text-align: center;
    margin: 20px auto;
}

.logo {
    height: 60px;
    object-fit: contain;
}


.container {
    width: 100%;
    max-width: 100%; /* loại bỏ giới hạn cũ */
    padding: 0 20px; /* optional: padding 2 bên */
    margin: 0 auto;    
    
}

h1 {
    text-align: center;
}

.step {
    margin-top: 20px;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    padding: 10px 14px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.btn:hover {
    background: #1877f2;
    color: white;
}

.btn.active {
    background: #1877f2;
    color: white;
}

.result {
    margin-top: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
}

/* table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; 
} */

.result table {
    width: 100%;
    table-layout: auto; /* hoặc fixed nếu muốn cột cố định */
}

th, td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    font-size: 13px;
}

.table-wrapper table th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
}

.table-wrapper {
    border: 1px solid #ccc;
    max-height: 500px;
    overflow-y: auto;
}

/* Mobile */
@media (max-width: 768px) {
    .table-wrapper {
        max-height: 600px;
    }
}
@media (max-width: 1024px) {
    .table-wrapper {
        max-height: 900px;
    }
}

/* ===== COLUMN WIDTH ===== */
.col-name {
    width: 150px;
    word-break: break-word;
}

.col-flight {
    width: 150px;
}

.col-price {
    width: 80px;
    white-space: nowrap;
}

.col-free {
    width: 60px;
    text-align: center;
}

.col-reserved {
    width: 60px;
    text-align: center;
}

.col-pdf {
    width: 60px;
    text-align: center;
}

.price-note {
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.5;
    background: #ffe9d3;
    padding: 10px;
    border-radius: 6px;
}


/* ===== UI IMPROVE ===== */
.result{
    overflow-x: auto;
}
.result table tr:hover {
    background: #f1f5ff;
}

.result a {
    text-decoration: none;
}

.result a:hover {
    text-decoration: underline;
}

.loading {
    text-align: center;
    margin-top: 20px;
}

.loading-box {
    text-align: center;
    padding: 30px;
    font-size: 16px;
    color: #666;
}


.result.auto-highlight {
    border: 2px solid #1877f2;
    animation: fadeHighlight 1s ease;
}

@keyframes fadeHighlight {
    from { background: #e7f0ff; }
    to { background: white; }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.btn-share {
    padding: 6px 10px;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.btn-share:hover {
    opacity: 0.9;
}

/* ===== FOOTER FIXED ===== */
.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #ddd;
    display: flex;
    z-index: 999;
}

.btn-footer:last-child {
    border-right: none;
}

.btn-footer.primary {
    background: #ff5722;
    color: white;
    font-weight: bold;
}

/* tránh bị footer che nội dung */
body {
    padding-bottom: 60px;
}

/* ===== POPUP ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 300px;
    text-align: center;
}

.btn-close {
    margin-top: 10px;
    padding: 8px 12px;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-footer {
    flex: 1;
    text-align: center;
    padding: 12px 6px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase; /* 👉 IN HOA */
    border-right: 1px solid #eee;
    cursor: pointer;
    line-height: 1.4;
}

/* ===== BUTTON 1 ===== */
.btn-book {
    background: #dd0000;
    color: white;
    text-decoration: none;    
}

/* ===== BUTTON 2 ===== */
.btn-share-footer {
    background: #1877f2;
    color: white;
}

/* ===== BUTTON 3 ===== */
.btn-address {
    background: white;
    color: black;
}

/* hover nhẹ cho đẹp */
.btn-footer:hover {
    opacity: 0.9;
}