/* style.css */

/* ตั้งค่าฟอนต์และพื้นหลังของเว็บ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
}

/* จัดกึ่งกลางหน้าจอสำหรับหน้า Login/Register/Index */
.center-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* กล่องการ์ดสีขาว */
.card-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

/* ตกแต่งหัวข้อ */
.card-box h1 {
    color: #007BFF;
    margin-bottom: 10px;
}

.card-box p {
    color: #6c757d;
    margin-bottom: 30px;
}

/* ตกแต่งปุ่ม */
.btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: white;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #007BFF;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-success {
    background-color: #28A745;
}

.btn-success:hover {
    background-color: #1e7e34;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}
/* style.css (ส่วนที่เพิ่มเติม) */

/* ตกแต่งช่องกรอกข้อมูล (Input & Select) */
input[type="text"], 
input[type="email"], 
input[type="password"], 
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

/* สร้างกล่องกว้างสำหรับหน้า Dashboard */
.dashboard-container {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ตกแต่งตาราง (Table) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #007BFF;
    color: white;
}

tr:hover {
    background-color: #f1f1f1;
}

/* ลิงก์ทั่วไป */
a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}