html, body, div, span, applet, object, iframe,
p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/*CSS All*/
:root 
{
    --primary-color: #23ad10;
    --black-color: #23292c;
    --white-color: #fff;
    --text-color: #777;
}

body
{

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/*Header*/
/*Navbar*/
#nav
{
	padding: 5px;
	background-color: var(--white-color);
	box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.1);
}

#nav .logo
{
    font-family: "Zilla Slab", sans-serif;
    font-size: 25px;
    font-weight: bolder;
    text-decoration: none;
    color: var(--black-color);
}

#nav .logo i
{
    color: var(--primary-color);
}

#nav ul li a
{
    color: var(--black-color);
    font-size: 16px;
    line-height: 16px;
    padding: 10px 12px;  
    margin: 16px 8px;
}

#nav ul li .active
{
    color: var(--white-color);
    background: var(--primary-color);
    border-radius: 5px;
}

#nav ul li a:hover
{
    color: var(--white-color);
    background: var(--primary-color);
    border-radius: 5px;
}

#nav .icons i,
#nav .icons div
{
    cursor: pointer;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 14px;
    border-radius: 50%;
    color: var(--black-color);
    background-color: #eee;
    margin-left: 5px;
}

#nav .icons i:hover,
#nav .icons div:hover
{
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: rotate(360deg);
}

#nav .tab-active
{
    color: var(--primary-color);
}

.modal-search .modal-sch-main
{
    border-radius: 10px;
}

.modal-search .search-btn
{
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.modal-search .search-btn i
{
    color: var(--white-color);
}

.modal-search .search-btn:hover
{
    opacity: 0.8;
}

/*Back to top*/
#myBtn 
{
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
}
 
#myBtn:hover 
{
    opacity: 0.8;
}

/*Main*/
/*Banner*/
.page-banner
{
    padding: 150px 0 75px;
    background: url("../img/Banners/page-ban.jpg") center center no-repeat;
    background-size: cover;
}

.page-banner h1
{
    color: var(--white-color);
}

.page-banner p
{
    font-size: 22px;
    color: #999999;
}

.page-banner h1,
.page-banner p
{
    text-align: left;
    margin-bottom: 20px;
}

.page-banner-list
{
    margin: 16px 0;
}

.page-banner-list li
{
    list-style: none;
    display: inline;
}

.page-banner-list li a
{
    color: var(--text-color);
    font-size: 15px;
    text-decoration: none;
}

.page-banner-list li a:hover
{
    opacity: 0.8;
}

.page-banner-list i
{
    color: var(--text-color);
    font-size: 12px;
    padding: 0 2px;
}

/*Main*/
#about-content
{
    margin: 50px 0 80px 0;
}

#about-content .img-1 img
{
    width: 100%;
    border-radius: 10px;
}

#about-content .ab-1 span
{
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 20px;
}

#about-content .ab-1 p
{
    font-size: 16px;
    margin: 20px 0;
    line-height: 1.6;
    color: var(--text-color);
}

#about-content .header-2
{
    text-align: center;
    margin-top: 50px;
    margin-bottom: 15px;
}

#about-content h5
{
    text-align: center;
    margin-top: 20px;
}

#about-content .about-cheft
{
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 15px;
    text-align: justify;
}

#about-content .cheft img
{
    width: 100%;
    border-radius: 10px;
}

#about-content .p-2
{
    text-align: center;
    font-size: 22px;
    color: var(--text-color);
    margin-bottom: 20px;
}

#about-content .about-cm
{
    padding-top: 15px;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

#about-content .cm .cm-img
{
    text-align: center;
}

/*Footer*/
footer
{
    padding-top: 70px;
    background-color: #252428;
}

footer h3
{
    color: var(--white-color);
    margin-bottom: 4px;
}

footer p
{
    color: var(--text-color);
    line-height: 1.6;
    margin: 10px 0;
    text-align: justify;
}

#up-footer .ft-mt
{
    margin-bottom: 50px;
}

#up-footer .footer-socials
{
    margin-bottom: 20px;
}

#up-footer .footer-socials a
{
    font-size: 30px;
    text-decoration: none;
    color: var(--white-color);
    font-family: "Zilla Slab", sans-serif;
    font-weight: bolder;
}

#up-footer .footer-socials a i
{
    color: var(--primary-color);
    padding-right: 3px;
}

#up-footer .socials-list a i
{
    color: var(--white-color);
    padding-right: 4px;
    font-size: 16px;
}

#up-footer .socials-list a
{
    color: var(--text-color);
    text-decoration: none;
    
}

#up-footer .socials-list a:hover
{
    opacity: 0.7;
}

#up-footer h3
{
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 28px;
}

#up-footer .contact-list i
{
    width: 30px;
    display: inline-block;
}

#down-footer
{
    border-top: 1px solid #3f4141;
}

#down-footer p
{
    margin: 0;
    padding: 20px 0;
    text-align: center;
}

#down-footer a
{
    color: var(--primary-color);
}

#down-footer a:hover
{
    text-decoration: none;
    opacity: 0.8;
}

/* style-table.css - EXISTING STYLES */

/* Phần đặt bàn chung */
.menu-box {
    padding: 30px;
    background-color: var(--white-color); /* Giả định bạn muốn nền trắng */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px; /* Khoảng cách với phần trên */
    margin-bottom: 50px; /* Khoảng cách với phần dưới */
}

.menu-title {
    text-align: center;
    margin-bottom: 40px;
}

.menu-title h1 {
    font-size: 36px;
    color: var(--black-color);
    margin-bottom: 10px;
}

.menu-title p {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.6;
}

/* Các trường nhập liệu trong form */
.menu-item {
    margin-bottom: 20px; /* Khoảng cách giữa các nhóm input */
}

.menu-item label {
    display: block;
    font-size: 16px;
    color: var(--black-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.form-input,
.form-text {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    color: var(--black-color);
    box-sizing: border-box; /* Đảm bảo padding không làm tăng chiều rộng tổng thể */
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-text:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(35, 173, 16, 0.25); /* Hiệu ứng focus tương tự bootstrap */
}

.form-text {
    resize: vertical; /* Cho phép người dùng thay đổi chiều cao của textarea */
    min-height: 100px; /* Chiều cao tối thiểu cho textarea */
}

/* Phần banner và nút đặt bàn */
.reservation-banner {
    margin-top: 30px;
    text-align: center; /* Để căn giữa nút đặt bàn */
    /* THIS IS THE CHANGE: HIDE THIS INITIALLY */
    display: block; /* Sẽ được điều khiển bằng JS */
}

#submit-reservation-btn { /* Style cho nút "Đặt Bàn" */
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    font-weight: bold;
    text-transform: uppercase; /* Chữ hoa cho nút */
    letter-spacing: 1px; /* Khoảng cách giữa các chữ cái */
}

#submit-reservation-btn:hover {
    background-color: #1e9a0e; /* Màu đậm hơn khi hover */
    opacity: 0.9;
}

/* Các kiểu cho thông báo thành công/thất bại */
#reservation-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
}

#reservation-message.success {
    background-color: #d4edda; /* Nền xanh nhạt */
    color: #155724; /* Chữ xanh đậm */
    border: 1px solid #c3e6cb;
}

