/* ================= BẮT ĐẦU CSS TOOLBAR (VÀNG & ĐEN) ================= */
:root {
  --color-toolbar: #ffd500; /* Màu vàng chủ đạo */
  --color-toolbar-hover: #ffd500; /* Màu vàng khi hover */
  --toolbar-bg: #ffd500; /* Màu nền vàng */
  --toolbar-text: #000000; /* Màu chữ đen */
  --toolbar-icon: #000000; /* Màu icon đen */
}

/* Khung chính của toolbar */
.toolbar-app {
  width: 100%;
  bottom: 0px;
  position: fixed;
  z-index: 9999;
  left: 0px;
  display: block;
  -webkit-filter: drop-shadow(0px -2px 10px rgba(0, 0, 0, 0.35));
  filter: drop-shadow(0px -2px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.5s ease-in-out;
}

/* Danh sách số điện thoại bung lên */
.toolbar-app .list-phone {
  position: absolute;
  bottom: 100%;
  left: 30px;
  opacity: 0;
  transform: scale(0);
  transform-origin: 50% 100%;
  display: none;
}

.toolbar-app.is-active .list-phone {
  display: block;
  animation: quickShow 0.25s cubic-bezier(0.66, 0.45, 0.76, 1.53) forwards;
}

.toolbar-app .list-phone a {
  display: flex;
  align-items: center;
  background: var(--toolbar-bg);
  max-width: 250px;
  padding: 10px 20px 10px 15px;
  margin: 10px 0;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  border: 2px solid #000000;
  transition: all 0.2s ease;
}

.toolbar-app .list-phone a:hover {
  background: var(--color-toolbar-hover);
  transform: translateX(4px);
  border-color: #000000;
}

.toolbar-app .list-phone svg {
  width: 24px;
  height: 24px;
  fill: var(--toolbar-icon);
  margin-right: 10px;
  flex-shrink: 0;
}

.toolbar-app .list-phone span {
  color: var(--toolbar-text);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

/* Nút gọi điện thoại tròn lồi lên */
.toolbar-app .phone {
  position: relative;
  width: 50px;
  height: 50px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--toolbar-bg);
  border: 2px solid #000000;
  border-radius: 50%;
  margin: 0 0px -25px 30px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.25s ease-in-out,
    background 0.2s ease,
    box-shadow 0.2s ease-in-out;
}

.toolbar-app .phone:hover {
  background: var(--color-toolbar-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.toolbar-app .phone span {
  color: var(--toolbar-icon);
  display: block;
  position: relative;
}

.toolbar-app .phone span:before,
.toolbar-app .phone span:after {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(135deg);
  width: 26px;
  height: 3px;
  border-radius: 2rem;
  background-color: #000000;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.toolbar-app .phone span:after {
  transform: translate(-50%, -50%) rotate(45deg);
}

.toolbar-app.is-active .phone {
  transform: rotate(-180deg);
}

.toolbar-app.is-active .phone svg {
  opacity: 0;
}

.toolbar-app.is-active .phone span:before,
.toolbar-app.is-active .phone span:after {
  opacity: 1;
}

.toolbar-app .phone svg {
  width: 26px;
  height: 26px;
  fill: var(--toolbar-icon);
  animation: tada 1.2s infinite;
}

/* Thanh bar ngang màu vàng có góc khoét tròn quanh nút Phone */
.toolbar-app ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  margin: 0px;
  --size: 33px;
  -webkit-mask: radial-gradient(var(--size) at 55px 0px, #0000 99%, #000 101%)
    100%;
  mask: radial-gradient(var(--size) at 55px 0px, #0000 99%, #000 101%) 100%;
  background: var(--toolbar-bg);
  padding-left: 100px;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.toolbar-app ul li {
  text-align: center;
  width: 25%;
  line-height: 1;
}

.toolbar-app ul li a,
.toolbar-app ul li.scrollToTopMobile {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--toolbar-text);
  transition: transform 0.2s ease;
}

.toolbar-app ul li a:hover,
.toolbar-app ul li.scrollToTopMobile:hover {
  transform: scale(1.15);
}

/* Icons trong toolbar - tất cả màu đen */
.toolbar-app ul li a svg,
.toolbar-app ul li svg {
  max-height: 28px;
  width: 100%;
  fill: var(--toolbar-icon) !important;
  color: var(--toolbar-icon) !important;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.toolbar-app ul li a svg path,
.toolbar-app ul li svg path {
  fill: var(--toolbar-icon);
}

.toolbar-app ul li a svg path[fill="none"],
.toolbar-app ul li svg path[fill="none"] {
  fill: none !important;
  stroke: var(--toolbar-icon) !important;
}

.toolbar-app ul li a svg path[stroke],
.toolbar-app ul li svg path[stroke] {
  stroke: var(--toolbar-icon) !important;
}

.toolbar-app ul li a:hover svg path[stroke] {
  stroke: var(--toolbar-icon) !important;
}

.toolbar-app ul li a span {
  color: var(--toolbar-text) !important;
}

/* Scroll to top icon */
.toolbar-app ul li.scrollToTopMobile svg g,
.toolbar-app ul li.scrollToTopMobile svg path,
.ex6 path {
  fill: var(--toolbar-icon) !important;
  stroke: var(--toolbar-icon) !important;
}

/* Nút gạt ẩn / hiện toolbar góc phải */
.check-toolbar {
  position: fixed;
  right: 20px;
  bottom: 85px;
  width: 18px;
  height: 50px;
  user-select: none;
  z-index: 10000;
}

.check-toolbar label {
  position: absolute;
  bottom: 0;
  left: 6px;
  width: 6px;
  height: 50px;
  border-radius: 32px;
  background: #000000;
  border: 1px solid var(--color-toolbar);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.9;
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.5);
}

.check-toolbar label:after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: -4px;
  width: 12px;
  height: 20px;
  border-radius: 3px;
  background-color: var(--color-toolbar);
  border: 1px solid #000000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.check-toolbar input[type="checkbox"]:checked + label {
  background: var(--color-toolbar);
  border-color: #000000;
  opacity: 1;
}

.check-toolbar input[type="checkbox"]:checked + label:after {
  transform: translateY(-29px);
  background-color: #000000;
  border: 1px solid var(--color-toolbar);
}

.check-toolbar label:hover {
  opacity: 1;
}

.yep {
  position: absolute;
  top: 0px;
  left: -6px;
  width: 30px;
  height: 50px;
  opacity: 0;
  cursor: pointer;
}

/* Trạng thái ẩn/hiện */
body.hidden-toolbar .toolbar-app {
  transform: translateY(120%);
}

body.show-toolbar .toolbar-app {
  transform: translateY(0);
}

body.show-toolbar {
  padding-bottom: 49px;
}

/* Animations */
@keyframes tada {
  0% {
    transform: scaleX(1);
  }
  10%,
  20% {
    transform: scale3d(0.9, 0.9, 0.9) rotate(-3deg);
  }
  30%,
  50%,
  70%,
  90% {
    transform: scale3d(1.1, 1.1, 1.1) rotate(3deg);
  }
  40%,
  60%,
  80% {
    transform: scale3d(1.1, 1.1, 1.1) rotate(-3deg);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes quickShow {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (min-width: 992px) {
  .toolbar-app,
  .check-toolbar {
    display: none !important;
  }
  body.show-toolbar {
    padding-bottom: 0 !important;
  }
}
/* ================= KẾT THÚC CSS TOOLBAR ================= */
