/* ฟอนต์และพื้นหลัง */
body {
  margin: 0;
  font-family: 'Sarabun', sans-serif;
  background: linear-gradient(to right, #2196f3, #bbdefb);
  display: flex;
  height: 100vh;
  color: #0d47a1;
}

/* แบ่งพื้นที่ซ้าย-ขวา */
.left-panel {
  width: 30%;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 15px rgba(33, 150, 243, 0.3);
  border-radius: 0 20px 20px 0;
}

.right-panel {
  width: 70%;
  padding: 30px;
  overflow-y: auto;
}

/* หัวข้อ */
h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #0d47a1;
}

/* ตารางรายงาน */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

th {
  background-color: #1976d2;
  color: white;
}

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

/* กล่องแดชบอร์ด */
.dashboard-box {
  background-color: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(255, 152, 0, 0.3);
  text-align: center;
}

.dashboard-box h2 {
  font-size: 22px;
  color: #e65100;
  margin-bottom: 20px;
}

.record-count {
  font-size: 48px;
  font-weight: bold;
  color: #ff6f00;
}

.label {
  font-size: 16px;
  color: #757575;
  margin-top: 10px;
}

/* ปุ่มเข้าสู่ระบบแบบ 3 มิติ */
.login-button {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 24px;
  background: linear-gradient(to bottom, #ff9800, #f57c00);
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 6px #e65100;
  transition: all 0.2s ease;
}



.login-button:active {
  box-shadow: 0 2px #e65100;
  transform: translateY(4px);
}

.login-button:hover {
  background: linear-gradient(to bottom, #ffa726, #fb8c00);
}

/* ข้อความผิดพลาด */
.error {
  color: red;
  margin-top: 10px;
}
.dashboard-inline {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-box {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
  text-align: center;
  min-width: 180px;
}

.dashboard-box h3 {
  font-size: 18px;
  color: #e65100;
  margin-bottom: 10px;
}

.record-count {
  font-size: 36px;
  font-weight: bold;
  color: #ff6f00;
}
.login-button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(to bottom, #ff9800, #f57c00);
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 4px #e65100;
  transition: all 0.2s ease;
  margin-bottom: 15px;
}
.login-button:active {
  box-shadow: 0 2px #e65100;
  transform: translateY(2px);
}
.login-button:hover {
  background: linear-gradient(to bottom, #ffa726, #fb8c00);
}
.button-group {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}

.action-button {
  padding: 10px 20px;
  background: linear-gradient(to right, #42a5f5, #1e88e5);
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px #1565c0;
  transition: all 0.2s ease;
}

.action-button:hover {
  background: linear-gradient(to right, #64b5f6, #2196f3);
}

.action-button:active {
  box-shadow: 0 2px #1565c0;
  transform: translateY(2px);
}

.action-button.logout {
  background: linear-gradient(to right, #ef5350, #e53935);
  box-shadow: 0 4px #c62828;
}

.action-button.logout:hover {
  background: linear-gradient(to right, #e57373, #f44336);
}

.action-button.logout:active {
  box-shadow: 0 2px #c62828;
  transform: translateY(2px);
}
.create-button {
  display: inline-block;
  background-color: #1976d2;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}


.create-button:hover {
  background-color: #1565c0;
}

.reset-button {
  display: block;
  margin-top: 10px;
  background-color: #f57c00;
  color: white;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  text-decoration: none;
}
.reset-button:hover {
  background-color: #ef6c00;
}
