@font-face {
  font-family: "Barabara";
  src: url("/static/barabara.fc2cef5fd6a5.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

.noto-sans-thai-looped-thin {
  font-family: "Noto Sans Thai Looped", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.noto-sans-thai-looped-extralight {
  font-family: "Noto Sans Thai Looped", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.noto-sans-thai-looped-light {
  font-family: "Noto Sans Thai Looped", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.noto-sans-thai-looped-regular {
  font-family: "Noto Sans Thai Looped", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.noto-sans-thai-looped-medium {
  font-family: "Noto Sans Thai Looped", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.noto-sans-thai-looped-semibold {
  font-family: "Noto Sans Thai Looped", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.noto-sans-thai-looped-bold {
  font-family: "Noto Sans Thai Looped", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.noto-sans-thai-looped-extrabold {
  font-family: "Noto Sans Thai Looped", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.noto-sans-thai-looped-black {
  font-family: "Noto Sans Thai Looped", sans-serif;
  font-weight: 900;
  font-style: normal;
}

/* ========================================
   MODERN NAVBAR STYLES
   ======================================== */

.modern-nav {
  background: linear-gradient(135deg, #120037 0%, #1a0052 100%);
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 20px rgba(18, 0, 55, 0.3);
  position: relative;
  z-index: 1000;
}

.modern-nav .container-fluid {
  padding: 0 1rem;
  display: flex;
  align-items: center;
}

.modern-nav .navbar-collapse {
  flex-grow: 1;
}

.modern-nav .navbar-nav.mx-auto {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.modern-nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #a274ff, #6c5ce7, #a274ff);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.main-logo {
  height: 5rem;
  padding: 0.5rem 0;
  margin: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover .main-logo {
  transform: scale(1.05);
  filter: brightness(1.2);
}

/* Modern Nav Links - English Only */
.navbar-nav .nav-link {
  position: relative;
  padding: 1rem 1rem !important;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1rem;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #a274ff, #6c5ce7);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::before {
  width: 80%;
}

.navbar-nav .nav-link:hover {
  color: #a274ff !important;
}

/* User Menu Styles */
.user-menu {
  padding: 0.75rem 1.25rem !important;
  font-weight: 600;
  background: rgba(162, 116, 255, 0.15);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.user-menu:hover {
  background: rgba(162, 116, 255, 0.25);
  transform: translateY(-2px);
}

.user-menu i {
  font-size: 1.2rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Modern Dropdown Styles */
.modern-dropdown {
  background: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(18, 0, 55, 0.15);
  padding: 0;
  margin-top: 0.5rem;
  min-width: 240px;
  animation: dropdownFadeIn 0.3s ease;
  overflow: hidden;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dropdown Header - Thai Translation */
.modern-dropdown .dropdown-header {
  background: linear-gradient(135deg, #120037, #1a0052);
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  border: none;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(162, 116, 255, 0.2);
}

.modern-dropdown .dropdown-item:first-of-type {
  margin-top: 0.5rem;
}

.modern-dropdown .dropdown-item:last-of-type {
  margin-bottom: 0.5rem;
}

.dual-lang-item {
  position: relative;
  padding: 0.75rem 1.5rem;
  color: #120037;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.dual-lang-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #a274ff, #6c5ce7);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.dual-lang-item:hover::before {
  transform: scaleY(1);
}

.dual-lang-item:hover {
  background: linear-gradient(90deg, rgba(162, 116, 255, 0.1), transparent);
  padding-left: 2rem;
}

.dual-lang-item .item-en {
  font-size: 0.95rem;
  font-weight: 600;
  color: #120037;
}

.dual-lang-item .item-th {
  font-size: 0.85rem;
  color: rgba(18, 0, 55, 0.7);
  white-space: nowrap;
}

.dual-lang-item:hover .item-en {
  color: #6c5ce7;
}

.dual-lang-item:hover .item-th {
  color: #a274ff;
}

/* Modern Button */
.modern-btn {
  padding: 0.75rem 1.75rem;
  border-radius: 25px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(162, 116, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.modern-btn i {
  font-size: 1.1rem;
}

#account {
  display: flex;
  align-items: center;
}

#login-button {
  background-color: #a274ff;
  color: #ffffff;
}

.btn-ps-light {
  background-color: #a274ff;
  color: #ffffff;
}

.btn-ps-light:hover {
  color: #bdbcbc;
}

.btn-ps {
  background-color: #120037;
  color: #ffffff;
}

.btn-ps:hover {
  color: #bdbcbc;
}

.thead-ps-dark {
  background-color: #120037;
  color: white;
}

.btn-outline-ps {
  color: #120037;
  border-color: #120037;
  background-color: white;
}

.btn-outline-ps:hover {
  color: #ffffff;
  background-color: #120037;
  border-color: #120037;
}

#footerCopyRightText {
  font-size: 0.75rem;
  text-align: center;
  color: #120037;
}

body.dark-mode {
  background-color: #1e1e2e;
  color: #cdd6f4;
}

body.dark-mode .song-header h2 {
  color: #f29f75;
}

body.dark-mode h1 {
  color: #d9d7f1;
}

body.dark-mode .note_bottom {
  color: cyan !important;
}

body.dark-mode .section-note p {
  color: cyan !important;
}

/* ========================================
   NAVBAR RESPONSIVE STYLES
   ======================================== */

@media (max-width: 991px) {
  .modern-nav {
    padding: 0.5rem 0;
  }

  .main-logo {
    height: 4rem;
  }

  .navbar-collapse {
    background: rgba(18, 0, 55, 0.98);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }

  .modern-dropdown {
    background: #ffffff;
    border: 2px solid rgba(162, 116, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  }

  .modern-dropdown .dropdown-header {
    background: linear-gradient(135deg, #120037, #1a0052);
    color: white;
  }

  .dual-lang-item {
    color: #120037;
  }

  .dual-lang-item .item-en {
    color: #120037;
    font-weight: 700;
  }

  .dual-lang-item .item-th {
    color: rgba(18, 0, 55, 0.8);
    font-weight: 600;
  }

  .dual-lang-item:hover {
    background: linear-gradient(90deg, rgba(162, 116, 255, 0.15), transparent);
  }

  .dual-lang-item:hover .item-en {
    color: #6c5ce7;
  }

  .dual-lang-item:hover .item-th {
    color: #a274ff;
  }

  .user-menu {
    margin: 0.5rem 0;
  }

  #account {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

@media (max-width: 576px) {
  .main-logo {
    height: 3.5rem;
  }

  .modern-nav::after {
    height: 2px;
  }

  #account {
    padding-right: 0.5rem;
  }

  .modern-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
  }
}
