/* ============================================================
   1. CSS Variables & Base
   ============================================================ */
html {
  --primary-blue: #42bcef;
  --primary-dark-blue: #2f309d;
  --primary-pink: #e9619f;
  --primary-red: #ea2225;
  --primary-black: #000;
  --bg-page: #fff;

  /* Brand / CI */
  --CI-Midnight-Blue: #00073c;
  --CI-Light-Blue: #2e6693;
  --Primary-Blue: #0d66d0;

  /* System */
  --white: #fff;
  --red: #fe1427;
  --line: #06c755;
  --System-Semi-Black: #151515;
}

/* ============================================================
   2. Typography & Reset
   ============================================================ */
body {
  min-height: 100vh;
  font-family: "Noto Sans Thai" !important;
  font-size: normal;
  font-style: normal;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Sans Thai" !important;
  font-weight: bold;
}
.btn {
  font-family: "Noto Sans Thai" !important;
  font-weight: bold;
}
p {
  font-family: "Noto Sans Thai" !important;
  font-size: normal;
  font-style: normal;
}
button:focus,
a:focus {
  outline: none !important;
  box-shadow: none !important;
}
button:hover,
a:hover {
  opacity: 0.8;
}
a {
  color: var(--primary-black);
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* ============================================================
   3. Layout
   ============================================================ */
main {
  max-width: 500px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  background: var(--bg-page);
  color: var(--Black-100, #000);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   4. Navigation (Header)
   ============================================================ */
.nav-block {
  display: flex;
  flex-direction: row;
  height: 70px;
  background: var(--primary-blue);
}
.nav-section {
  padding-left: 24px;
}
.profile-section {
  padding-right: 24px;
}
.profile-image,
.profile-image:hover {
  background: #fff;
  border-radius: 50px;
  display: flex;
  height: 31px;
  width: 31px;
  justify-content: center;
  text-decoration: none;
  align-items: center;
  color: var(--primary-blue);
}
.logo {
  width: auto;
  height: 40px;
  flex-shrink: 0;
}

/* ============================================================
   5. Sidebar Menu
   ============================================================ */
.offcanvas-body {
  padding: 32px 24px;
}
.sidebar-menu {
  background: var(--primary-blue);
  color: #fff;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
}
.menu-detail {
  width: 100%;
}
.menu-item {
  padding: 8px 0;
  border-bottom: 1px solid #d4d4d4;
  display: flex;
  align-items: center;
}
.menu-link {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  text-decoration: none;
}
.menu-link:hover {
  color: #fff;
}
.signout,
.signout:hover {
  color: #fff;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-left: 0 !important;
  margin-bottom: 0 !important;
}

/* ============================================================
   6. Bottom Member Menu
   ============================================================ */
.menu-section {
  max-width: 500px;
  padding: 0px 24px;
}
.member-menu {
  margin-bottom: 24px;
  background-color: #fff;
  border-radius: 8px;
  height: 80px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}
.menu-icon {
  margin-bottom: 3px;
}
.menu-items > a {
  width: 100%;
  color: var(--Grey, #999);
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  text-decoration: none;
}
.menu-items:first-child > a {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}
.menu-items:last-child > a {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}
.menu-items > a.active {
  color: var(--primary-blue);
}

/* ============================================================
   7. Buttons
   ============================================================ */
.btn-main {
  padding: 16px;
  color: #fff;
  border-radius: 8px;
  background: var(--primary-blue);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  height: 48px;
}
.btn-main:hover {
  color: #fff;
}
.btn-outline {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  height: 48px;
  color: var(--primary-blue);
  text-align: center;
  width: 100%;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--primary-blue);
}
.btn-outline:hover {
  color: var(--primary-blue);
}
.btn-link {
  text-decoration: none;
  color: var(--primary-blue);
  font-size: 16px;
  font-weight: 700;
}
.btn-link:hover {
  color: var(--primary-blue);
}

/* ============================================================
   8. Forms (shared overrides)
   ============================================================ */
.form-label {
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}
.form-control,
.form-select {
  height: 48px;
}
.form-check-input:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}
