body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

h1 {
  text-align: center;
}

input[type="file"] {
  width: 100%;
  padding: 10px;
  margin: 20px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

li {
  padding: 5px 0;
  border-bottom: 1px solid #ddd;
}

/* การตั้งค่าแจ้งเตือน */
.notification {
  background-color: #4caf50;
  color: white;
  padding: 10px;
  margin-top: 20px;
  border-radius: 5px;
  text-align: center;
}

.notification.error {
  background-color: #f44336;
}

/* ปุ่ม */
button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #45a049;
}

/* ช่อง textarea */
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 16px;
  font-family: "Arial", sans-serif;
  resize: vertical;
  transition: border-color 0.3s ease;
}

textarea:focus {
  border-color: #4caf50;
  outline: none;
}

/* ป้ายข้อความ "ข้อความที่ต้องการส่ง" */
label {
  font-size: 16px;
  margin-top: 20px;
  display: block;
  font-weight: bold;
}

/* ช่อง select */
select,
input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 16px;
  font-family: "Arial", sans-serif;
  transition: border-color 0.3s ease;
}

input:focus,
select:focus {
  border-color: #4caf50;
  outline: none;
}

/* ข้อความแสดงสถานะ */
.success {
  color: green;
}

.error {
  color: red;
}

.floating-block {
  position: fixed; /* ตำแหน่งลอย */
  top: 20px; /* ระยะจากขอบด้านบน */
  right: 20px; /* ระยะจากขอบด้านขวา */
  background-color: #ffffff; /* สีพื้นหลัง */
  border: 1px solid #ddd; /* เส้นขอบ */
  border-radius: 8px; /* มุมโค้งมน */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* เงา */
  padding: 16px; /* ระยะห่างด้านใน */
  z-index: 1000; /* อยู่เหนือ element อื่น */
  width: 300px; /* กำหนดความกว้าง */
}

.floating-block label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
}

.floating-block input,
.floating-block select,
.floating-block textarea {
  width: 100%; /* ขยายเต็ม */
  padding: 8px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.floating-block button {
  width: 100%;
  padding: 8px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.floating-block button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.floating-block button:hover:not(:disabled) {
  background-color: #0056b3;
}
