    * { box-sizing: border-box; }
    body {
      font-family: 'Roboto', sans-serif;
      background: #f8f9fa;
      margin: 0;
      padding: 0;
      color: #212529;
    }
    header {
      background: #007bff;
      color: white;
      padding: 15px;
      text-align: center;
      font-size: 20px;
      font-weight: bold;
    }
    nav {
      display: flex;
      justify-content: center;
    }
    nav button {
      flex: 1;
      padding: 12px;
      font-size: 16px;
      background: cadetblue;
      border: none;
      cursor: pointer;
      font-weight: bold;
      transition: background 0.3s;
    }
    nav button.extractor-tab {
      background: #0d6efd;
      color: white;
    }
    nav button.extension-tab {
      background: #ffc107;
      color: black;
    }
    nav button.active.extractor-tab {
      background: #084298;
    }
    nav button.active.extension-tab {
      background: #d39e00;
    }
    .tab-content {
      display: none;
      padding: 20px;
    }
    .tab-content.active {
      display: block;
    }
    .container {
        min-height: 600px; /* thêm dòng này */
      max-width: 1024px;
      margin: auto;
      background: #fff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    textarea, input[type=text] {
      width: 100%;
      padding: 10px;
      font-size: 14px;
      border-radius: 5px;
      border: 1px solid #ced4da;
      margin-bottom: 10px;
      height: 250px;
    }
    .output-box {
      background: #f1f3f5;
      padding: 12px;
      border: 1px solid #dee2e6;
      border-radius: 6px;
      max-height: 500px;
      overflow-y: auto;
    }
    button.action {
      background-color: #007bff;
      color: white;
      border: none;
      padding: 8px 15px;
      border-radius: 5px;
      cursor: pointer;
      margin: 4px 4px 10px 0;
    }
    button.action:hover {
      background-color: #0056b3;
    }
    ol { padding-left: 20px; }
    ol li {
  margin-bottom: 12px;
  line-height: 1.6;
}
#passwordOverlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #passwordBox {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 90%;
    width: 350px;
  }

  #passwordBox h2 {
    margin-bottom: 15px;
  }

  #passwordBox input {
    padding: 10px;
    width: 80%;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
  }

  #passwordBox button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
  }

  #passwordBox button:hover {
    background: #0056b3;
  }
<style>
#passwordOverlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#passwordBox {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.input-scroll-box {
  width: 100%;
  height: 300px; /* giới hạn chiều cao */
  border: 1px solid #ccc;
  padding: 10px;
  overflow: auto; /* cho phép cuộn khi vượt quá chiều cao */
  border-radius: 6px;
  background: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
/* Mặc định sáng */
body, header {
  background-color: #f4f4f4;
  color: #222;
  transition: background 0.3s, color 0.3s;
}

header {
  padding: 15px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  background: #e0e0e0;
  border-bottom: 2px solid #ccc;
}

/* Dark mode */
body.dark-mode, header.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

header.dark-mode {
  background: #1f1f1f;
  border-bottom: 2px solid #333;
}
#mainHeader {
  justify-content: space-between;
  align-items: center;
  background-color: #4c5a8a;
  color: white;
  font-size: 20px;
  font-weight: bold;
}

.header-link {
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
}

.logo {
  width: 36px;
  height: 36px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover;
}


    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: #f5f5f5;
      transition: background 0.3s, color 0.3s;
    }

    #passwordOverlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.85);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      transition: opacity 0.5s ease;
    }

    #passwordBox {
      background: white;
      padding: 30px;
      border-radius: 10px;
      text-align: center;
      box-shadow: 0 0 20px rgba(0,0,0,0.5);
      width: 300px;
    }

    #passwordBox h2 {
      margin-top: 0;
      font-size: 24px;
    }

    #passwordBox input {
      padding: 10px;
      width: 100%;
      margin: 10px 0;
      font-size: 16px;
    }

    #passwordBox button {
      padding: 10px 20px;
      background: #007bff;
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
    }

    #mainPopup {
      display: none;
      position: fixed;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      background: white;
      color: black;
      padding: 30px;
      border-radius: 8px;
      box-shadow: 0 0 20px rgba(0,0,0,0.6);
      z-index: 10000;
      text-align: center;
      max-width: 90%;
      width: 400px;
    }

    #mainPopup button {
      margin-top: 20px;
      padding: 10px 20px;
      font-size: 16px;
    }

    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #334e8f;
      color: white;
      padding: 10px 20px;
    }

    header a {
      display: flex;
      align-items: center;
      text-decoration: none;
      color: white;
    }

    header img {
      height: 50px;
      margin-right: 10px;
    }

    .right-buttons {
      display: flex;
      gap: 10px;
    }

    .right-buttons button {
      background: none;
      border: none;
      color: white;
      font-size: 18px;
      cursor: pointer;
    }

    #toast {
      position: fixed;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      background: #28a745;
      color: white;
      padding: 10px 20px;
      border-radius: 6px;
      display: none;
      z-index: 99999;
    }
