/*
* demo.css
* File include item demo only specific css only & Theme Customization
******************************************************************************/

/* ===================================================
   1. Theme Color Variables (โทนเขียวอมฟ้า Teal: #00aa9f)
   =================================================== */
:root {
  --bs-primary: #00aa9f;
  --bs-primary-rgb: 0, 170, 159;
  --bs-primary-hover-bg: #00938a;
  --bs-primary-active-bg: #007c74;
  --bs-primary-border-subtle: #80d5cf;
  --bs-menu-active-bg: #00aa9f;
}

/* ===================================================
   2. Vuexy UI Overrides (ปุ่ม, เมนู, ลิงก์, ตาราง)
   =================================================== */

/* ปุ่มกด Primary */
.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  box-shadow: 0 2px 4px rgba(0, 170, 159, 0.3) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--bs-primary-hover-bg) !important;
  border-color: var(--bs-primary-hover-bg) !important;
}

.btn-primary:active,
.btn-primary.active {
  background-color: var(--bs-primary-active-bg) !important;
  border-color: var(--bs-primary-active-bg) !important;
}

/* เมนูหลักฝั่งซ้าย (Sidebar) แถบที่กำลังเลือก (Active) */
.menu-vertical .menu-inner > .menu-item.active > .menu-link:not(.menu-toggle) {
  background: linear-gradient(72.47deg, #00aa9f 22.16%, rgba(0, 170, 159, 0.7) 76.47%) !important;
  box-shadow: 0px 2px 6px rgba(0, 170, 159, 0.45) !important;
  color: #ffffff !important;
}

/* ลิงก์ในเมนูย่อย (Sub-menu) แถบที่กำลังเลือก */
.menu-vertical .menu-sub > .menu-item.active > .menu-link {
  color: #ffffff !important;
  font-weight: 600;
}

.menu-vertical .menu-sub > .menu-item.active > .menu-link:before {
  background-color: #00aa9f !important;
}

/* ป้ายสถานะ (Badges) */
.badge.bg-label-primary {
  background-color: rgba(0, 170, 159, 0.12) !important;
  color: #00aa9f !important;
}

.bg-primary {
  background-color: #00aa9f !important;
}

.text-primary {
  color: #00aa9f !important;
}

/* ฟอร์มและ Checkbox/Radio */
.form-check-input:checked {
  background-color: #00aa9f !important;
  border-color: #00aa9f !important;
}

.form-control:focus,
.form-select:focus {
  border-color: #00aa9f !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 170, 159, 0.18) !important;
}

/* ตัวแบ่งหน้า (Pagination) ใน DataTables / ตาราง */
.page-item.active .page-link {
  background-color: #00aa9f !important;
  border-color: #00aa9f !important;
}

/* แท็บ (Nav Pills / Tabs) */
.nav-pills .nav-link.active,
.nav-pills .nav-link.active:hover,
.nav-pills .nav-link.active:focus {
  background-color: #00aa9f !important;
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(0, 170, 159, 0.35) !important;
}

/* ===================================================
   3. Vuexy Default Demo Layout Styles
   =================================================== */

.menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo svg {
  width: 34px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 72px !important;
}

.content-wrapper .navbar {
  z-index: auto;
}

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 254px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

.layout-demo-wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}