body {
  background-color: #f0f2f5;
  font-family: Arial, sans-serif;
  padding: 10px;
  color: #333;
  overflow: hidden;
}

.container {
  max-width: 100%;
  padding: 0;
}

img.transparent-white {
  mix-blend-mode: multiply;
  /* hoà màu với nền */
}

.note-box {
  background-color: #e3f2fd;
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 14px;
  border-left: 4px solid #2196f3;
}

.green-note {
  background-color: #e3f2fd;
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 14px;
  border-left: 4px solid #21f333;
}

.bi-arrow-clockwise {
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.bi-arrow-clockwise:hover {
  color: #0d6efd;
  /* xanh Bootstrap */
  transform: rotate(90deg);
  /* xoay nhẹ khi hover */
}

.price {
  color: #b8c233;
  font-weight: bold;
  font-size: 1.2rem;
}

#editor-container {
  height: 200px;
  background: #fff;
}
#editor-container-reward {
  height: 200px;
  background: #fff;
}

@media (max-width: 768px) {
  body {
    overflow-y: scroll; /* cho cuộn dọc */
    overflow-x: hidden; /* vẫn ẩn cuộn ngang */
  }
}

/* ---- Carousel Fix ---- */
#carouselExample {
  max-width: 500px; /* chiều rộng tối đa */
  margin: auto;
}

#carouselExample .carousel-item {
  height: 420px; /*  cố định chiều cao của mỗi slide */

  padding: 10px;
}

/* Khung ảnh */
.carousel-img-wrapper {
  height: 250px; /*  chiều cao khung ảnh cố định */
  width: 75vw;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
}

.carousel-img-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain; /* ✅ luôn giữ tỉ lệ, không méo */
}

/* Khung content */
.carousel-content {
  flex: 1; /* chiếm phần còn lại của item */
  width: 100%;
  min-height: 120px; /* ✅ giữ khung nội dung cố định */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel-content p {
  margin: 3px 0;
  font-size: 15px;
  line-height: 1.4;
}

/* ---- Action Buttons (Sửa/Xóa) ---- */
#carouselExample .position-absolute button {
  min-width: 70px;
}

/* ---- Desktop chỉnh lại layout ---- */
@media (min-width: 992px) {
  body {
    overflow: hidden;
  }

  .btn_add_customer {
    margin-top: 10px;
  }

  .row.w-100 {
    max-width: 1200px; /* nhỏ gọn hơn */
    margin: auto;
  }

  /* Bên trái (rule + reward) */
  .col-md-6:first-child {
    border-right: 1px solid #eee;
    padding-right: 20px;
  }

  /* Tiêu đề game mode */
  .title_game_mode {
    font-size: 1.5rem;
    padding: 12px 20px;
    border-radius: 10px;
  }

  /* Carousel container */
  #carouselExample {
    min-width: 500px; /* nhỏ gọn hơn */
    /* margin: auto; */
  }

  #carouselExample .carousel-item {
    height: 380px; /* thấp hơn 1 chút */
  }

  /* Khung ảnh */
  .carousel-img-wrapper {
    height: 220px;
    width: 100%;
  }

  /* Content */
  .carousel-content {
    min-height: 100px;
    font-size: 14px;
    padding: 8px;
  }

  /* Nút prev/next */
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    filter: invert(37%) sepia(95%) saturate(434%) hue-rotate(160deg)
      brightness(90%) contrast(90%); /* xanh */
  }

  /* Các nút Thêm / Sửa / Xóa */
  .btn {
    padding: 6px 16px;
    font-size: 14px;
  }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(36%) sepia(94%) saturate(2000%) hue-rotate(180deg)
    brightness(95%) contrast(90%);
}
@media (min-width: 700px) and (max-width: 1080px) {
  .row.w-100 > .col-md-6 {
    flex: 0 0 100%; /* chiếm 100% */
    max-width: 100%; /* không cho nhỏ hơn */
  }
  body {
    overflow: auto;
  }
  .btn_add_customer {
    margin-top: 10px;
  }
}
