/* Thanh toolbar cố định */
.vinno-toolbar {
  z-index: 4;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e0e0e0;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  font-family: system-ui, sans-serif;
  transition: 0.75s;
}

.vinno-toolbar button {
  background: #F4F6F8;
  border: none;
  /*font-size: 14px;*/
  cursor: pointer;
  padding: 10px;
  /*border-radius: 8px;*/
  transition: all 0.2s;
  color: rgb(0,0,0,0.65);
  /*line-height: 160%;*/
}

.vinno-toolbar button:hover,
.vinno-toolbar button:active,
.vinno-toolbar button:focus {
  background: #01417E;
  color: #fff;
}
.vinno-toolbar button.prev,
.vinno-toolbar button.next {
  border-radius: 50%;
}
.vinno-toolbar button i {
    font-size: 20px;
}
.toc-toggle-btn {
  display: flex;
  gap: 10px;
  border-radius: 8px;
  font-family: Roboto;
  font-size: 14px;
  font-weight: 400;
  /*line-height: 160%;*/
}
.share-btn {
  border-radius: 8px;
}
.gtext-resize {
    display: flex;
    gap: 1px;
    font-family: Roboto;
}
.resize-smaller {
  font-size: 18px;
  border-radius: 8px 0 0 8px;
}
.resize-larger {
  font-size: 24px;
  font-weight: 600;
  border-radius: 0 8px 8px 0;
}
.vinno-toolbar .toc-btn {
  background: #0066cc;
  color: white;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
}
.vinno-toolbar .toc-btn:hover { background: #0055aa; }
.vinno-toolbar .toc-btn i { margin-right: 6px; }

/* Drawer Mục lục (tích hợp TOC.js) */
#vinno-toc-drawer {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 60px;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
  align-items: flex-end;
}
#vinno-toc-drawer.open { display: flex; }

#vinno-toc-content {
  background: white;
  width: 100%;
  max-height: 80vh;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  /*box-shadow: 0 -10px 30px rgba(0,0,0,0.2);*/
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}
#vinno-toc-header {
  padding: 0 0 12px 0;
  border-bottom: 1px solid #eee;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#vinno-toc-body {
  flex: 1;
  padding: 0;
  overflow-y: auto;
}
.toc-js ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-js li {
  margin: 0;
}
.toc-js a {
  display: block;
  padding: 8px 0;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: color 0.2s;
}
.toc-js a:hover,
.toc-js a.current {
  color: #0066cc;
  font-weight: 600;
}

/* Ẩn toolbar trên admin */
.path-admin .vinno-toolbar { display: none; }

/* Fix drawer TOC.js */
#vinno-toc-body .toc {
  list-style: none;
  padding: 0;
  margin: 0;
}
#vinno-toc-body .toc li {
  margin: 4px 0;
}
#vinno-toc-body .toc a {
  color: #333;
  text-decoration: none;
  padding: 6px 0;
  display: block;
}
#vinno-toc-body .toc a:hover, #vinno-toc-body .toc a.current {
  color: #0066cc;
  font-weight: 600;
}

/* Fix buttons cho Text Resize và PrevNext */
.text-resize-btn, .prevnext-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinno-toolbar button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}