body {
    font-size: 1rem; /* 增加預設字體大小 */
    font-family: 'Noto Sans TC', sans-serif;
    min-width: 100%; /* 確保body寬度與視窗寬度一致 */
    margin: 0; /* 移除預設的邊距 */
    overflow-x: auto; /* 啓用水平滾動 */
}
h2 {
    
    margin-top: .5rem; /* 增加標題上方距離 */
}

.logo {
    margin-bottom: 1rem; /* 縮小Logo與標題之間的距離 */
}
.navbar-brand{
    color: #1B308B!important; /* 設置導航欄標題顏色 */
}
footer {
    /* 添加漸變背景色 */
    /* background: linear-gradient(90deg, #0A233F, #0B7285);  */
    background-color: #1B308B; /* 設置footer背景色 */
    color: white; /* 文字顏色設置為白色以提高可讀性 */
    min-width: 100%; /* 確保footer寬度與視窗寬度一致 */
}
html, body {
    height: 100%; /* 確保html和body高度佔滿整個視窗高度 */
    margin: 0; /* 移除預設的邊距 */
}
.footer {
    height: 70px; /* 設置footer的高度，與min-height計算保持一致 */
}
.container {
    padding-top: 1rem; /* 增加內容區域上方內邊距 */
    min-height: calc(100% - 126px); /* 減去footer的高度，確保內容區域足夠高 */
}
.btn-custom {
    background-color: #0b7285; /* 設置按鈕的背景色 */
    border-color: #0b7285; /* 設置按鈕的邊框顏色 */
    color: #ffffff;
}
.btn-custom:hover {
    background-color: #0a6574; /* 設置滑鼠懸停時按鈕的背景色 */
    border-color: #0a6574; /* 設置滑鼠懸停時按鈕的邊框顏色 */
    color: #ffffff;
}

.no-border, .no-border th, .no-border td {
    border: none !important;
}

.scroll-hint {
    font-size: 16px;
    color: #666;
}

@keyframes slide {
    0% { transform: translateX(0); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

.scroll-hint i {
    display: inline-block;
    animation: slide 2s infinite;
}

.seat-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    justify-items: center;
}
/* 調整 .seat-area 樣式 */
.seat-area {
    border-radius: .25rem;
    /* 確保卡片內元素不換行 */
    flex-wrap: nowrap;
}

.seat-area h3, .seat-area p {
    margin: 0;
}

.seat-number {
    margin: 0;
    font-size: 12px;
}

/* 座位地图容器 */
.seat-map {
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px 0;
}

/* 座位排容器 */
.seat-row {
    display: flex;
    align-items: flex-start; /* 改為頂部對齊，確保一致性 */
    justify-content: flex-start;
    margin: 10px 0;
    white-space: nowrap;
}

/* 座位排內容容器 */
.seat-row-container {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
}

/* 轉播區段包裝器 */
.broadcast-segment-wrapper {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
}

/* 排号样式 */
.row-label {
    display: inline-block;
    width: 60px;
    text-align: center;
    vertical-align: top;
    margin-right: 10px;
    padding-top: 6px; /* 調整以與座位按鈕中心對齊 */
    font-weight: bold;
    height: 47px; /* 統一高度 */
    box-sizing: border-box;
    flex-shrink: 0;
}

/* 座位容器對齊 */
.seat-container {
    display: inline-flex;
    align-items: center;
    vertical-align: top;
    height: 47px; /* 統一高度 */
    margin: 0;
}

/* 座位按钮 */
.seat-btn {
    width: 35px;
    height: 35px;
    font-size: 12px;
    padding: 0;
    border-radius: 4px;
    margin: 1px;
    display: inline-block;
    vertical-align: middle;
}

/* 垂直走道樣式 */
.vertical-aisle {
    width: 50px;
    min-width: 50px;
    display: inline-block;
    margin: 0 8px;
    height: 47px; /* 與座位容器相同高度 */
    position: relative;
    vertical-align: top;
    flex-shrink: 0;
}

/* 座位狀況頁面專用樣式 */
.table-group {
    display: inline-block;
    vertical-align: top;
    margin: 0 5px;
}

.table-element {
    width: 140px;
    height: 25px;
    background-color: #A8B5B2;
    border-radius: 5px;
    margin-bottom: 5px;
    border: 2px solid #8B9B96;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.seat-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

/* 轉播區樣式 */
.broadcast-area {
    position: relative;
}

.broadcast-area .table-element {
    background-color: #B5A8A8 !important;
    border-color: #9B8B8B !important;
    opacity: 0.7;
}

/* .broadcast-area .seat-btn {
    opacity: 0.6;
} */

.broadcast-area::before {
    content: attr(data-broadcast-name);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #B5A8A8, #9B8B8B);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
    white-space: nowrap;
    border: 2px solid #887A7A;
}

/* 如果沒有 data-broadcast-name 屬性，則顯示預設文字 */
.broadcast-area:not([data-broadcast-name])::before {
    content: "轉播區";
}

.broadcast-area::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(181, 168, 168, 0.15);
    border-radius: 8px;
    pointer-events: none;
    z-index: 5;
}

/* 手機版調整 */
@media (max-width: 768px) {
    html,body{
        min-height: 100%;
    }
    h2 {
        margin-top: 1rem; /* 針對小螢幕裝置，進一步增加標題上方距離 */
        font-size: 1.5rem; /* 針對小螢幕裝置，增大標題字體大小 */
    }
    .form-control, .btn {
        font-size: 1.25rem; /* 針對小螢幕裝置，增大輸入框和按鈕的字體大小 */
    }
    .logo {
        margin-bottom: 0.5rem; /* 針對小螢幕裝置，進一步縮小距離 */
    }
    .banner-img{
        max-width: 360px;
        max-height: 360px;
        margin-left: auto;
        margin-right: auto;
    }
    .btn {
        font-size: 1rem;
    }
    
    .seat-area {
        /* width: 80px; */
        height: 80px;
    }

    .seat-grid {
        grid-template-columns: repeat(12, 1fr);
    }
    /* 示例样式，您可以根据需要自定义 */
    .available-seat {
        background-color: green;
    }

    .unavailable-seat {
        background-color: gray;
    }

    .selected-seat {
        background-color: yellow;
    }

    .broadcast-area::before {
        font-size: 10px;
        padding: 3px 10px;
    }
    
    /* 手機版調整桌子寬度 */
    .table-element {
        width: 126px; /* 配合三個座位的寬度（約35px每個座位） */
    }
    
    /* 手機版座位對齊調整 */
    .seat-row-container {
        flex-wrap: wrap; /* 手機版允許換行 */
    }
    
    .seat-container,
    .vertical-aisle,
    .row-label {
        height: 42px; /* 手機版稍微縮小 */
    }
    
    .row-label {
        padding-top: 4px;
    }
}

/* ==================== 成功頁面樣式 ==================== */
/* 成功頁面專用樣式 */
.success-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.success-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
}