#historyPopup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

#historyPopupBox {
  background: white;
  padding: 25px;
  border-radius: 10px;
  width: 600px;
  max-width: 95%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#historyPopupBox input {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
}

#popupScrollWrapper {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
  max-height: 300px;
  border: 1px solid #eee;
  padding: 8px;
}

#popupHistoryList {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#popupHistoryList li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.answer-highlight {
  color: green;
  font-weight: bold;
}

.time-highlight {
  color: #007bff;
  font-size: 13px;
}
select {
  max-width: 100%;
  font-size: 16px;
  z-index: 1000;
  appearance: auto;
}
#bulkPopup {
  z-index: 9999;
}
/* Mặc định hiện các nút */
.desktop-only { display: flex; gap: 10px; }
.mobile-only { display: none; }

/* Trên mobile (max-width: 768px) */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: inline-block; }
}

#historyPagination {
  text-align: center;
  margin-bottom: 10px;
}

 /* Hiển thị các nút đúng trên desktop/mobile */
  .mobile-only {
    display: none;
  }

  .desktop-only {
    display: inline-block;
  }

  @media screen and (max-width: 768px) {
    .mobile-only {
      display: inline-block !important;
    }

    .desktop-only {
      display: none !important;
    }

    #mobileMenu {
      position: absolute;
      top: 60px;
      right: 10px;
      background: #333;
      padding: 10px;
      border-radius: 8px;
      z-index: 9999;
    }

    #mobileMenu button {
      display: block;
      width: 100%;
      margin: 5px 0;
      color: white;
      background: none;
      border: none;
      font-size: 18px;
      text-align: left;
    }
  }
  .animated-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: linear-gradient(-45deg, #4a90e2, #3b5998, #5e72e4, #4a90e2);
  background-size: 400% 400%;
  animation: headerGradient 10s ease infinite;
  color: white;
  border-bottom: 2px solid #ffffff33;
  z-index: 999;
  position: relative;
}

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

/* Optional: Ẩn nút trên mobile */
.desktop-only {
  display: flex;
  gap: 10px;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}
/* Logo chuyển động khi trang load và hover */
.logo-animated {
  animation: logoBounce 3s ease-in-out infinite;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-animated:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px #ffffffaa);
}

@keyframes logoBounce {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}
.logo-neon {
  animation: neonGlow 1.8s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.logo-neon:hover {
  transform: scale(1.08);
}

@keyframes neonGlow {
  0%, 100% {
    filter: drop-shadow(0 0 0px #00ffff) brightness(1);
  }
  50% {
    filter: drop-shadow(0 0 8px #00ffff) brightness(1.5);
  }
}
.logo-wrapper {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-block;
}

.logo-neon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: neonGlow 2s ease-in-out infinite;
  z-index: 1;
  position: relative;
}

.logo-ring {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #00ffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  animation: spinRing 2.5s linear infinite;
  z-index: 0;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes neonGlow {
  0%, 100% { filter: drop-shadow(0 0 0px #00ffff); }
  50% { filter: drop-shadow(0 0 10px #00ffff); }
}

</style>
<style>
  /* Backdrop làm mờ nền */
  #popupBackdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    transition: opacity 0.3s ease;
  }

  /* Popup chính */
  #notificationPopup {
    display: none;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 700px;
    max-height: 500px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-family: 'Segoe UI', sans-serif;
    opacity: 0;
    transition: all 0.35s ease;
  }

  /* Hiển thị popup với animation */
  #notificationPopup.show {
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  /* Scrollbar đẹp */
  #notificationPopup::-webkit-scrollbar {
    width: 6px;
  }
  #notificationPopup::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
  }

  .popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .popup-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
  }

  .popup-title i {
    margin-right: 8px;
    font-size: 22px;
    color: #007bff;
  }

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f44336;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 16px;
  line-height: 28px;
  text-align: center;
  z-index: 10000;
}


.popup-list {
  list-style: none;
  padding-left: 0;
}

.popup-list li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 16px;
  color: #333;
}

