body {
    margin: 0;
    font-family: sans-serif;
}

.layout {
    display: flex;
    min-height: 100vh;
}

/* 側邊欄 */
.sidebar {
    width: 200px;
    background: #333;
    color: white;
    padding: 1rem;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 0.5rem 0;
}

.logout {
    margin-top: 2rem;
    background: #dc3545;
    padding: 0.5rem;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
}

/* 主內容 */
.content {
    flex: 1;
    padding: 1rem;
}

.content-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar {
    display: none;
    background: #333;
    color: white;
    padding: 0.5rem;
}

.hamburger {
    cursor: pointer;
    font-size: 1.2rem;
}

/* 表格容器 */
.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    min-width: 600px;
}

#specialTable {
    display: none;
}

#reserveTable {
    display: table;
}

th,
td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: left;
}

th {
    background: #eee;
}

button {
    padding: 0.3rem 0.6rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.add-btn {
    background: #28a745;
    color: white;
    margin-bottom: 0.5rem;
}

.save-btn {
    background: #007bff;
    color: white;
}

.cancel-btn {
    background: #6c757d;
    color: white;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.login-container {
    width: 100%;
    max-width: fit-content;
    max-height: fit-content;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-container h3 {
    text-align: center;
    margin-bottom: 20px;
}

.login-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.login-container input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-container button {
    width: 100%;
    margin: 0;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-container .login-status {
    cursor: pointer;
    width: fit-content;
    display: flex;
    justify-self: flex-end;
    margin-bottom: 5px;
}

.login-container .login-status:hover {
    color: #eebe3a;
}

.login-container button:hover {
    background-color: #0056b3;
}

.login-container .result {
    margin-top: 15px;
    font-size: 0.9em;
    color: #333;
}

/* 手機模式 */
@media(max-width:768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
    }

    .topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 500;
        display: none;
    }

    .overlay.show {
        display: block;
    }
}