@font-face {
  font-family: 'THSarabun';
  src: url('fonts/THSarabunNew Bold.ttf') format('truetype');
}

* {
  font-family: 'THSarabun', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
}

.shadow-text {
  text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}

.form-label {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.25rem;
  color: #333;
}

.form-control {
  font-size: 1.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.form-control:disabled {
  background-color: #f0f0f0;
  color: #555;
}

.form-check-label {
  font-size: 1.5rem;
  color: #444;
}

.btn {
  font-size: 1.5rem;
  border-radius: 8px;
}

.bg-orange {
  background-color: #f86207 !important;
  color: #fff;
}

.input-group-text {
  background-color: #f0f0f0;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
}
.form-control::placeholder {
  color: #999;
  font-size: 1.5rem;
  font-style: normal;
}

.menu-link {
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  padding: 0 15px;
}
.menu-link:hover {
  text-decoration: none;
}
.dropdown-menu-orange {
  background-color: #f86207;
  border: none;
}
.dropdown-menu-orange a {
  color: white;
  font-size: 1.5rem;
  padding: 10px 20px;
  display: block;
  text-decoration: none;
}
.dropdown-menu-orange a:hover {
  background-color: #feb26f;
  text-decoration: none;
}
.dropdown-divider {
  border-top: 1px solid white;
}
.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

.widget-box {
  display: flex;
  border-radius: 5px;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  overflow: hidden;
  min-height: 100px;
}

.widget-icon {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background-color: rgba(0,0,0,0.1);
  min-width: 70px;
}

.widget-content {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.widget-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.widget-number {
  font-size: 1.8rem;
  font-weight: bold;
}

/* สีแต่ละกล่อง */
.widget-pink    { background-color: #e91e63; }
.widget-cyan    { background-color: #00bcd4; }
.widget-green   { background-color: #8bc34a; }
.widget-orange  { background-color: #ff9800; }

.widget-pink .widget-icon    { background-color: #d81b60; }
.widget-cyan .widget-icon    { background-color: #0097a7; }
.widget-green .widget-icon   { background-color: #689f38; }
.widget-orange .widget-icon  { background-color: #ef6c00; }


/* style.css: ปุ่มโซเชียลมุมล่างขวา */
.floating-social-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.floating-icon {
  position: relative;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.floating-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background-color: white;
  padding: 5px;
}

.floating-icon:hover {
  transform: scale(1.1);
}

.tooltip-text {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background-color: #000;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, right 0.3s ease;
  font-family: 'AnakotmaiLight', sans-serif;
}

.floating-icon:hover .tooltip-text {
  opacity: 1;
  right: 70px;
}

.floating-menu-top {
  position: fixed;
  top: 100px; /* ปรับเป็น 30px ตามต้องการ */
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-btn-top {
  position: relative;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.floating-btn-top img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
}

.floating-btn-top:hover img {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: scale(1.1);
}

/* Tooltip */
.tooltip-top {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  background-color: #000;
  color: #fff;
  padding: 6px 12px;
  font-size: 1.5rem;
  white-space: nowrap;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10000;
}

.floating-btn-top:hover .tooltip-top {
  opacity: 1;
  transform: translateY(-50%) translateX(5px);
}

/* หัวตารางข่าวประชาสัมพันธ์ */
.pr-table-header {
  background-color: #f57c00;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 8px;
}

/* ตารางข้อมูล */
.pr-table {
  font-size: 1.5rem;
  background-color: #e37e07;
}
.pr-table th, .pr-table td {
  vertical-align: middle;
  border: 1px solid #e37e07;
}
.pr-table th {
  background-color: #e37e07;
  font-weight: bold;
  color:#fff;
}

/* ปุ่มจัดการ */
.pr-table .btn i {
  font-size: 1.2rem;
}

.pr-form-box {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.custom-table tbody tr {
  border: 1px solid #ccc;          /* เส้นตารางสีเทา */
  box-shadow: 3px 3px 8px rgba(0,0,0,0.1); /* เงานุ่ม */
  transition: background 0.3s ease;
}

.custom-table tbody tr:hover {
  background-color: #fff6e5;       /* สีเมื่อชี้เมาส์ */
  box-shadow: 3px 3px 8px rgba(0,0,0,0.15); /* เงาเข้มขึ้นเมื่อ hover */
}

.custom-table td {
  font-size: 1.5rem;
  vertical-align: middle;
  border: 1px solid #ddd;          /* เส้นของ td ให้ชัดขึ้น */
  padding: 12px;
}