.circle-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  margin-right: 12px;
  font-size: 14px;
}

.group-1 {
  background-color: #007bff; /* Xanh dương */
}

.group-2 {
  background-color: #ff9800; /* Cam */
}

.group-3 {
  background-color: #f44336; /* Đỏ */
}
@keyframes rainbow-flash {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.rainbow-answer {
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  margin-top: 16px;
  background: linear-gradient(270deg, red, orange, yellow, green, blue, indigo, violet);
  background-size: 800% 800%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-flash 3s infinite linear;
}
#countdown {
  font-weight: bold;
  margin-top: 10px;
  transition: opacity 0.3s ease;
}

#countdown.paused {
  opacity: 0.4;
  filter: blur(1px);
}
.circular-chart {
  width: 80px;
  height: 80px;
  display: block;
  margin: 10px auto;
}

.circle-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 3.8;
}

.circle {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s linear, stroke 0.3s ease;
  transform: rotate(-90deg);
  transform-origin: center;
}

.percentage {
  fill: #333;
  font-family: sans-serif;
  font-size: 10px;
  text-anchor: middle;
}
    body {

      font-family: 'Segoe UI', sans-serif;
      align-items: center;
    }

    .video-container {
      overflow: hidden;
      box-shadow: 0 0 30px rgba(0, 255, 150, 0.2);
    }

    video {
      width: 100%;
      height: auto;
    }
.locked-overlay {
      inset: 0;
      background-color: rgba(0, 0, 0, 0.75);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 10;
      border-radius: 8px;
    }

    .unlock-btn {
      padding: 15px 30px;
      font-size: 18px;
      background-color: #4caf50;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      color: white;
      transition: 0.3s;
    }

    .unlock-btn:hover {
      background-color: #2a70db;
    }
.input-wrapper {
  position: relative;
}

.input-scroll-box {
  min-height: 100px;
  background: ;
  color: black;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow-y: auto;
}

.placeholder {
  position: absolute;
  top: 10px;
  left: 12px;
  color: #888;
  pointer-events: none;
  transition: opacity 0.2s;
}
#historyPopup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

#historyPopupBox {
  background: white;
  padding: 25px;
  border-radius: 10px;
  width: 700px;
  max-width: 90%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: black;
}

#popupHistoryList {
  list-style: none;
  padding-left: 0;
  max-height: 500px;
  overflow-y: auto;
  margin-bottom: 15px;
}