#reservation-message.error {
    background-color: #f8d7da; /* Nền đỏ nhạt */
    color: #721c24; /* Chữ đỏ đậm */
    border: 1px solid #f5c6cb;
}

/* NEW TABLE MAP AND LEGEND STYLES - INTEGRATED BELOW */

/* Sơ đồ bàn ăn */
#table-map-container {
    display: flex;
    flex-direction: column; /* Sắp xếp các khu vực theo chiều dọc */
    align-items: center;    /* Căn giữa các khu vực nếu chúng không chiếm hết chiều rộng */
    gap: 30px;              /* Khoảng cách giữa khu vực trong nhà và ngoài trời */
    width: 100%;            /* Đảm bảo chiếm toàn bộ chiều rộng có sẵn */
}

/* Sơ đồ bàn ăn cho từng khu vực (Khu vực trong nhà, Khu vực ngoài trời) */
.table-area {
    margin: 0; /* Loại bỏ margin đã có, để gap trong #table-map-container xử lý khoảng cách */
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    width: 100%; /* Cho phép mỗi khu vực chiếm toàn bộ chiều rộng của container cha */
    max-width: 900px; /* Giới hạn chiều rộng tối đa để không quá lớn trên màn hình rộng */
    box-sizing: border-box; /* Đảm bảo padding và border được tính vào width */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Thêm bóng đổ như hình ảnh */
    
    /* NEW: Thêm background image và màu nền mặc định */
    background-size: cover; /* Đảm bảo ảnh nền bao phủ toàn bộ khu vực */
    background-position: center; /* Căn giữa ảnh nền */
    background-repeat: no-repeat; /* Không lặp lại ảnh nền */
    min-height: 250px; /* Tăng chiều cao tối thiểu để ảnh nền hiển thị tốt */
    position: relative; /* Để có thể định vị các bàn bên trong tương đối */
}

