/* === Global Styles === */
body, label {
  font-family: Kanit, sans-serif;
  font-weight: 400;
}

td, ul, li {
  font-family: Kanit, sans-serif;
  font-size: 12pt;
  margin-top: 5px;
  font-weight: 200;
}

a, div {
  font-family: Kanit, sans-serif;
}

::selection {
  color: #fff;
  background: #8e44ad;
}

/* === Wrapper Styling === */
.wrapper {
  position: sticky;
  bottom: 30px;
  left: 30px;
  max-width: 365px;
  background: #fff;
  padding: 25px 25px 30px;
  border-radius: 15px;
  box-shadow: 1px 7px 14px -5px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.wrapper.hide {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.wrapper img {
  max-width: 90px;
}

/* === Content Section === */
.content {
  margin-top: 10px;
}

.content header {
  font-size: 25px;
  font-weight: 600;
}

.content p {
  margin: 5px 0 20px;
}

.content .buttons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.buttons .item {
  margin: 0 10px;
}

.buttons button {
  padding: 10px 20px;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 5px;
  background: #8e44ad;
  cursor: pointer;
  transition: all 0.3s ease;
}

.buttons button:hover {
  transform: scale(0.97);
  background: #6C3483;
}

.buttons a {
  color: #8e44ad;
}

/* === Navbar Styling === */
.navbar {
  background-color: #8e44ad !important;
  border: none !important;
}

.nav-link {
  color: #fff !important;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #eee !important;
}

.navbar-toggler {
  background-color: #8e44ad;
  border: 1px solid #8e44ad;
  border-radius: 4px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* === Link Styles === */
a {
  color: #8e44ad;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #9b59b6;
  text-decoration: none;
}

/* === Dropdown Item Styles === */
.dropdown-item {
  color: #8e44ad !important;
  transition: background-color 0.3s, color 0.3s;
}

.dropdown-item:hover {
  background-color: #9b59b6;
  color: #fff !important;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: #8e44ad !important;
  color: #fff !important;
}

/* Active pagination button */
.active > .page-link,
.page-link.active {
  z-index: 3;
  color: #fff;
  background-color: #8e44ad;
  border-color: #8e44ad;
}

/* Normal pagination link */
.page-link {
  color: #fff !important;
  background-color: var(--bs-pagination-bg);
  border: 1px solid var(--bs-pagination-bg);
}

/* Pagination Theme */
.pagination {
  --bs-pagination-hover-color: #dcd6f7;
  --bs-pagination-focus-color: #9b59b6;
  --bs-pagination-bg: #8e44ad;
  --bs-pagination-hover-bg: #9b59b6;
  --bs-pagination-disabled-bg: #d2b4de;
}

.page-link:hover {
  background-color: var(--bs-pagination-hover-bg);
  color: var(--bs-pagination-hover-color);
  border-color: var(--bs-pagination-hover-bg);
}

.page-item.disabled .page-link {
  background-color: var(--bs-pagination-disabled-bg);
  color: #dcdcdc;
  border-color: var(--bs-pagination-disabled-bg);
}

/* === Custom Badges === */
.badge {
  --bs-badge-border-radius: 1rem;
}

.rounded-pill-mine {
  color: #fff;
  background-color: #9b59b6;
}

.rounded-pill-mine-2 {
  color: #fff;
  background-color: #d2b4de;
}

/* === SweetAlert Styles === */
.swal2-popup {
  font-size: 1rem !important;
  font-family: Kanit, serif !important;
}

.swal2-title {
  font-family: 'Kanit', sans-serif !important;
}

.sweet-alert {
  font-family: 'Kanit', sans-serif !important;
}

/* === Divider === */
.custom-divider {
  width: 300px;
  border: none;
  height: 5px;
  background-color: #8e44ad;
  margin: 40px auto;
  border-radius: 5px;
}

/* === Custom Blue Button (ยังอยู่เดิมเผื่อใช้งาน) === */
.btn-blue {
  background-color: #6C3483;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-blue:hover {
  background-color: #4a235a !important;
  color: #fff !important;
  text-decoration: none;
}

.text-purple {
  color: #6f42c1 !important;
}

.text-purple:hover {
  color: #5a36a0 !important;
  text-decoration: underline;
}