/* Advanced Menu Sliding Panel Styles */
.advanced-menu-panel {
  position: fixed;
  right: 0;
  width: 320px;
  height: auto;
  backdrop-filter: blur(2px);
  /* border-left: 1px solid var(--tp-border-color);
  border-top: 1px solid var(--tp-border-color);
  border-bottom: 1px solid var(--tp-border-color); */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow-y: scroll !important;
  scrollbar-width: thin;
  scrollbar-color: #666 transparent;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  /* overflow-x: hidden !important; */
  -webkit-overflow-scrolling: touch;
}

/* Header section styles */
.advanced-menu-header {
  display: flex;
  align-items: center;
  padding: 10px 10px;
  background: var(--tp-container-background-color-active);
  flex-shrink: 0;
  border-bottom: 0 !important;
}

.advanced-menu-title {
  color: var(--tp-container-foreground-color);
  display: flex;
  align-items: center;
  /* vertical centering */
  justify-content: center;
  /* horizontal centering */
  position: relative;
  width: 100%;
  height: 10px;
}

.advanced-menu-panel::-webkit-scrollbar {
  width: 6px;
}

.advanced-menu-panel::-webkit-scrollbar-track {
  background: transparent;
}

.advanced-menu-panel::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 3px;
}

.advanced-menu-panel::-webkit-scrollbar-thumb:hover {
  background: #888;
}

