/**
 * TOOLBAR HIGHLIGHT PLUGIN - CSS (Glass Edition)
 */

.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(4px)!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;
}
.ios .toolbar-highlight-enabled .toolbar-pane {
	background-color:#ffffff4a!important;
}
.ios.dark .toolbar-highlight-enabled .toolbar-pane {
	background-color: #32323287!important;
}

/* 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; 
  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, #be72bc);
}

/* 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;
  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);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--f7-glass-shadow-thumb);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.ios .toolbar-highlight-enabled .label {
    font-size: 10px !important;
}
.ios .toolbar-highlight-enabled .link i+span{
	margin-left: 0px!important;
}
.ios .toolbar-highlight-enabled .badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 20px);
    background: #be72bc;
    z-index: 6;
}