#popupHistoryList li {
  margin-bottom: 8px;
  font-size: 14px;
}
.glow-text {
  color: #00f;
  font-weight: bold;
  animation: sparkle 1.5s infinite;
  text-shadow:
    0 0 5px #00f,
    0 0 10px #00f,
    0 0 15px #00f,
    0 0 20px #0ff;
}
.blink-text {
  color: #pink;
  font-weight: bold;
  animation: sparkle 1.0s infinite;
  text-shadow:
    0 0 5px #007bff,
    0 0 5px #00f,
    0 0 5px #00f,
    0 0 2px #0ff;
}
@keyframes sparkle {
  0%   { opacity: 1; text-shadow: 0 0 5px #00f, 0 0 10px #0ff; }
  50%  { opacity: 0.6; text-shadow: 0 0 15px #00f, 0 0 25px #0ff; }
  100% { opacity: 1; text-shadow: 0 0 5px #00f, 0 0 10px #0ff; }
}
</style>
<!-- Tab: Tra cứu + Cập nhật -->
<div id="search-tab" class="tab-content">
<style>
  .qa-container {
  max-width: 1024px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: "Segoe UI", sans-serif;
}

.modern-textarea {
  width: 100%;
  min-height: 80px;
  padding: 1rem;
  font-size: 1rem;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fdfdfd;
  resize: vertical;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.modern-textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.qa-divider {
  margin: 2rem 0;
  border: none;
  border-top: 1px dashed #ccc;
}

.action {
  display: inline-block;
  background: #007bff;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.action:hover {
  background: #0056b3;
}

.output-box {
  margin-top: 1rem;
  background: #f8f9fa;
  border-left: 4px solid #007bff;
  padding: 1rem;
  border-radius: 8px;
  white-space: pre-wrap;
}
#traCuuInput {
  width: 100%;
  min-height: 80px;
  padding: 1rem;
  font-size: 1rem;
  color: #333;
  border: 2px solid #007bff;
  border-radius: 10px;
  background: #fefefe;
  resize: vertical;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1rem;
}

#traCuuInput:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.qa-container {
  max-width: 1024px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  font-family: 'Segoe UI', sans-serif;

  background: linear-gradient(-45deg, #3e8ed0, #6a62b7, #b35ca8, #f06177);
  background-size: 600% 600%;
  animation: animatedGradient 12s ease infinite;
  color: #ffffff;
}

@keyframes animatedGradient {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 50%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 50%; }
  100% { background-position: 0% 50%; }
}


.qa-container h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.modern-textarea {
  width: 100%;
  min-height: 80px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #fdfdfd;
  font-size: 1rem;
  color: #333;
  resize: vertical;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.modern-textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.btn-primary {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.qa-divider {
  margin: 2.5rem 0;
  border: none;
  border-top: 1px dashed #ccc;
}

.output-box {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-left: 4px solid #007bff;
  border-radius: 10px;
  color: #333;
  font-size: 0.95rem;
  white-space: pre-wrap;
}
.editable-box {
  width: 100%;
  min-height: 80px;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #fefefe;
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
  position: relative;
}

.editable-box:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
  outline: none;
}

/* Placeholder giả */
.editable-box:empty:before {
  content: attr(data-placeholder);
  color: #aaa;
  pointer-events: none;
}
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(-45deg, #3e8ed0, #6a62b7, #b35ca8, #f06177);
  background-size: 600% 600%;
  animation: gradientFlow 12s ease infinite;
  color: #ffffff;
  border-radius: 12px;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}





  button {
    margin: 5px 10px 10px 0;
  }

  .vip-label {
    color: #fff;
    background-color: red;
    padding: 2px 6px;
    margin-left: 4px;
    border-radius: 4px;
    font-weight: bold;
    animation: blink 1s infinite;
  }

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }

  /* Modal VIP */
  .vip-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
  }

  .vip-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
  }

  .vip-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    cursor: pointer;
  }

  .vip-close:hover {
    color: red;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
  }
  #customAlert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  color: #000;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  z-index: 10000;
  display: none;
  text-align: center;
  font-size: 16px;
}
footer#mainFooter {
  text-align: center;
  padding: 15px;
  font-size: 14px;
  background-color: #e0e0e0;
  color: #333;
  border-top: 1px solid #ccc;
}

/* Dark mode footer */
body.dark-mode footer#mainFooter {
  background-color: #1f1f1f;
  color: #f0f0f0;
  border-top: 1px solid #333;
}
body.dark-mode {
  background-color: #1e272e;
  color: #ecf0f1;
}

body.dark-mode .sidebar {
  background-color: #34495e;
}

body.dark-mode a {
  color: #ecf0f1;
}

body.dark-mode a:hover {
  background-color: #2c3e50;
}

body.dark-mode .main-content {
  background-color: #2f3640;
  color: #f5f6fa;
}
/* settings.css */
.settings-btn {
  display: block;
  position: static; /* Không còn fixed góc phải */
  background: linear-gradient(90deg, #a1c4fd, #c2e9fb);
  color: #2c3e50;
  border-radius: 8px;
  font-size: 16px;
  padding: 10px;
  margin: 8px 0;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.settings-btn:hover {
  background: linear-gradient(90deg, #ff6ec4, #7873f5);
  color: #fff;
  transform: scale(1.05);
}


.settings-popup {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.2);
  padding: 10px;
  z-index: 1001;
}

.settings-popup button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px;
  margin-bottom: 5px;
  border: none;
  background: #f5f5f5;
  border-radius: 5px;
  cursor: pointer;
}

.settings-popup button:hover {
  background: #e0e0e0;
}

body.dark-mode {
  background: #121212;
  color: #f5f5f5;
}

body.night-mode {
  background: #000000;
  color: #bbbbbb;
}

body {
  transition: all 0.3s ease;
}