/* Toggle Button Styles */
.advanced-menu-toggle {
  position: absolute;
  right: 0px;
  width: calc(var(--tp-container-unit-size));
  height: calc(var(--tp-container-unit-size));
  backdrop-filter: blur(1px);
  background: var(--tp-container-background-color-active);
  border: 1px solid var(--tp-border-color);
  border-right: none;
  border-radius: 0;
  color: var(--tp-container-foreground-color);
  cursor: pointer;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Close Button Styles */
.advanced-menu-close {
  position: static;
  width: 20px;
  height: 20px;
  color: var(--tp-container-foreground-color);
  transition: all 0.2s ease;
  opacity: 0.7;
  flex-shrink: 0;
  white-space: nowrap;

  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .advanced-menu-panel {
    width: 100vw;
    max-width: 320px;
  }
/* 
  .advanced-menu-toggle {
    right: 0px;
    width: var(--tp-container-unit-size);
    height: var(--tp-container-unit-size);
  }

  .advanced-menu-close {
    width: 18px;
    height: 18px;
  } */
}

@media (max-width: 480px) {
  .advanced-menu-panel {
    width: 100vw;
  }

  /* .advanced-menu-toggle {
    right: 0px;
    width: 40px;
    height: 40px;
  } */
}

/* Keyboard Accessibility */
.advanced-menu-close:focus {
  outline: 2px solid var(--tp-button-foreground-color);
  outline-offset: 2px;
}

/* Animation for panel content */
.advanced-menu-panel .tp-pnlv {
  animation: slideInContent 0.3s ease-out 0.1s both;
}

@keyframes slideInContent {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tp-lblv {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.tp-btnv_b {
  border-color: var(--tp-border-color) !important;
  border-radius: var(--tp-base-border-radius) !important;
  border-width: 1px !important;
  line-height: 0 !important;
}

.tp-btnv_b:hover {
  background-color: var(--btn-bg) !important;
}

.tp-btnv_b:active {
  background-color: var(--btn-bg) !important;
}

.tp-lstv_s {
  border-color: var(--tp-border-color) !important;
  border-width: 1px !important;
}

.tp-sldv_k::after {
  background-color: var(--tp-button-foreground-color) !important;
}

.tp-popv {
  max-width: 100% !important;
}

.tp-grlv_g {
  height: calc(var(--cnt-usz)) !important;
}

.tp-fldv {
  background-color: var(--bs-bg) !important;
}

.tp-fldv_b {
  background-color: transparent !important;
}

.tp-fldv_b:hover {
  background-color: transparent !important;
}

.tp-fldv_b:active {
  background-color: transparent !important;
}

.tp-fldv_c {
  padding-right: 0px !important;
  padding-right: var(--cnt-hp) !important;
}

.tp-fldv_c>.tp-cntv {
  margin-left: 0 !important;
}

.tp-fldv_c>.tp-cntv.tp-v-lst {
  margin-bottom: 0 !important;
}

.tp-rotv {
  /* margin-inline: -1px !important; */
}

.tp-rotv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv {
  margin-top: var(--cnt-hp) !important;
}

.tp-cntv {
  border: 1px solid var(--tp-border-color) !important;
  border-radius: 0 !important;
}

.tp-radv_b {
  background-color: transparent !important;
}

.tp-radv:has(.tp-radv_i:checked) {
  background-color: var(--tp-container-background-color-focus) !important;
}

.tp-radv:not(:has(.tp-radv_i:checked)) {
  background-color: var(--btn-bg) !important;
}

.tp-radv {
  border: 1px solid var(--tp-border-color) !important;
}
.tp-radgridv {
  border-radius: 0 !important;
}

.tp-radv:first-child {
  border-radius: var(--tp-base-border-radius) 0 0 var(--tp-base-border-radius) !important;
}
.tp-radv:last-child {
  border-radius: 0 var(--tp-base-border-radius) var(--tp-base-border-radius) 0 !important;
}

.tp-rotv {
  border-radius: 0 !important;
  border: 1px solid var(--tp-border-color);
}

.tp-rotv_c {
  padding-left: var(--cnt-hp) !important;
  padding-right: var(--cnt-hp) !important;
  margin-bottom: var(--cnt-hp) !important;
}

.tp-fldv_i {
  width: 0 !important;
}

.tp-fldv_i::before {
  width: 0 !important;
}

.tp-tabv_i {
  width: 0 !important;
}

.tp-tabv_t::before {
  height: 0 !important;
}

.tp-tabv_t,
.tp-tbiv,
.tp-tabv_t::before,
.tp-tbiv_b,
.tp-tbiv_b::before {
  background-color: transparent !important;
  /* color: red !important; */
  border-radius: 0 !important;
  inset: 0 0 0 !important;
}

.tp-tbiv:not(.tp-tbiv-sel) .tp-tbiv_b {
  cursor: pointer;
}

.tp-tbpv_c {
  margin-right: var(--cnt-hp) !important;
}

.tp-tbiv-sel {
  font-weight: bold !important;
  color: #fff !important;
}

.tp-tbiv-sel .tp-tbiv_t::before {
  border-radius: 16px !important;
  content: "";
  position: absolute;
  top: 5px;
  right: 15px;
  bottom: 5px;
  left: 15px;
  background: #9999 !important;
  /* inner background */
  border-radius: 6px !important;
  /* keep same rounded corners */
  z-index: 0;
  /* behind content */
}

.tp-sldv_t::before {
  background-color: #6669 !important;
}

.tp-sldv_k::before,
.tp-sldv_t::before {
  height: 4px !important;
  border-radius: 2px !important;
}

.tp-sprv_r {
  background-color: var(--tp-border-color) !important;
  height: 0.5px !important;
}

:root {
  --tp-base-background-color: #3336;
  --tp-base-shadow-color: hsla(0, 0%, 0%, 0.20);
  --tp-button-background-color: #3339;
  --tp-button-background-color-active: #3339;
  --tp-button-background-color-focus: #3339;
  --tp-button-background-color-hover: #3339;
  --tp-button-foreground-color: #fff;
  --tp-container-background-color: hsla(0, 0%, 0%, 0.30);
  --tp-container-background-color-active: hsla(0, 0%, 0%, 0.60);
  --tp-container-background-color-focus: hsla(0, 0%, 0%, 0.50);
  --tp-container-background-color-hover: hsla(0, 0%, 0%, 0.40);
  --tp-container-foreground-color: hsl(0, 0%, 100%);
  --tp-groove-foreground-color: hsla(0, 0%, 0%, 0.20);
  --tp-input-background-color: #3339;
  --tp-input-background-color-active: #3339;
  --tp-input-background-color-focus: #3339;
  --tp-input-background-color-hover: #3339;
  --tp-input-foreground-color: hsla(0, 0%, 100%, 0.60);
  --tp-label-foreground-color: hsla(0, 0%, 100%, 0.80);
  --tp-monitor-background-color: hsla(0, 0%, 0%, 0.30);
  --tp-monitor-foreground-color: hsla(0, 0%, 100%, 0.60);
  --tp-base-font-family: Inter, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;

  /* --tp-blade-label-width: 100px; */
  --tp-blade-value-width: calc(100% - 100px);
  --tp-container-unit-size: 32px;
  --tp-base-border-radius: 8px;
  --tp-blade-border-radius: 8px;

  /* Custom var */
  --tp-border-color: #c1c1c166;
}

input[type="text"] {
  text-align: center;
}

select {
  text-align: center;
  text-align-last: center;
}
