/* From Uiverse.io by kheshore */ 
.btn-conteiner {
  display: flex;
  justify-content: center;
  --color-text: #ff6b35;
  --color-background: transparent;
  --color-outline: #ff6b3580;
  --color-shadow: #00000080;
}

.btn-content {
  display: flex;
  align-items: center;
  padding: 0px 2px;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  color: var(--color-text);
  background: transparent;
  transition: 1s;
  border-radius: 100px;
  box-shadow: none;
}

.btn-content:hover,
.btn-content:focus {
  transition: 0.5s;
  -webkit-animation: btn-content 1s;
  animation: btn-content 1s;
  outline: 0.1em solid transparent;
  outline-offset: 0.2em;
  box-shadow: none;
}

.btn-content .icon-arrow {
  transition: 0.5s;
  margin-right: 0px;
  transform: scale(0.6);
}

.btn-content:hover .icon-arrow {
  transition: 0.5s;
  margin-right: 17px;
}

.icon-arrow {
  width: 13px;
  margin-left: 10px;
  position: relative;
  top: 6%;
}

/* SVG */
#arrow-icon-one {
  transition: 0.4s;
  transform: translateX(-60%);
}

#arrow-icon-two {
  transition: 0.5s;
  transform: translateX(-30%);
}

.btn-content:hover #arrow-icon-three {
  animation: color_anim 1s infinite 0.2s;
}

.btn-content:hover #arrow-icon-one {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.6s;
}

.btn-content:hover #arrow-icon-two {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.4s;
}

/* SVG animations */
@keyframes color_anim {
  0% {
    fill: white;
  }

  50% {
    fill: var(--color-background);
  }

  100% {
    fill: #ff6b35;
  }
}

/* Button animations */
@-webkit-keyframes btn-content {
  0% {
    outline: 0.2em solid var(--color-background);
    outline-offset: 0;
  }
}

@keyframes btn-content {
  0% {
    outline: 0.2em solid var(--color-background);
    outline-offset: 0;
  }
}

/* ================================================
   Dashboard Toggle Integration
   ================================================ */

/* Базовое позиционирование для dashboard toggle */
.btn-conteiner.dashboard-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

/* Состояния для свернутых панелей */
.storyboard-dashboard-wrapper.collapsed .btn-conteiner.dashboard-toggle,
.storyboard-dashboard.collapsed .btn-conteiner.dashboard-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  right: auto;
  z-index: 9999;
}

/* Поворот стрелки для свернутого состояния */
.storyboard-dashboard-wrapper.collapsed .btn-conteiner.dashboard-toggle .icon-arrow,
.storyboard-dashboard.collapsed .btn-conteiner.dashboard-toggle .icon-arrow {
  transform: scale(0.6) rotate(180deg);
}

.storyboard-dashboard-wrapper.collapsed .btn-conteiner.dashboard-toggle .btn-content:hover .icon-arrow,
.storyboard-dashboard.collapsed .btn-conteiner.dashboard-toggle .btn-content:hover .icon-arrow {
  transform: scale(0.6) rotate(180deg);
  margin-right: 17px;
}

/* Мобильные устройства */
@media (max-width: 768px) {
  .btn-conteiner.dashboard-toggle {
    position: fixed;
    left: auto;
    right: 10px;
    top: 20px;
    z-index: 9999;
  }
  
  .storyboard-dashboard.collapsed .btn-conteiner.dashboard-toggle {
    left: auto;
    right: 10px;
  }
  
  .storyboard-dashboard-wrapper.collapsed .btn-conteiner.dashboard-toggle {
    left: auto;
    right: 10px;
  }
}