/* Ảnh sơ đồ cho Khu vực trong nhà */
/* Thay đổi URL ảnh cho phù hợp với đường dẫn thực tế của bạn */
.table-area:nth-child(1) { /* Khu vực trong nhà, giả sử là div.table-area đầu tiên */
    background-image: url('assets/img/Banners/indoor-map.png'); /* Thay bằng đường dẫn ảnh sơ đồ trong nhà của bạn */
    background-color: #f9f9f9; /* Màu nền dự phòng */
}

/* Ảnh sơ đồ cho Khu vực ngoài trời */
/* Thay đổi URL ảnh cho phù hợp với đường dẫn thực tế của bạn */
.table-area:nth-child(2) { /* Khu vực ngoài trời, giả sử là div.table-area thứ hai */
    background-image: url('assets/img/Banners/outdoor-map.png'); /* Thay bằng đường dẫn ảnh sơ đồ ngoài trời của bạn */
    background-color: #f9f9f9; /* Màu nền dự phòng */
}

/* Điều chỉnh vị trí của các bàn trên sơ đồ nếu cần */
/* Đây là ví dụ, bạn sẽ cần điều chỉnh `top`, `left`, `right`, `bottom` cho từng bàn cụ thể */
/* Để định vị chính xác, bạn cần đặt position: absolute cho .table-seat và relative cho .table-area */
/* Tuy nhiên, với layout hiện tại dùng flexbox, việc định vị chính xác trên ảnh nền là phức tạp */
/* Nếu ảnh sơ đồ của bạn chỉ mang tính minh họa và không yêu cầu các bàn trùng khớp hoàn hảo với hình ảnh */
/* thì giữ nguyên cách định vị hiện tại của flexbox. */
/* Nếu bạn muốn định vị chính xác, bạn sẽ phải chuyển đổi layout .table-layout sang position: relative và .table-seat sang position: absolute */
/* Ví dụ: */
/*
.table-layout {
    display: block; // Chuyển từ flex sang block
    position: relative;
    height: auto; // Hoặc một chiều cao cố định lớn hơn nếu cần
    min-height: 200px; // Đảm bảo đủ không gian cho các bàn absolute
}

.table-seat {
    position: absolute; // Định vị tuyệt đối
    // Ví dụ vị trí cho bàn 1
    &[data-table-id="1"] {
        top: 20px;
        left: 30px;
    }
    // ... và các bàn khác
}
*/


.table-area h4 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--black-color);
    font-size: 2.2rem; /* Consistent with previous suggestions */
    font-weight: 600; /* Consistent with previous suggestions */
}

.table-layout {
    display: flex;
    overflow-x: auto; /* Thêm thanh cuộn ngang nếu nội dung vượt quá */
    -webkit-overflow-scrolling: touch; /* Tăng tốc độ cuộn trên thiết bị di động */
    gap: 15px; /* Khoảng cách giữa các bàn */
    padding-bottom: 10px; /* Thêm padding dưới để thanh cuộn không che mất nội dung */
    justify-content: center; /* Căn giữa các bàn */
    align-items: flex-start; /* Căn chỉnh các mục theo đầu */
}

.table-seat {
    flex-shrink: 0; /* Quan trọng: Ngăn các bàn bị co lại */
    width: 120px; /* Tăng chiều rộng để dễ nhìn hơn */
    height: 120px; /* Tăng chiều cao để dễ nhìn hơn */
    border: 2px solid; /* Sẽ được đặt màu theo trạng thái */
    text-align: center;
    line-height: 1.2; /* Điều chỉnh line-height cho text multi-line */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: var(--white-color); /* Chữ màu trắng trên nền màu bàn */
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; /* Thêm border-color vào transition */
    padding: 5px;
    font-size: 1.6rem; /* Kích thước chữ */
}

/* Hình dạng bàn */
.table-seat.square {
    border-radius: 10px; /* Hơi bo tròn góc */
}

.table-seat.circle {
    border-radius: 50%; /* Hình tròn */
}

/* Trạng thái màu sắc của bàn */
.table-available {
    background-color: #28a745; /* Màu xanh lá cây đậm hơn cho bàn trống */
    border-color: #28a745; /* Viền cùng màu nền */
}
.table-reserved {
    background-color: #dc3545; /* Màu đỏ đậm hơn cho bàn đã đặt */
    border-color: #dc3545; /* Viền cùng màu nền */
    cursor: not-allowed;
    opacity: 0.7; /* Giảm độ trong suốt cho bàn đã đặt */
}
.table-seat.selected {
    border: 4px solid #ffc107; /* Màu vàng cho bàn được chọn */
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.7); /* Bóng đổ vàng nổi bật */
}

