/* =========================================================================
   NÚT TẠO BÀN TRÊN ĐẦU TRANG LOBBY (THEME 0 - CUNG ĐÌNH HUẾ / DEFAULT)
   ========================================================================= */
.lobby-header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; /* Căn giữa 2 nút tạo bàn */
    gap: 16px !important;
    margin: 10px 0 25px 0 !important;
    flex-wrap: wrap !important;
    text-align: center !important;
    width: 100% !important;
}

.btn-lobby-create {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 11px 26px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.2, 1, 0.3, 1) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    outline: none !important;
    text-decoration: none !important;
}

/* Nút Tạo bàn (Theme 0 - Đỏ Sơn Son Cung Đình, viền vàng đồng) */
.btn-lobby-create.btn-normal {
    background: linear-gradient(135deg, #8C1A1B 0%, #6E1213 100%) !important;
    border: 1px solid #B88E40 !important;
    color: #FFFDE7 !important;
    box-shadow: 0 4px 14px rgba(140, 26, 27, 0.35) !important;
}

.btn-lobby-create.btn-normal:hover {
    background: linear-gradient(135deg, #A82325 0%, #8C1A1B 100%) !important;
    border-color: #E5A93B !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(140, 26, 27, 0.5) !important;
    color: #FFFFFF !important;
}

/* Nút Tạo bàn Admin (Theme 0 - Vàng Hoàng Tộc / Vàng Đồng Cổ, chữ gỗ mun) */
.btn-lobby-create.btn-admin {
    background: linear-gradient(135deg, #B88E40 0%, #8C6A28 100%) !important;
    border: 1px solid #E5A93B !important;
    color: #2B1810 !important;
    box-shadow: 0 4px 14px rgba(184, 142, 64, 0.35) !important;
}

.btn-lobby-create.btn-admin i {
    color: #2B1810 !important;
}

.btn-lobby-create.btn-admin:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #B88E40 100%) !important;
    border-color: #FFFDE7 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(229, 169, 59, 0.5) !important;
    color: #1A0F0A !important;
}

.btn-lobby-create i {
    font-size: 16px !important;
}

/* Modal Overlay & Dialog Container */
#createRoomModal.fixi-idpw-modal {
    display: none;
    position: fixed !important;
    z-index: 9999999 !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(15, 8, 5, 0.82) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    overflow-y: auto !important;
}

#createRoomModal.show,
#createRoomModal[style*="display: block"],
#createRoomModal[style*="display: flex"] {
    display: flex !important;
}