.success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0b7285, #1B308B);
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.success-title {
    color: #1B308B;
    font-weight: bold;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.info-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #0b7285;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 1.2rem;
    color: #0b7285;
    margin-right: 1rem;
    min-width: 25px;
}

.info-label {
    font-weight: 600;
    color: #495057;
    margin-right: 0.5rem;
}

.info-value {
    color: #1B308B;
    font-weight: bold;
}

.seat-display {
    background: linear-gradient(135deg, #0b7285, #1B308B);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(11, 114, 133, 0.3);
}

.seat-display .seat-number {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.seat-display .seat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.contact-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.contact-section .contact-icon {
    color: #856404;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.action-buttons {
    margin-top: 2rem;
}

.btn-success-page {
    background: linear-gradient(135deg, #0b7285, #1B308B);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(11, 114, 133, 0.3);
}

.btn-success-page:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 114, 133, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary-page {
    background: #6c757d;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary-page:hover {
    background: #5a6268;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 成功頁面手機版優化 */
@media (max-width: 768px) {
    .success-container {
        padding: 1rem 0.5rem;
    }
    
    .success-card {
        padding: 2rem 1.5rem;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .seat-display .seat-number {
        font-size: 1.5rem;
    }
    
    .btn-success-page,
    .btn-secondary-page {
        padding: 10px 20px;
        margin: 0.3rem;
        width: calc(100% - 0.6rem);
    }
}

/* ==================== 預訂狀態頁面樣式 ==================== */
/* 預訂狀態頁面專用樣式 */
.reservation-status-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.reservation-status-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
}

.reservation-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0b7285, #1B308B);
}

.status-icon {
    font-size: 3.5rem;
    color: #0b7285;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.status-title {
    color: #1B308B;
    font-weight: bold;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.reservation-info-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #0b7285;
}

.reservation-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.reservation-info-item:last-child {
    margin-bottom: 0;
}

.reservation-info-icon {
    font-size: 1.2rem;
    color: #0b7285;
    margin-right: 1rem;
    min-width: 25px;
}

.reservation-info-label {
    font-weight: 600;
    color: #495057;
    margin-right: 0.5rem;
}

.reservation-info-value {
    color: #1B308B;
    font-weight: bold;
}

.current-seat-display {
    background: linear-gradient(135deg, #0b7285, #1B308B);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(11, 114, 133, 0.3);
}

.current-seat-display .seat-number {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

.current-seat-display .seat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.reservation-contact-section {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.reservation-contact-section .contact-icon {
    color: #0c5460;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.reservation-action-buttons {
    margin-top: 2rem;
}

.btn-reservation-primary {
    background: linear-gradient(135deg, #0b7285, #1B308B);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(11, 114, 133, 0.3);
}

.btn-reservation-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 114, 133, 0.4);
    color: white;
    text-decoration: none;
}

/* 取消按鈕 - 刻意設計成不顯眼 */
.cancel-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.btn-cancel-reservation {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.85rem;
    padding: 8px 16px;
    text-decoration: underline;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-cancel-reservation:hover {
    color: #dc3545;
    text-decoration: none;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 5px;
}

.cancel-warning {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.5rem;
    font-style: italic;
}

/* 預訂狀態頁面手機版優化 */
@media (max-width: 768px) {
    .reservation-status-container {
        padding: 1rem 0.5rem;
    }
    
    .reservation-status-card {
        padding: 2rem 1.5rem;
    }
    
    .status-title {
        font-size: 1.5rem;
    }
    
    .status-icon {
        font-size: 3rem;
    }
    
    .current-seat-display .seat-number {
        font-size: 1.5rem;
    }
    
    .btn-reservation-primary {
        padding: 10px 20px;
        margin: 0.3rem;
        width: calc(100% - 0.6rem);
    }
    
    .cancel-section {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}

/* 不顯示桌子時的樣式 */
.no-tables .table-element {
    display: none !important;
}

.no-tables .table-group {
    display: inline-block;
    vertical-align: top;
    margin: 0 5px;
}

.no-tables .seat-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 5px;
}

.no-tables .seat-container {
    display: inline-flex;
    align-items: center;
    vertical-align: top;
    height: 47px;
    margin: 0;
}