body {
    font-family: Arial, sans-serif;
    margin: 20px;
    text-align: center;
}

.seating-container {
    display: inline-block;
    text-align: left;
    margin: 10px auto;
}

.row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.row-label {
    width: 25px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.seat {
    width: 25px;
    height: 25px;
    margin: 2px;
    line-height: 25px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}

.header-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.header-label {
    width: 25px;
}

.screen {
    margin: 20px auto;
    background: #ddd;
    padding: 5px;
    width: 50%;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.occupied {
    background-color: rgb(17, 186, 14);
    color: white;
}

.empty {
    background-color: rgb(236, 101, 91);
    color: white;
}
.no-data {
    background-color: rgb(236, 101, 91);
    color: white;
}

.waiting-list {
    margin-top: 20px; /* ระยะห่างด้านบน */
    width: 100%; /* ให้ตารางขยายเต็มความกว้าง */
    max-width: 1200px; /* จำกัดความกว้างถ้าจำเป็น */
    margin-left: auto; /* จัดกึ่งกลางซ้าย */
    margin-right: auto; /* จัดกึ่งกลางขวา */
}

.waiting-list table {
    border-collapse: collapse; /* รวมเส้นขอบ */
    width: 100%; /* ให้ตารางขยายเต็มพื้นที่ */
    text-align: left; /* จัดข้อความชิดซ้าย */
    background-color: #ffffff; /* พื้นหลังสีขาว */
}

.waiting-list th, .waiting-list td {
    padding: 10px; /* เพิ่มระยะห่างภายในช่อง */
    border: 1px solid #ddd; /* เส้นขอบบาง */
}

.waiting-list th {
    background-color: #f4f4f4; /* สีพื้นหัวตาราง */
    font-weight: bold;
}

.waiting-list td {
    background-color: #fff; /* สีพื้นข้อมูล */
}

.waiting-list tr:nth-child(even) {
    background-color: #f9f9f9; /* สีแถบสลับ */
}

body {
    background-color: #e3c9e6; /* สีเทาเข้ม */
    
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}


.navbar {
    background-color: #333;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* เพิ่มระยะห่างจากขอบซ้ายและขวา */
    height: 60px;
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar .menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar .menu li {
    margin: 0 15px; /* ระยะห่างระหว่างแต่ละเมนู */
}

.navbar .menu li a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.navbar .menu li a:hover {
    background-color: #555; /* เปลี่ยนสีพื้นหลังเมื่อเลื่อนเมาส์ */
}

/* เว้นระยะห่างระหว่างเนื้อหากับเมนูบาร์ */
.content {
    margin-top: 60px; /* ปรับตามความสูงของเมนูบาร์ */
}

.seated-list-container {
    width: 80%;
    margin: 20px auto;
    text-align: center;
}

.seated-list-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.seated-list-container th, .seated-list-container td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

.seated-list-container th {
    background-color: #333;
    color: white;
}

.seated-list-container tr:nth-child(even) {
    background-color: #f9f9f9;
}

.menu-bar a.active {
    background-color: #666;
    color: white;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
}
th a {
    text-decoration: none;
    color: #007bff; /* สีฟ้าสำหรับลิงก์ */
    font-weight: bold;
}

th a:hover {
    text-decoration: underline;
}

.random-students {
    margin: 20px 0;
    padding: 10px;
    background-color: #f1f1f1;
    border: 2px solid #ddd;
    border-radius: 5px;
}
.random-students h2 {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #444;
}
.random-students table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.random-students table th,
.random-students table td {
    padding: 8px 12px;
    border: 1px solid #ccc;
    text-align: left;
}
.random-students table th {
    background-color: #f8f8f8;
    font-weight: bold;
}

