body {
    font-family: "Sarabun", Arial, sans-serif;
    background-color: #f9fafb;
   
    margin: auto;
}
.container-qna {
 width: 60%;
    margin: auto;
}

h1 {
    text-align: center;
    color: #265da5;
    margin-bottom: 12px;
}
h2 {
    color: #265da5;
    margin-bottom: 11px;
    border-bottom: 2px solid #265da5;
    padding-bottom: 4px;
}
form {
    background: white;
    padding: 22px 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    margin-top: 50px; /* เว้นระยะห่างด้านบน */
}
label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: #374151;
}
input[type="text"],
input[type="date"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 5px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
input[type="text"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border-color: #112f55;
    outline: none;
}
textarea {
    resize: vertical;
}
button[type="submit"] {
    margin-top: 25px;
    background-color: #265da5;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
}
button[type="submit"]:hover {
    background-color: #112f55;
}

/* ตารางรายงาน */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px; /* เว้นระยะห่างด้านล่าง */
}
thead {
    background-color: #1a457d;
    color: white;
}
th, td {
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}
tbody tr:hover {
    background-color: #f1f5f9;
}
.status-done {
    color: #16a34a;
    font-weight: 700;
}
 .status-pending {
    color: #f59e0b; /* สีส้ม */
    font-weight: 700;
}
 .status-cancel {
    color:rgb(245, 11, 11); /* สีส้ม */
    font-weight: 700;
}
#pagination button {
    background-color: #112f55;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    margin: 0 5px;
    font-weight: bold;
    cursor: pointer;
}
#pagination button:hover {
    background-color: #112f55;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    form {
        padding: 20px;
    }
    th, td {
        padding: 10px 8px;
        font-size: 14px;
    }
}


