/* ปรับพื้นหลังของหน้าเว็บ */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* การจัดการ Header */
header {
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    text-align: center;
}

header nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px;
    background-color: #444;
    border-radius: 5px;
}

header nav a:hover {
    background-color: #555;
}

/* ปรับการแสดงผลของเนื้อหาในหน้า Admin */
h1 {
    text-align: center;
    margin-top: 30px;
    font-size: 2em;
}

/* การจัดการตารางสินค้า */
table {
    width: 80%;
    margin: 30px auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

table th {
    background-color: #333;
    color: #fff;
}

table td a {
    color: #1a73e8;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
}

table td a:hover {
    background-color: #f4f4f4;
}

/* ปรับ footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* ปรับการแสดงปุ่มและลิงก์ */
a.button, button {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

a.button:hover, button:hover {
    background-color: #0c59b3;
}