.table-seat:hover:not(.table-reserved) { /* Hover effect only for available tables */
    transform: translateY(-3px);
    opacity: 0.9;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Slightly more prominent shadow on hover */
}


/* Chú thích màu sắc */
.table-legend {
    margin-top: 30px; /* Tăng khoảng cách từ sơ đồ */
    text-align: center;
}

.table-legend h5 {
    font-size: 1.8rem;
    margin-bottom: 15px; /* Tăng khoảng cách */
    color: var(--black-color);
}

.table-legend p {
    display: flex;
    align-items: center;
    margin-bottom: 8px; /* Tăng khoảng cách giữa các mục chú thích */
    font-size: 1.6rem;
    color: var(--text-color);
}

.legend-color-box {
    width: 28px; /* Tăng kích thước ô màu */
    height: 28px; /* Tăng kích thước ô màu */
    margin-right: 12px; /* Tăng khoảng cách */
    border: 1px solid #ccc;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Thêm bóng đổ nhẹ */
}

.legend-color-box.available {
    background-color: #28a745;
    border-color: #28a745;
}

.legend-color-box.reserved {
    background-color: #dc3545;
    border-color: #dc3545;
}

.legend-color-box.selected-table {
    background-color: #add8e6; /* Giữ màu xanh dương nhạt cho selected */
    border-color: #007bff;
}

/* Nút "Xác nhận bàn đã chọn" */
#confirm-table-selection {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 12px 30px;
    font-size: 1.8rem; /* Kích thước font lớn hơn */
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Thêm đổ bóng */
    margin: 30px auto 0 auto; /* Thêm margin auto để căn giữa */
    display: block; /* Đảm bảo nút là block để margin auto hoạt động */
}

#confirm-table-selection:hover {
    background-color: #1e9a0e;
    opacity: 0.9;
    transform: translateY(-2px); /* Hiệu ứng nổi nhẹ khi hover */
}


/* responsive adjustments */
@media (max-width: 768px) {
    .table-seat {
        width: 100px;
        height: 100px;
        font-size: 1.4rem; /* Adjusted for smaller screens */
    }
    .table-area {
        max-width: 95%; /* Giới hạn chiều rộng trên màn hình nhỏ hơn */
    }
    .table-legend p {
        font-size: 1.4rem;
    }
    .legend-color-box {
        width: 22px;
        height: 22px;
    }
    #confirm-table-selection {
        font-size: 1.6rem;
        padding: 10px 20px;
    }
}
@media (max-width: 576px) {
    .table-seat {
        width: 80px;
        height: 80px;
        font-size: 1.2rem; /* Further adjustment for very small screens */
    }
    .table-area {
        padding: 10px;
        max-width: 100%; /* Cho phép chiếm toàn bộ chiều rộng trên mobile */
    }
    .table-layout {
        justify-content: flex-start; /* Ensure scrolling on small screens */
    }
    .table-legend {
        text-align: left; /* Maybe left align on tiny screens */
    }
    .table-legend .d-flex {
        flex-direction: column; /* Stack legend items vertically */
        align-items: flex-start;
    }
    .table-legend p.mr-4 {
        margin-right: 0 !important; /* Remove horizontal margin */
        margin-bottom: 5px; /* Add vertical margin */
    }
}
/* ... giữ nguyên các style đã có ở trên ... */

/* Thêm vào cuối file style-table.css */

#start-reservation-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 15px 40px;
    font-size: 2.0rem; /* Kích thước font lớn hơn */
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Bóng đổ nhẹ */
}

#start-reservation-btn:hover {
    background-color: #1e9a0e; /* Màu đậm hơn khi hover */
    transform: translateY(-3px); /* Hiệu ứng nổi nhẹ */
    box-shadow: 0 8px 20px rgba(0,0,0,0.3); /* Bóng đổ rõ hơn khi hover */
}

/* Các style khác cho form và sơ đồ bàn đã có */
/* Đảm bảo rằng form đặt bàn và sơ đồ bàn ăn được ẩn bằng CSS nếu bạn muốn kiểm soát hoàn toàn bằng JS */
/* (Như tôi đã thêm style="display: none;" trực tiếp vào HTML ở Bước 1) */

/* Nếu bạn muốn đảm bảo .reservation-banner không hiển thị nút "Đặt Bàn" của form khi form chưa hiện */
/* bạn có thể thêm rule này. Nhưng vì cả form đã bị ẩn rồi, nó có thể không cần thiết lắm. */
/* Nếu bạn muốn ẩn nút 'Đặt Bàn' mặc định trong form và chỉ dùng nút 'Xác nhận bàn đã chọn' */
/* thì giữ nguyên style này */
/* #submit-reservation-btn {
    display: none;
} */
