.page {
    display: none;
}

.page.active {
    display: block;
}

.announcement {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.announcement img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

.time-slot {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.time-slot.private {
    background: #f8f9fa;
    opacity: 0.7;
}

.time-slot.full {
    background: #f8d7da;
}

.booking-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.booking-item p{
    margin-bottom: 10px;
}

.booking-item.dissolved h3{
    padding: 0%;
    color: red;
}
.booking-item.waiting h3{
    color: #f77700;
}
.booking-item.confirmed h3{
    color: green;
}
.booking-item.cancelled h3{
    color: #f8d7da;
    opacity: 0.7;
}

#calendar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fc-event {
    cursor: pointer;
}

.fc-event.private {
    background-color: #f07272;
    border-color: #f07272;
}

.fc-event.full {
    background-color: #dc3545;
    border-color: #dc3545;
}

@media (max-width: 768px) {
    .container {
        padding: 5px;
    }
    
    .announcement {
        padding: 15px;
    }
    
    #calendar {
        padding: 10px;
    }
} 

@media (max-width: 600px) {
    .container {
        padding: 0 20px !important;
        max-width: 100vw;
    }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
    }
    .navbar-brand img {
        margin-left: 10px;
        height: 40px;
    }
    .login-area {
        position: absolute;
        right: 20px;
        top: 10px;
        margin-top: 8px;
        width: 100%;
        text-align: right;
    }
    .announcement, .booking-item, .time-slot, #calendar {
        padding: 8px !important;
        margin-bottom: 10px;
        border-radius: 6px;
        font-size: 1em;
    }
    .modal-dialog {
        max-width: 98vw;
        margin: 0.5rem auto;
    }
    .modal-content {
        border-radius: 8px;
    }
    .table {
        font-size: 0.95em;
    }
    .calendar-date, .calendar-slot {
        font-size: 1em;
    }
    .btn, .form-control, .form-select {
        font-size: 1em;
        padding: 6px 8px;
    }
    .form-label, label {
        font-size: 1em;
    }
    .modal-title {
        font-size: 1.1em;
    }
    .footer {
        font-size: 0.9em;
        margin: 24px 0 8px 0;
    }
    .calendar-td-selected {
        background: #fffee9 !important;
    }
    .calendar-date.selected {
        background: #007bff !important;
        color: #fff !important;
        border-radius: 50%;
    }
    .navbar-nav {
        flex-direction: row !important;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap !important;
    }
    .navbar-nav .nav-item {
        margin-right: 8px;
    }
}

@media (max-width: 991.98px) {
    .navbar-nav {
        display: flex;
        flex-direction: row !important;
        /* width: 100%; */
        justify-content: space-around;
        flex-wrap: nowrap !important;
    }
    .navbar-nav .nav-item {
        margin-right: 8px;
    }
}

body { background: #ffefef;color:#444444}
.navbar { background: #fff;display: flex; justify-content:space-around ;}
.navbar-brand img { height: 60px; }
.nav-link, .navbar-brand { color: #444444 !important; font-weight: 500; font-size: 1.2em; }
.nav-link.active {border-bottom: 3px solid #444444; }
/* .login-area { position: relative; right: 40px; top: 32px; } */
.login-area span { font-size: 1.3em; font-weight: bold; }
.login-area a { margin-left: 12px; font-size: 1.1em; }
.announcement-title {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin: 32px 0 24px 0;
}
.announcement-content {
    background: #fff;
    border-radius: 8px;
    padding: 32px 40px;
    margin: 0 auto 32px auto;
    max-width: 1000px;
    font-size: 1.1em;
    box-shadow: 0 2px 8px #0001;
}
.booking-icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 32px 0 0 0;
}
.booking-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 8px;
}
.booking-icon-btn img {
    height: 64px;
}
.footer {
    text-align: center;
    color: #888;
    margin: 48px 0 16px 0;
    font-size: 1em;
}
.footer img { height: 18px; vertical-align: middle; }


.table{
    border:#ffefef !important;
    /* color: #444444 !important; */
    /* background-color:#ffefef !important; */
}
.table th{
    background-color:#ffefef !important;
    color: #444444 !important;

}
.table td{
    background-color:#ffefef !important;
    color: #444444 !important;

}
.table td.calendar-td-selected{
    background-color:#ffdddd !important;
    color: #444444 !important;

}
.table .calendar-disabled {
    border:#dddddd !important;
    background: #dddddd !important;
    color: #999999 !important;
    pointer-events: none;
}
.alert{
    border:1px solid #444444;
    background-color: #fff;
    color: #444444;
}
div.card-body{
    border: #ffefef !important;
    color: #444444;
}
/* 預約 */
.bg-success{
    font-size: 15px;
    background-color: #bae2a2 !important;
    color: #444444;
}
/* 候補 */
.bg-warning{
    font-size: 15px;
    background-color: #ffb083 !important;
    color: #444444 !important;
}
/* 包場 */
.bg-secondary{
    font-size: 15px;
    background-color: #ffa5aa !important;
        color: #444444;
}
/* 流團 */
.bg-danger{
    /* border: 1px solid #444444; */
    padding:0.35em 0.65em;
    background-color: #444444 !important;
    color: #fff;
    font-size: 15px;
}
.bg-secondary.me-1{
    background-color: #ffbdbd !important;

}
.btn.btn-primary{
    background-color: #ffefef;
    color: #444444;
    border:#444444 1px solid
}
.btn.btn-info{
    background-color: #fff;
    color: #444444;
    border:#444444 1px solid
}
.border-danger{
    border: #ffefef;
}
/* 取消 */
.modal-footer .btn-secondary{
    border:1px solid #444444;
    background-color: #fff;
    color: #444444;
}
/* 候補名單 */
.text-warning{
  color: #ffa551 !important;
}
/* 正取名單 */
.text-success{
  color: #4bbb53 !important;
}
/* 標籤 */
.badge.bg-secondary.me-1{
    font-size: 15px;
    padding:0.2em 0.65em;
}
/* 管理時段 */
.btn.btn-success.mb-2.me-2{
    background-color: #fff;
    border:1px solid #444444;
    color: #444444;
}
/* 黑名單 */
.btn.btn-dark.mb-2{
    border: none;
    background-color: #444444;
    color: #fff;
}