/**
 * TOOLBAR HIGHLIGHT PLUGIN - CSS
 * Zurück zu: Schneller Bounce & Schneller Weg
 */

.ios .toolbar-highlight-enabled::before {
  backdrop-filter: blur(1px);
  mask-image: linear-gradient(to top,#000 calc(50% + var(--f7-safe-area-bottom, 0px)),#0000 100%);
}

/* 1. BASIS LAYOUT & CONTAINER */
html.device-standalone.ios .toolbar-highlight-enabled {
  bottom:-20px;
}

.ios .toolbar-highlight-enabled .toolbar-pane {
  display: flex !important;
  position: relative !important;
  backdrop-filter: saturate(180%) blur(16px)!important;
  background-color: var(--f7-glass-bg-color);
  flex: 1;
  height: 100%;  
  min-height: 68px;
  margin:0 2px;
  align-items: stretch;
  overflow: visible !important; 
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* 2. LINK STYLING */
.ios .toolbar-highlight-enabled .link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;  
  position: relative;
  z-index: 5; 
  color: var(--f7-toolbar-link-color, #757575);
  transition: transform 100ms linear, color 250ms;
  will-change: transform;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
.ios .toolbar-highlight-enabled .link-active { 
  color: var(--f7-toolbar-link-active-color, #ff0000);
}

/* 3. DAS ZENTRALE HIGHLIGHT ELEMENT */
.ios .toolbar-highlight {
  position: absolute;
  left: 0;
  top: 0px;
  bottom: 0px;
  border-radius: 100px;
  pointer-events: none;
  display: block !important;
  z-index: 1;
  opacity: 0;
  will-change: transform, width, top, bottom;
  /* Schnelle 350ms für alles */
  transition: 
    transform 350ms cubic-bezier(0.175, 0.885, 0.42, 1.315), 
    width 350ms cubic-bezier(0.175, 0.885, 0.42, 1.315), 
    opacity 200ms,
    top 300ms cubic-bezier(0.175, 0.885, 0.42, 1.315), 
    bottom 300ms cubic-bezier(0.175, 0.885, 0.42, 1.315);
}

.ios .toolbar-highlight:before {
  content: "";
  position: absolute;
  inset: 4px; 
  border-radius: 35px;
  background-color: var(--f7-tabbar-link-highlight-bg-color, rgba(0,0,0,0.05));
  transition: inset 300ms cubic-bezier(0.175, 0.885, 0.42, 1.315), background-color 250ms;
}

.ios .toolbar-highlight.is-active {
  z-index: 2;
  top: -4px;
  bottom: -4px;
}

.ios .toolbar-highlight.is-active:before {
  inset: 0px; 
  background-color: var(--f7-tabbar-link-highlight-active-bg-color);
  box-shadow: var(--f7-glass-shadow-thumb);
}

.ios .toolbar-highlight-enabled .label{
    font-size:10px!important;
}