#createRoomModal .fixi-idpw-dialog {
    position: relative !important;
    background: var(--fixi-modal-body-bg, #ffffff) !important;
    border-radius: 0 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    border: 2px solid var(--fixi-modal-border, #E5A93B) !important;
    overflow: hidden !important;
    max-width: 460px !important;
    width: 100% !important;
    margin: auto !important;
    box-sizing: border-box !important;
    animation: fixiZoomIn 0.25s cubic-bezier(0.2, 1, 0.3, 1);
}

#createRoomModal .fixi-idpw-header {
    background: var(--fixi-modal-header-bg, linear-gradient(135deg, #2B1810 0%, #8C1A1B 100%)) !important;
    color: var(--fixi-modal-header-color, #FFFDE7) !important;
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 2px solid var(--fixi-modal-header-border, #E5A93B) !important;
    box-sizing: border-box !important;
}

#createRoomModal .fixi-idpw-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #FFFDE7 !important;
    margin: 0 !important;
    letter-spacing: 0.3px !important;
}

#createRoomModal .fixi-idpw-close {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #FFFDE7 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

#createRoomModal .fixi-idpw-close:hover {
    background: rgba(231, 76, 60, 0.9) !important;
    border-color: #e74c3c !important;
    transform: rotate(90deg) !important;
}

/* Modal Form styling */
.create-room-modal-body {
    padding: 22px 24px !important;
    background: var(--fixi-modal-body-bg, #ffffff) !important;
    color: var(--fixi-modal-body-color, #222222) !important;
}

.create-room-modal-body .form-group {
    margin-bottom: 16px !important;
}

.create-room-modal-body label {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    margin-bottom: 6px !important;
    color: inherit !important;
}

.create-room-modal-body input.form-control {
    width: 100% !important;
    height: 40px !important;
    border-radius: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.18) !important;
    background: #ffffff !important;
    color: #222222 !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.create-room-modal-body input.form-control:focus {
    border-color: #B88E40 !important;
    box-shadow: 0 0 0 3px rgba(184, 142, 64, 0.25) !important;
    outline: none !important;
}

.create-room-time-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
}

.create-room-modal-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin-top: 20px !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.create-room-modal-footer .btn-cancel {
    padding: 9px 18px !important;
    border-radius: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    background: #f1f1f1 !important;
    color: #444444 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.create-room-modal-footer .btn-cancel:hover {
    background: #e4e4e4 !important;
    color: #111111 !important;
}

.create-room-modal-footer .btn-submit {
    padding: 9px 24px !important;
    border-radius: 0 !important;
    border: 1px solid #B88E40 !important;
    background: linear-gradient(135deg, #8C1A1B 0%, #6E1213 100%) !important;
    color: #FFFDE7 !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 4px 12px rgba(140, 26, 27, 0.3) !important;
    transition: all 0.2s !important;
}

.create-room-modal-footer .btn-submit:hover {
    background: linear-gradient(135deg, #A82325 0%, #8C1A1B 100%) !important;
    border-color: #E5A93B !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(140, 26, 27, 0.45) !important;
}

@media (max-width: 600px) {
    .create-room-time-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .lobby-header-actions {
        justify-content: stretch !important;
    }
    .btn-lobby-create {
        flex: 1 1 100% !important;
        justify-content: center !important;
    }
}

/* =========================================================================
   RESET KHUNG CHỨA TRANG LOBBY (PHẲNG - BỎ NỀN TRẮNG VÀ BOX-SHADOW THÔ)
   ========================================================================= */
.main-content {
    margin-top: 10px !important;
    margin-bottom: 30px !important;
}

.main-content .post,
.main-content .single-post,
.main-content .post-inner,
.main-content .page-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* =========================================================================
   QUY HOẠCH PHẲNG CHIA 3 CỘT TỐC ĐỘ SẢNH CHỜ CHỌN BÀN
   ========================================================================= */
.lobby-speed-grid-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* Chia đều 3 cột bằng nhau */
    gap: 20px !important;
    width: 100% !important;
    margin-bottom: 30px !important;
    box-sizing: border-box !important;
}

/* =========================================================================
   TINH CHỈNH TIÊU ĐỀ 3 CỘT TỐC ĐỘ PHONG CÁCH CUNG ĐÌNH HUẾ (LIGHT MODE)
   ========================================================================= */
.speed-column-header {
    width: 100% !important;
    padding: 10px 0 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    text-align: center !important;
    border-radius: 0 !important;
    margin-bottom: 20px !important;
    letter-spacing: 4px !important; /* Giãn chữ uy nghiêm */
    
    /* Sử dụng Flexbox để tạo cấu trúc hai đường chỉ đồng chầu vào chữ ở giữa */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
}

/* TẠO HAI ĐƯỜNG CỦA ĐẠI TỰ ĐỐI XỨNG BẰNG PSEUDO-ELEMENT (SIÊU NHẸ) */
.speed-column-header::before,
.speed-column-header::after {
    content: "" !important;
    flex-grow: 1 !important; /* Tự động dãn đều ra hai biên container */
    height: 1px !important;
}

/* CỘT 1: SIÊU CHỚP - Sắc nâu gỗ trắc nền trầm, đường chỉ thanh thoát */
.col-bullet { 
    color: #2B1810 !important; 
}
.col-bullet::before,
.col-bullet::after {
    background: linear-gradient(to var(--direction, right), transparent, rgba(43, 24, 16, 0.3)) !important;
    border-bottom: 1px dashed rgba(43, 24, 16, 0.2) !important; /* Đường chỉ đứt tinh tế */
}
.col-bullet::after { --direction: left; }

/* CỘT 2: CHỚP - Sắc đỏ sơn son đại nội, điểm nhấn hai vạch chỉ đồng đúc vàng */
.col-blitz { 
    color: #8C1A1B !important; 
    text-shadow: 0.5px 0.5px 0px rgba(184, 142, 64, 0.2) !important;
}
.col-blitz::before,
.col-blitz::after {
    /* Đường chỉ kép mô phỏng viền tranh khảm xà cừ Đại Nội */
    height: 3px !important;
    border-top: 1px solid #B88E40 !important;
    border-bottom: 1px solid #B88E40 !important;
    background: transparent !important;
    opacity: 0.6 !important;
}

/* CỘT 3: NHANH - Sắc vàng thau đồng cổ tinh tế */
.col-rapid { 
    color: #B88E40 !important; 
}
.col-rapid::before,
.col-rapid::after {
    background: linear-gradient(to var(--direction, right), transparent, rgba(184, 142, 64, 0.4)) !important;
}
.col-rapid::after { --direction: left; }

.speed-column-box {
    background: transparent !important;
    border: none !important;  
    border-radius: 0 !important;
    padding: 0 4px !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 420px !important;
    box-shadow: none !important;
}

/* Vùng chứa các item phòng bên trong mỗi cột */
.speed-room-container {
    display: flex !important;
    flex-direction: column !important; /* Các phòng xếp hàng dọc nương theo cột */
    gap: 15px !important;
    width: 100% !important;
    flex-grow: 1 !important;
}

.room_item {
    width: 100% !important;
    margin: 0 !important;   
}

/* ĐỒNG BỘ RESPONSIVE: Khi trên Mobile nhỏ thì xếp chồng 3 cột thành hàng dọc */
@media (max-width: 768px) {
    .lobby-speed-grid-wrapper {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .speed-column-box {
        min-height: initial !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .speed-room-container {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .room_item {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}