@import url('https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400..900;1,400..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

a {
  text-decoration: none;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
}

input:focus,
button:focus,
.form-control:focus {
  outline: none;
  box-shadow: none;
}

.badge.badge-outline-primary {
  border: 1px solid #0d6efd;
  color: #0d6efd;
  background-color: transparent;
}

.badge.badge-outline-success {
  border: 1px solid #198754;
  color: #198754;
  background-color: transparent;
}

.badge.badge-outline-danger {
  border: 1px solid #dc3545;
  color: #dc3545;
  background-color: transparent;
}

.badge.badge-outline-warning {
  border: 1px solid #ffc107;
  color: #ffc107;
  background-color: transparent;
}

.badge.badge-outline-info {
  border: 1px solid #0dcaf0;
  color: #0dcaf0;
  background-color: transparent;
}

.badge.badge-outline-light {
  border: 1px solid #f8f9fa;
  color: #f8f9fa;
  background-color: transparent;
}

.badge.badge-outline-primary:hover {
  background-color: #0d6efd;
  color: #fff;
  border: none;
}

.badge.badge-outline-success:hover {
  background-color: #198754;
  color: #fff;
  border: none;
}

.badge.badge-outline-danger:hover {
  background-color: #dc3545;
  color: #fff;
  border: none;
}

.badge.badge-outline-warning:hover {
  background-color: #ffc107;
  color: #000;
  border: none;
}

.badge.badge-outline-info:hover {
  background-color: #0dcaf0;
  color: #000;
  border: none;
}

.badge.badge-outline-light:hover {
  background-color: #f8f9fa;
  color: #000;
  border: none;
}

#back-to-top {
  background-color: #0d6efd;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: none;
  /* ban đầu ẩn */
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

#back-to-top i {
  font-size: 18px;
}

#back-to-top {
  position: fixed;
  display: flex;
  bottom: 40px;
  right: 20px;
  flex-direction: column;
  /* ✅ xếp dọc */
  gap: 10px;
  /* khoảng cách giữa 2 nút */
  z-index: 999;
  /* để nổi lên trên */
}

#settings {
  position: fixed;
  display: flex;
  bottom: 40%;
  right: 0px;
  flex-direction: column;
  /* ✅ xếp dọc */
  gap: 10px;
  /* khoảng cách giữa 2 nút */
  z-index: 999;
  /* để nổi lên trên */
}

/* chiều rộng dropdown và nền tối như ảnh */
.settings-menu {
  width: 280px;
}

.settings-menu .form-label {
  color: #e9f0f4;
  font-size: 0.9rem;
}

.settings-menu {
  background: #6e6e6e;
  color: #fff;
  border: none;
}

.settings-menu .form-select,
.settings-menu .form-control {
  background: #fff;
  color: #333;
}

/* .bottom-card,
.header-card {
  background-color: inherit;
} */

/* Lưới bảng màu */
.palette {
  display: grid;
  grid-template-columns: repeat(8, 28px);
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 2px;
  padding-bottom: 5px;
}

.palette::-webkit-scrollbar {
  height: 5px;
  background-color: #F5F5F5;
  border-radius: 10px;
}

.palette::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  background-color: #555;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, .1);
  transition: transform .08s ease, box-shadow .12s ease;
}

.swatch:hover {
  transform: scale(1.06)
}

.swatch.selected {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .15)
}

.settings-grid .form-label {
  font-weight: 600
}

/* Khóa chọn văn bản trong #content */
#content,
#content * {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  /* iOS: vô hiệu menu khi giữ lâu */
}

/* Vẫn cho click link bình thường */
#content a {
  pointer-events: auto;
}

/* Hạn chế kéo ảnh để copy */
#content img {
  pointer-events: none;
}

/* Nếu có phần bạn muốn cho phép copy, gán class .allow-copy vào đó */
#content .allow-copy,
#content .allow-copy * {
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* Không áp dụng khóa chọn cho input/textarea (để user vẫn nhập/chọn được) */
#content input,
#content textarea {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .breadcrumb-item {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .breadcrumb-item {
    font-size: 1.25rem;
  }
}