/* WP Sidebar Plugin */
html.wp-sidebar-has-sidebar,
html.wp-sidebar-has-sidebar body {
  overflow-x: hidden;
}

.wp-app-sidebar {
  position: fixed;
  top: var(--wp-sidebar-top, 0px);
  left: 0;
  width: var(--wp-sidebar-expanded, 260px);
  height: calc(100vh - var(--wp-sidebar-top, 0px));
  background: #fff;
  color: #111827;
  z-index: var(--wp-sidebar-z, 9999);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
  font-family: var(--wp-sidebar-font-family, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: var(--wp-sidebar-font-size, 15px);
  transition: width 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.wp-app-sidebar-inner {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.wp-app-sidebar-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.wp-sidebar-toggle {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.wp-sidebar-toggle:hover {
  background: #e5e7eb;
}

.wp-sidebar-toggle i {
  font-size: 16px;
  transition: transform 0.25s ease;
}

.wp-sidebar-brand {
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
}

.wp-sidebar-sections {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  min-height: 0;
}

.wp-sidebar-menu-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wp-sidebar-section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wp-sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wp-sidebar-section-divider {
  display: none;
  height: 1px;
  margin: 0 8px;
  background: linear-gradient(90deg, rgba(209, 213, 219, 0), rgba(209, 213, 219, 1), rgba(209, 213, 219, 0));
}

.wp-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wp-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  color: #374151;
  text-decoration: none !important;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
}

.wp-sidebar-link:hover,
.wp-sidebar-link.is-active {
  background: #f3f4f6;
  color: #111827;
}

.wp-sidebar-link .wp-sidebar-icon {
  width: var(--wp-sidebar-icon-size, 18px);
  min-width: var(--wp-sidebar-icon-size, 18px);
  text-align: center;
  font-size: var(--wp-sidebar-icon-size, 18px);
  font-weight: 300;
  opacity: 0.92;
  flex-shrink: 0;
}

.wp-sidebar-link .wp-sidebar-icon-material {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 48;
}

.wp-sidebar-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: inherit;
}

.wp-sidebar-footer {
  padding-top: 12px;
  margin-top: 16px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wp-sidebar-footer::before {
  content: "";
  display: block;
  width: calc(100% - 24px);
  max-width: 160px;
  height: 1px;
  margin: 0 auto 12px;
  background: linear-gradient(90deg, rgba(209, 213, 219, 0), rgba(209, 213, 219, 1), rgba(209, 213, 219, 0));
}

.wp-sidebar-settings-link {
  width: 100%;
}

html.wp-sidebar-collapsed .wp-app-sidebar,
.wp-app-sidebar.is-collapsed {
  width: var(--wp-sidebar-collapsed, 85px);
}

html.wp-sidebar-collapsed .wp-app-sidebar .wp-app-sidebar-top,
.wp-app-sidebar.is-collapsed .wp-app-sidebar-top {
  justify-content: center;
}

html.wp-sidebar-collapsed .wp-app-sidebar .wp-sidebar-brand,
html.wp-sidebar-collapsed .wp-app-sidebar .wp-sidebar-label,
html.wp-sidebar-collapsed .wp-app-sidebar .wp-sidebar-section-title,
.wp-app-sidebar.is-collapsed .wp-sidebar-brand,
.wp-app-sidebar.is-collapsed .wp-sidebar-label,
.wp-app-sidebar.is-collapsed .wp-sidebar-section-title {
  display: none;
}

html.wp-sidebar-collapsed .wp-app-sidebar .wp-sidebar-section-divider,
.wp-app-sidebar.is-collapsed .wp-sidebar-section-divider {
  display: block;
}

html.wp-sidebar-collapsed .wp-app-sidebar .wp-sidebar-toggle,
.wp-app-sidebar.is-collapsed .wp-sidebar-toggle {
  margin-left: auto;
  margin-right: auto;
}

html.wp-sidebar-collapsed .wp-app-sidebar .wp-sidebar-toggle i,
.wp-app-sidebar.is-collapsed .wp-sidebar-toggle i {
  transform: rotate(180deg);
}

html.wp-sidebar-collapsed .wp-app-sidebar .wp-sidebar-nav,
.wp-app-sidebar.is-collapsed .wp-sidebar-nav {
  align-items: center;
}

html.wp-sidebar-collapsed .wp-app-sidebar .wp-sidebar-link,
.wp-app-sidebar.is-collapsed .wp-sidebar-link {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 8px;
}

html.wp-sidebar-collapsed .wp-app-sidebar .wp-sidebar-link .wp-sidebar-icon,
.wp-app-sidebar.is-collapsed .wp-sidebar-link .wp-sidebar-icon {
  width: auto;
  min-width: 0;
  margin: 0;
  font-size: var(--wp-sidebar-icon-size, 18px);
}

html.wp-sidebar-collapsed .wp-app-sidebar .wp-sidebar-footer,
.wp-app-sidebar.is-collapsed .wp-sidebar-footer {
  align-items: center;
}

html.wp-sidebar-collapsed .wp-app-sidebar .wp-sidebar-footer::before,
.wp-app-sidebar.is-collapsed .wp-sidebar-footer::before {
  width: 36px;
  max-width: 36px;
}

html.wp-sidebar-collapsed .wp-app-sidebar .wp-sidebar-settings-link,
.wp-app-sidebar.is-collapsed .wp-sidebar-settings-link {
  width: 40px;
}

.wp-sidebar-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate3d(0, 0, 0);
  background: #111827;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 7px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: calc(var(--wp-sidebar-z, 9999) + 2);
}

.wp-sidebar-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.wp-sidebar-push-target {
  transition: margin-left 0.25s ease, max-width 0.25s ease;
}

@media (max-width: 900px) {
  .wp-app-sidebar {
    transform: translateX(-100%);
    width: var(--wp-sidebar-expanded, 260px);
  }

  html.wp-sidebar-mobile-open .wp-app-sidebar {
    transform: translateX(0);
  }

  .wp-sidebar-push-target {
    margin-left: 0 !important;
    max-width: 100% !important;
  }
}
