.chapter-wrap {
  border-radius: 6px;
  color: #000;
  text-align: center;
}
.chapter-book {
  color: #2c5fa7;
  font-weight: 700;
  margin-bottom: 4px;
}
.chapter-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.chapter-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}
.btn {
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}
.btn.prev, .btn.next {
  background: #2ecc71;
  color: white;
}
.btn.mid {
  background: white;
  border: 1px solid #ccc;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.chapter-content {
  text-align: left;
  background: white;
  padding: 18px;
  margin: 15px 0;
  border-radius: 6px;
  line-height: 1.8;
}
.hint {
  color: #555;
  font-size: 0.9rem;
}

/* Popup */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.popup-inner {
  background: white;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  overflow: hidden;
}
.popup-header {
  background: #2c5fa7;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.popup-body {
  max-height: 400px;
  overflow-y: auto;
  padding: 12px;
}
.popup-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.popup-body li {
  border-bottom: 1px solid #eee;
  padding: 6px 0;
}
.popup-body a {
  color: #333;
  text-decoration: none;
}
.popup-body a:hover {
  color: #2c5fa7;
}
.close {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* Breadcrumb – hiển thị ngang */
.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;                 /* khoảng cách giữa các mục */
  list-style:none;         /* bỏ dấu chấm */
  padding:8px 0;           /* bỏ thụt trái mặc định */
  margin:0 0 12px;
}
.breadcrumbs li{
  display:inline-flex;
  align-items:center;
  font-size:14px;
  color:#666;
}
.breadcrumbs li a{
  color:#1c74e3;
  text-decoration:none;
}
.breadcrumbs li + li::before{
  content:"›";             /* dấu phân tách */
  margin:0 6px;
  color:#999;
}
/* Thanh điều khiển chương */
.chapter-controls{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin: 10px 0 14px;
  flex-wrap:wrap;
}

/* Nút chung: không scale dọc nữa */
.chapter-controls .btn{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  height: 42px !important;      /* cố định chiều cao */
  padding: 0 16px !important;   /* bỏ padding dọc */
  line-height: 1 !important;
  white-space: nowrap !important;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .06s, box-shadow .2s, background .2s, border-color .2s;
}

/* Màu nút trái/phải */
.chapter-controls .btn.prev{
  background:#34d399;           /* xanh nhạt */
  color:#fff;
  border-color:#34d399;
}
.chapter-controls .btn.next{
  background:#22c55e;           /* xanh đậm hơn */
  color:#fff;
  border-color:#22c55e;
}
.chapter-controls .btn:hover{ box-shadow:0 3px 10px rgba(0,0,0,.08); }
.chapter-controls .btn:active{ transform: translateY(1px); }

/* Nút giữa – hình vuông, không bị cao hơn */
.chapter-controls .btn.mid{
  width: 42px;
  padding: 0 !important;
  font-size: 18px;
  background:#fff;
}

/* Trạng thái disabled gọn gàng */
.chapter-controls .btn:disabled{
  background:#f3f4f6 !important;
  border-color:#e5e7eb !important;
  color:#9ca3af !important;
  box-shadow:none !important;
  cursor:not-allowed !important;
  transform:none !important;
}

/* Màn nhỏ: thu chút chiều cao */
@media (max-width: 420px){
  .chapter-controls .btn{height: 38px !important; padding: 0 14px !important; border-radius: 8px;}
  .chapter-controls .btn.mid{ width: 38px; }
}

.container{
	width: 100%;
}

@media (max-width: 397px){
  .chapter-controls .btn{ width: 100px ;height: 38px !important; padding: 0 14px !important; border-radius: 8px; font-size: 9pt }
}


[v-cloak] {
  display: none; /* Ẩn toàn bộ container trước khi Vue mount */
}