/* ========================================== */
/* LIQUID GLASS CSS ДЛЯ FRAPPE - DOTTED BACKGROUND */
/* ========================================== */

/* CSS Properties для анимации */
@property --angle-cards {
  syntax: "<angle>";
  inherits: false;
  initial-value: -75deg;
}

@property --angle-highlight {
  syntax: "<angle>";
  inherits: false;
  initial-value: -45deg;
}

:root {
  --anim--hover-time: 400ms;
  --anim--hover-ease: cubic-bezier(0.25, 1, 0.5, 1);
  /* Быстрая анимация для свернутого sidebar */
  --anim--sidebar-time: 120ms;
  --anim--sidebar-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================ */
/* ФОНОВЫЙ ПАТТЕРН С ТОЧКАМИ */
/* ============================================ */

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(235, 235, 235, 1);
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.18) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0;
    z-index: -1;
}

body,
.page-container {
    background: transparent !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.layout-main {
    background: transparent !important;
}

/* WORKSPACE - ПРОЗРАЧНЫЙ */
[data-page-route=Workspaces] .layout-main-section {
    background: transparent !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
}

/* ============================================ */
/* LIQUID GLASS КАРТОЧКИ */
/* ============================================ */

/* Исключение для spacer виджетов - делаем их дефолтными */
.widget.spacer {
    all: revert !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
}

.widget.spacer::before,
.widget.spacer::after {
    display: none !important;
}

.widget.widget:not(.spacer),
.standard-sidebar-section.standard-sidebar-section,
.frappe-card.frappe-card,
.dashboard-widget-box.dashboard-widget-box,
[data-page-route=Workspaces] .widget:not(.spacer),
[data-page-route=Workspaces] .frappe-card,
.page-container .widget:not(.spacer),
.page-container .frappe-card {
    --border-width: 2.5px;
    position: relative !important;
    background: 
        /* Shine слой (сверху) */
        linear-gradient(
            var(--angle-highlight),
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.5) 40% 50%,
            rgba(255, 255, 255, 0) 55%
        ),
        /* Основной glass эффект */
        linear-gradient(
            -75deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.05)
        ) !important;
    background-size: 200% 200%, 100% 100% !important;
    background-position: 0% 50%, 0% 0% !important;
    background-repeat: no-repeat !important;
    background-blend-mode: screen, normal !important;
    border-radius: 16px !important;
    box-shadow: 
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
        0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
        0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.5),
        0 0 0 0 rgba(255, 255, 255, 1) !important;
    backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    -moz-backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    -ms-backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    border: none !important;
    transform: translateZ(0) !important;
    transition: all var(--anim--hover-time) var(--anim--hover-ease), 
        background-position calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease),
        --angle-highlight calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease) !important;
    overflow: visible !important;
}

/* Border с conic gradient - БЕЗ ЧЕРНЫХ ЦВЕТОВ */
.widget:not(.spacer)::after,
.standard-sidebar-section::after,
.frappe-card::after,
.dashboard-widget-box::after {
    content: "" !important;
    position: absolute !important;
    z-index: 1 !important;
    inset: 0 !important;
    border-radius: 16px !important;
    width: calc(100% + var(--border-width)) !important;
    height: calc(100% + var(--border-width)) !important;
    top: calc(0% - var(--border-width) / 2) !important;
    left: calc(0% - var(--border-width) / 2) !important;
    padding: var(--border-width) !important;
    box-sizing: border-box !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)) !important;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
    -webkit-mask-composite: xor !important;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
    mask-composite: exclude !important;
    transition: all var(--anim--hover-time) var(--anim--hover-ease), --angle-cards 500ms ease !important;
    box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(255, 255, 255, 0.5) !important;
    pointer-events: none !important;
}

/* ТЕНЬ */
.widget:not(.spacer)::before,
.standard-sidebar-section::before,
.frappe-card::before,
.dashboard-widget-box::before {
    content: "" !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    top: 4px !important;
    left: 0 !important;
    border-radius: 16px !important;
    pointer-events: none !important;
    z-index: -1 !important;
    filter: blur(6px) !important;
    -webkit-filter: blur(6px) !important;
    -moz-filter: blur(6px) !important;
    -ms-filter: blur(6px) !important;
    opacity: 0.8 !important;
    transition: all var(--anim--hover-time) var(--anim--hover-ease) !important;
}

/* Hover эффект */
.widget:not(.spacer):hover,
.frappe-card:hover,
.dashboard-widget-box:hover {
    transform: scale(0.975) translateZ(0) !important;
    backdrop-filter: blur(0.01em) !important;
    -webkit-backdrop-filter: blur(0.01em) !important;
    -moz-backdrop-filter: blur(0.01em) !important;
    -ms-backdrop-filter: blur(0.01em) !important;
    box-shadow: 
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
        0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
        0 0 0.1em 0.2em inset rgba(255, 255, 255, 0.4),
        0 0 0 0 rgba(255, 255, 255, 1) !important;
    background-position: 25% 50%, 0% 0% !important;
}

.widget.dashboard-widget-box:hover,
.widget.links-widget-box:hover {
    transform: scale(1) translateZ(0) !important;
}

.widget:not(.spacer):hover::after,
.frappe-card:hover::after,
.dashboard-widget-box:hover::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.5)) !important;
    box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(255, 255, 255, 0.6) !important;
}

.widget:not(.spacer):hover::before,
.frappe-card:hover::before,
.dashboard-widget-box:hover::before {
    top: 6px !important;
    filter: blur(8px) !important;
    -webkit-filter: blur(8px) !important;
    -moz-filter: blur(8px) !important;
    -ms-filter: blur(8px) !important;
    opacity: 1 !important;
}

/* Active эффект (только для shortcut-widget-box) */
.widget.shortcut-widget-box:not(.spacer):active,
.frappe-card:active {
    transform: rotate3d(1, 0, 0, 25deg) translateZ(0) !important;
    box-shadow: 
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
        0 0.125em 0.125em -0.125em rgba(0, 0, 0, 0.2),
        0 0 0.1em 0.2em inset rgba(255, 255, 255, 0.3),
        0 0.225em 0.05em 0 rgba(0, 0, 0, 0.15),
        0 0.35em 0.1em 0 rgba(0, 0, 0, 0.1),
        0 0.5em 0 0 rgba(255, 255, 255, 0.75),
        inset 0 0.25em 0.05em 0 rgba(0, 0, 0, 0.15) !important;
    background-position: 50% 15%, 0% 0% !important;
    --angle-highlight: -15deg;
}

.widget.shortcut-widget-box:not(.spacer):active::after,
.frappe-card:active::after {
    --angle-cards: -75deg;
}

.widget.shortcut-widget-box:not(.spacer):active::before,
.frappe-card:active::before {
    top: 8px !important;
    filter: blur(10px) !important;
    -webkit-filter: blur(10px) !important;
    -moz-filter: blur(10px) !important;
    -ms-filter: blur(10px) !important;
    opacity: 0.9 !important;
}

/* Контент внутри карточек */
.widget:not(.spacer) > *,
.frappe-card > *,
.dashboard-widget-box > * {
    position: relative !important;
    z-index: 2 !important;
}

/* ============================================ */
/* ЦВЕТА ТЕКСТА НА КАРТОЧКАХ */
/* ============================================ */

.widget:not(.spacer) h1, .widget:not(.spacer) h2, .widget:not(.spacer) h3, .widget:not(.spacer) h4, .widget:not(.spacer) h5, .widget:not(.spacer) h6,
.frappe-card h1, .frappe-card h2, .frappe-card h3, .frappe-card h4, .frappe-card h5, .frappe-card h6,
.dashboard-widget-box h1, .dashboard-widget-box h2, .dashboard-widget-box h3, .dashboard-widget-box h4, .dashboard-widget-box h5, .dashboard-widget-box h6 {
    color: rgba(50, 50, 50, 1) !important;
    text-shadow: 0em 0.25em 0.05em rgba(0, 0, 0, 0.1) !important;
    transition: text-shadow var(--anim--hover-time) var(--anim--hover-ease) !important;
}

.widget:not(.spacer), .widget:not(.spacer) p, .widget:not(.spacer) span, .widget:not(.spacer) div, .widget:not(.spacer) label,
.frappe-card, .frappe-card p, .frappe-card span, .frappe-card div, .frappe-card label,
.dashboard-widget-box, .dashboard-widget-box p, .dashboard-widget-box span, .dashboard-widget-box div, .dashboard-widget-box label,
.widget:not(.spacer) .indicator-pill, .frappe-card .indicator-pill, .dashboard-widget-box .indicator-pill {
    color: rgba(50, 50, 50, 1) !important;
    text-shadow: 0em 0.25em 0.05em rgba(0, 0, 0, 0.1) !important;
    transition: text-shadow var(--anim--hover-time) var(--anim--hover-ease) !important;
}

.widget:not(.spacer):hover h1, .widget:not(.spacer):hover h2, .widget:not(.spacer):hover h3, .widget:not(.spacer):hover h4, .widget:not(.spacer):hover h5, .widget:not(.spacer):hover h6,
.frappe-card:hover h1, .frappe-card:hover h2, .frappe-card:hover h3, .frappe-card:hover h4, .frappe-card:hover h5, .frappe-card:hover h6,
.dashboard-widget-box:hover h1, .dashboard-widget-box:hover h2, .dashboard-widget-box:hover h3, .dashboard-widget-box:hover h4, .dashboard-widget-box:hover h5, .dashboard-widget-box:hover h6,
.widget:not(.spacer):hover, .widget:not(.spacer):hover p, .widget:not(.spacer):hover span, .widget:not(.spacer):hover div, .widget:not(.spacer):hover label,
.frappe-card:hover, .frappe-card:hover p, .frappe-card:hover span, .frappe-card:hover div, .frappe-card:hover label,
.dashboard-widget-box:hover, .dashboard-widget-box:hover p, .dashboard-widget-box:hover span, .dashboard-widget-box:hover div, .dashboard-widget-box:hover label,
.widget:not(.spacer):hover .indicator-pill, .frappe-card:hover .indicator-pill, .dashboard-widget-box:hover .indicator-pill {
    text-shadow: 0.025em 0.025em 0.025em rgba(0, 0, 0, 0.12) !important;
}

.widget.shortcut-widget-box:not(.spacer):active h1, .widget.shortcut-widget-box:not(.spacer):active h2, .widget.shortcut-widget-box:not(.spacer):active h3, .widget.shortcut-widget-box:not(.spacer):active h4, .widget.shortcut-widget-box:not(.spacer):active h5, .widget.shortcut-widget-box:not(.spacer):active h6,
.frappe-card:active h1, .frappe-card:active h2, .frappe-card:active h3, .frappe-card:active h4, .frappe-card:active h5, .frappe-card:active h6,
.widget.shortcut-widget-box:not(.spacer):active, .widget.shortcut-widget-box:not(.spacer):active p, .widget.shortcut-widget-box:not(.spacer):active span,
.frappe-card:active, .frappe-card:active p, .frappe-card:active span,
.widget.shortcut-widget-box:not(.spacer):active .indicator-pill, .frappe-card:active .indicator-pill {
    text-shadow: 0.025em 0.25em 0.05em rgba(0, 0, 0, 0.12) !important;
}

.widget:not(.spacer) a, .frappe-card a, .dashboard-widget-box a {
    color: rgba(50, 50, 50, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    transition: color 300ms !important;
}

.widget:not(.spacer) a:hover, .frappe-card a:hover, .dashboard-widget-box a:hover {
    color: rgba(30, 30, 30, 1) !important;
}

.widget:not(.spacer) .text-muted, .widget:not(.spacer) small,
.frappe-card .text-muted, .frappe-card small,
.dashboard-widget-box .text-muted, .dashboard-widget-box small {
    color: rgba(50, 50, 50, 0.65) !important;
}

.widget:not(.spacer) svg, .frappe-card svg, .dashboard-widget-box svg {
    stroke: rgba(50, 50, 50, 0.85) !important;
    fill: rgba(50, 50, 50, 0.85) !important;
}

/* ============================================ */
/* БОКОВОЕ МЕНЮ И NAVBAR - LIQUID GLASS */
/* ============================================ */

.body-sidebar {
    background: #ffffff00;
    /* backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important; */
    /* -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important; */
    border-right: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.02),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.25),
        2px 0 20px rgba(0, 0, 0, 0.08) !important;
}

.body-sidebar-top,
.body-sidebar-bottom {
    background: transparent !important;
}

/* Body-sidebar-bottom в развернутом виде */
.body-sidebar-container.expanded .body-sidebar-bottom {
    padding: 12px 8px !important;
}

.standard-sidebar-item {
    background: transparent !important;
    border-radius: 8px !important;
    transition: none !important;
}

.standard-sidebar-item:hover,
.sidebar-item-container:hover > .standard-sidebar-item {
    position: relative !important;
    background: transparent !important;
    border-radius: 8px !important;
    transform: none !important;
}

.standard-sidebar-item:hover::before,
.sidebar-item-container:hover > .standard-sidebar-item::before {
    display: none !important;
}

/* ============================================ */
/* РАЗВЕРНУТЫЙ SIDEBAR - LIQUID GLASS СТИЛЬ */
/* ============================================ */

/* Базовые стили для развернутого sidebar */
.body-sidebar-container.expanded .standard-sidebar-item {
    position: relative !important;
    background: transparent !important;
    border-radius: 12px !important;
    padding: 0 !important;
    margin: 2px 0 !important;
    display: block !important;
    transition: none !important;
    overflow: visible !important;
    cursor: pointer !important;
}

/* Ссылка занимает всю площадь */
.body-sidebar-container.expanded .standard-sidebar-item > a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    position: relative !important;
    z-index: 2 !important;
    text-decoration: none !important;
    width: 100% !important;
    min-height: 44px !important;
}

/* Псевдоэлемент для liquid glass эффекта */
.body-sidebar-container.expanded .standard-sidebar-item::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    pointer-events: none !important;
    z-index: -1 !important;
    transform: translateZ(0) !important;
    transition: transform var(--anim--sidebar-time) var(--anim--sidebar-ease),
                background var(--anim--sidebar-time) var(--anim--sidebar-ease),
                box-shadow var(--anim--sidebar-time) var(--anim--sidebar-ease),
                backdrop-filter var(--anim--sidebar-time) var(--anim--sidebar-ease) !important;
}

/* Убираем старый hover эффект */
.body-sidebar-container.expanded .standard-sidebar-item:hover::before {
    display: none !important;
}

/* АКТИВНЫЙ элемент - liquid glass */
.body-sidebar-container.expanded .standard-sidebar-item.active-sidebar::before,
.body-sidebar-container.expanded .standard-sidebar-item.selected::before,
.body-sidebar-container.expanded .standard-sidebar-item.active::before,
.body-sidebar-container.expanded .sidebar-item-container.selected .standard-sidebar-item::before,
.body-sidebar-container.expanded .sidebar-item-container.active .standard-sidebar-item::before {
    background: 
        linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.5) 40% 50%,
            rgba(255, 255, 255, 0) 55%
        ),
        linear-gradient(
            -75deg,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.25),
            rgba(255, 255, 255, 0.1)
        ) !important;
    background-size: 200% 200%, 100% 100% !important;
    background-position: 0% 50%, 0% 0% !important;
    background-repeat: no-repeat !important;
    background-blend-mode: screen, normal !important;
    box-shadow: 
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.04),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
        0 0.2em 0.15em -0.1em rgba(0, 0, 0, 0.2),
        0 0 0.15em 0.2em inset rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
}

/* HOVER эффект */
.body-sidebar-container.expanded .standard-sidebar-item:hover::before {
    display: block !important;
    background: 
        linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.35) 40% 50%,
            rgba(255, 255, 255, 0) 55%
        ),
        linear-gradient(
            -75deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.05)
        ) !important;
    background-size: 200% 200%, 100% 100% !important;
    background-position: 25% 50%, 0% 0% !important;
    background-repeat: no-repeat !important;
    background-blend-mode: screen, normal !important;
    transform: scale(0.98) translateZ(0) !important;
    backdrop-filter: blur(0.01em) !important;
    -webkit-backdrop-filter: blur(0.01em) !important;
    box-shadow: 
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.02),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.35),
        0 0.15em 0.1em -0.05em rgba(0, 0, 0, 0.15),
        0 0 0.1em 0.15em inset rgba(255, 255, 255, 0.35) !important;
}

/* ACTIVE эффект при клике */
.body-sidebar-container.expanded .standard-sidebar-item:active::before {
    transform: scale(0.96) translateZ(0) !important;
    box-shadow: 
        inset 0 0.15em 0.15em rgba(0, 0, 0, 0.05),
        inset 0 -0.1em 0.1em rgba(255, 255, 255, 0.25),
        0 0.05em 0.05em -0.05em rgba(0, 0, 0, 0.15),
        0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.25),
        inset 0 0.15em 0.05em 0 rgba(0, 0, 0, 0.1) !important;
    background: 
        linear-gradient(
            -15deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 40% 50%,
            rgba(255, 255, 255, 0) 55%
        ),
        linear-gradient(
            -75deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.02)
        ) !important;
    background-size: 200% 200%, 100% 100% !important;
    background-position: 50% 15%, 0% 0% !important;
}

/* Контент внутри кнопок */
.body-sidebar-container.expanded .standard-sidebar-item > *,
.body-sidebar-container.expanded .standard-sidebar-item > a > * {
    position: relative !important;
    z-index: 2 !important;
}

/* Контейнер d-flex внутри ссылки */
.body-sidebar-container.expanded .standard-sidebar-item .d-flex {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    pointer-events: none !important;
}

.body-sidebar-container.expanded .standard-sidebar-item .d-flex > * {
    pointer-events: auto !important;
}

/* Вложенные элементы (child items) */
.body-sidebar-container.expanded .sidebar-child-item .standard-sidebar-item {
    margin-left: 8px !important;
    padding-left: 32px !important;
}

.body-sidebar-container.expanded .sidebar-child-item .standard-sidebar-item::before {
    border-radius: 10px !important;
}

/* Убираем дефолтный hover эффект для child items */
.body-sidebar-container.expanded .sidebar-child-item .standard-sidebar-item:hover {
    background: transparent !important;
}

/* ============================================ */
/* ФИКСАЦИЯ ИКОНОК В РАЗВЕРНУТОМ САЙДБАРЕ */
/* ============================================ */

.body-sidebar-container.expanded .sidebar-item-icon {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    width: 22px !important;
    height: 22px !important;
    margin-right: 14px !important;
    transform: translateZ(0) !important;
    transition: none !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

.body-sidebar-container.expanded .sidebar-item-icon svg,
.body-sidebar-container.expanded .sidebar-item-icon img,
.body-sidebar-container.expanded .sidebar-item-icon svg.icon,
.body-sidebar-container.expanded .sidebar-item-icon svg.icon-md,
.body-sidebar-container.expanded .standard-sidebar-item .sidebar-item-icon svg,
.body-sidebar-container.expanded .standard-sidebar-item .sidebar-item-icon img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    transform: translateZ(0) !important;
    transition: none !important;
    shape-rendering: geometricPrecision !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

.body-sidebar-container.expanded .sidebar-item-label,
.body-sidebar-container.expanded .standard-sidebar-item .sidebar-item-label {
    flex: 1 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    transform: translateZ(0) !important;
    transition: none !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    color: rgba(50, 50, 50, 0.9) !important;
}

/* App logo в app-switcher */
.body-sidebar-container.expanded .app-logo-container img.app-logo,
.body-sidebar-container.expanded .app-logo-container .app-logo {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
}

.body-sidebar-container.expanded .app-title {
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* Стрелка dropdown */
.body-sidebar-container.expanded .sidebar-item-control {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    pointer-events: auto !important;
}

.body-sidebar-container.expanded .sidebar-item-control .drop-icon svg,
.body-sidebar-container.expanded .sidebar-item-control svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
}

/* ============================================ */
/* APP SWITCHER И ДРОПДАУНЫ */
/* ============================================ */

/* App switcher в развернутом виде - тоже liquid glass */
.body-sidebar-container.expanded .app-switcher-dropdown .standard-sidebar-item {
    position: relative !important;
    background: transparent !important;
    border-radius: 12px !important;
    padding: 0 !important;
}

.body-sidebar-container.expanded .app-switcher-dropdown .standard-sidebar-item > a,
.body-sidebar-container.expanded .app-switcher-dropdown {
    display: flex !important;
    align-items: center !important;
    padding: 12px 14px !important;
    width: 100% !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    min-height: 48px !important;
}

.body-sidebar-container.expanded .app-switcher-dropdown .standard-sidebar-item::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 12px !important;
    background: 
        linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 40% 50%,
            rgba(255, 255, 255, 0) 55%
        ),
        linear-gradient(
            -75deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.18),
            rgba(255, 255, 255, 0.08)
        ) !important;
    background-size: 200% 200%, 100% 100% !important;
    background-position: 0% 50%, 0% 0% !important;
    background-repeat: no-repeat !important;
    background-blend-mode: screen, normal !important;
    box-shadow: 
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.03),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.4),
        0 0.15em 0.1em -0.05em rgba(0, 0, 0, 0.15),
        0 0 0.1em 0.15em inset rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    pointer-events: none !important;
    z-index: -1 !important;
    transition: transform var(--anim--sidebar-time) var(--anim--sidebar-ease),
                background var(--anim--sidebar-time) var(--anim--sidebar-ease),
                box-shadow var(--anim--sidebar-time) var(--anim--sidebar-ease) !important;
}

.body-sidebar-container.expanded .app-switcher-dropdown .standard-sidebar-item:hover::before {
    display: block !important;
    transform: scale(0.98) translateZ(0) !important;
    background-position: 25% 50%, 0% 0% !important;
}

.app-switcher-dropdown .standard-sidebar-item {
    background: transparent !important;
}

.app-switcher-menu {
    background: linear-gradient(
        -75deg,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.02)
    ) !important;
    backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.02),
        0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.15) !important;
}

.app-item:hover {
    background: linear-gradient(
        -75deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.05)
    ) !important;
    border-radius: 8px !important;
    transform: scale(0.98) !important;
}

.navbar {
    background: linear-gradient(
        -75deg,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.02)
    ) !important;
    backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.02),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.25),
        0 2px 20px rgba(0, 0, 0, 0.08) !important;
}

.sticky-top {
    background: transparent !important;
}

.search-bar {
    background: linear-gradient(
        -75deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.05)
    ) !important;
    backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 
        inset 0 0.05em 0.05em rgba(0, 0, 0, 0.02),
        inset 0 -0.05em 0.05em rgba(255, 255, 255, 0.25) !important;
}

.search-bar input {
    background: transparent !important;
    border: none !important;
}

.dropdown-menu {
    background: linear-gradient(
        -75deg,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.02)
    ) !important;
    backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.02),
        0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.15) !important;
}

.dropdown-item:hover {
    background: linear-gradient(
        -75deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.05)
    ) !important;
    border-radius: 8px !important;
    transform: scale(0.98) !important;
}

.notifications-list {
    background: linear-gradient(
        -75deg,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.02)
    ) !important;
    backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.notification-list-header,
.notification-list-body {
    background: transparent !important;
}

.notification-item:hover {
    background: linear-gradient(
        -75deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.05)
    ) !important;
    border-radius: 8px !important;
    transform: scale(0.98) !important;
}

.body-sidebar .sidebar-item-icon svg {
    stroke: rgba(50, 50, 50, 0.85) !important;
}

.body-sidebar .sidebar-item-label,
.body-sidebar-bottom a {
    color: rgba(50, 50, 50, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================ */
/* КРУГЛЫЕ LIQUID GLASS ИКОНКИ ДЛЯ СВЕРНУТОГО SIDEBAR */
/* ============================================ */

/* Базовые размеры контейнера */
.body-sidebar-container:not(.expanded) .body-sidebar-placeholder {
    width: 68px !important;
    min-width: 68px !important;
}

.body-sidebar-container:not(.expanded) .body-sidebar {
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 0px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Flex-контейнеры с центрированием */
.body-sidebar-container:not(.expanded) .body-sidebar-top {
    width: 54px !important;
    max-width: 54px !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
    padding-bottom: 12px !important;
}

.body-sidebar-container:not(.expanded) .sidebar-items,
.body-sidebar-container:not(.expanded) .standard-sidebar-section {
    width: 54px !important;
    max-width: 54px !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
}

/* Контейнер иконки - фиксированный размер */
.body-sidebar-container:not(.expanded) .sidebar-item-container,
.body-sidebar-container:not(.expanded) .sidebar-item-container.is-draggable {
    width: 46px !important;
    max-width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    max-height: 46px !important;
    min-height: 46px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

/* БАЗОВЫЙ СТИЛЬ - круглая кнопка */
.body-sidebar-container:not(.expanded) .standard-sidebar-item,
.body-sidebar-container:not(.expanded) .sidebar-item-container .standard-sidebar-item {
    position: relative !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: translateZ(0) !important;
    transform-origin: center center !important;
    transition: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    isolation: isolate !important;
}

/* Ссылка внутри должна заполнять весь круг */
.body-sidebar-container:not(.expanded) .standard-sidebar-item > a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 50% !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Псевдоэлемент ::before для визуальных эффектов - БЫСТРАЯ АНИМАЦИЯ */
.body-sidebar-container:not(.expanded) .standard-sidebar-item::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    background: transparent !important;
    pointer-events: none !important;
    z-index: -1 !important;
    transform: scale(1) translateZ(0) !important;
    transform-origin: center center !important;
    /* БЫСТРАЯ анимация для свернутого sidebar */
    transition: transform var(--anim--sidebar-time) var(--anim--sidebar-ease),
                background var(--anim--sidebar-time) var(--anim--sidebar-ease),
                box-shadow var(--anim--sidebar-time) var(--anim--sidebar-ease),
                backdrop-filter var(--anim--sidebar-time) var(--anim--sidebar-ease) !important;
}

.body-sidebar-container:not(.expanded) .standard-sidebar-item::after {
    display: none !important;
}

/* LIQUID GLASS ДЛЯ АКТИВНОГО ПУНКТА МЕНЮ - только ::before масштабируется */
.body-sidebar-container:not(.expanded) .standard-sidebar-item.active-sidebar::before,
.body-sidebar-container:not(.expanded) .standard-sidebar-item.selected::before,
.body-sidebar-container:not(.expanded) .standard-sidebar-item.active::before,
.body-sidebar-container:not(.expanded) .sidebar-item-container.selected .standard-sidebar-item::before,
.body-sidebar-container:not(.expanded) .sidebar-item-container.active .standard-sidebar-item::before,
.body-sidebar-container:not(.expanded) .sidebar-item-container[data-page-name][class*="active"] .standard-sidebar-item::before {
    --border-width: 2.5px;
    background: 
        linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 40% 50%,
            rgba(255, 255, 255, 0) 55%
        ),
        linear-gradient(
            -75deg,
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0.35),
            rgba(255, 255, 255, 0.15)
        ) !important;
    background-size: 200% 200%, 100% 100% !important;
    background-position: 0% 50%, 0% 0% !important;
    background-repeat: no-repeat !important;
    background-blend-mode: screen, normal !important;
    box-shadow: 
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.06),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.6),
        0 0.3em 0.2em -0.1em rgba(0, 0, 0, 0.3),
        0 0 0.2em 0.25em inset rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
}

.body-sidebar-container:not(.expanded) .standard-sidebar-item.active-sidebar,
.body-sidebar-container:not(.expanded) .standard-sidebar-item.selected,
.body-sidebar-container:not(.expanded) .standard-sidebar-item.active,
.body-sidebar-container:not(.expanded) .sidebar-item-container.selected .standard-sidebar-item,
.body-sidebar-container:not(.expanded) .sidebar-item-container.active .standard-sidebar-item,
.body-sidebar-container:not(.expanded) .sidebar-item-container[data-page-name][class*="active"] .standard-sidebar-item {
    /* Сама кнопка остается без transform */
}

/* LIQUID GLASS ПРИ HOVER - scale только на ::before */
.body-sidebar-container:not(.expanded) .standard-sidebar-item:hover::before {
    --border-width: 2px;
    background: 
        linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 40% 50%,
            rgba(255, 255, 255, 0) 55%
        ),
        linear-gradient(
            -75deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0.05)
        ) !important;
    background-size: 200% 200%, 100% 100% !important;
    background-position: 25% 50%, 0% 0% !important;
    background-repeat: no-repeat !important;
    background-blend-mode: screen, normal !important;
    transform: scale(0.975) translateZ(0) !important;
    backdrop-filter: blur(0.01em) !important;
    -webkit-backdrop-filter: blur(0.01em) !important;
    box-shadow: 
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.03),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.4),
        0 0.2em 0.1em -0.1em rgba(0, 0, 0, 0.2),
        0 0 0.15em 0.25em inset rgba(255, 255, 255, 0.4) !important;
}

.body-sidebar-container:not(.expanded) .standard-sidebar-item:hover {
    /* Сама кнопка остается без transform - иконка не двигается! */
}

/* Active эффект при клике - УСИЛЕННОЕ ВДАВЛИВАНИЕ (scale 0.86 вместо 0.92) */
.body-sidebar-container:not(.expanded) .standard-sidebar-item:active::before {
    transform: scale(0.86) translateZ(0) !important;
    box-shadow: 
        inset 0 0.2em 0.2em rgba(0, 0, 0, 0.08),
        inset 0 -0.15em 0.15em rgba(255, 255, 255, 0.2),
        0 0.05em 0.05em -0.05em rgba(0, 0, 0, 0.2),
        0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.2),
        inset 0 0.2em 0.08em 0 rgba(0, 0, 0, 0.15) !important;
    background: 
        linear-gradient(
            -15deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.35) 40% 50%,
            rgba(255, 255, 255, 0) 55%
        ),
        linear-gradient(
            -75deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.02)
        ) !important;
    background-size: 200% 200%, 100% 100% !important;
    background-position: 50% 15%, 0% 0% !important;
}

.body-sidebar-container:not(.expanded) .standard-sidebar-item:active {
    /* Сама кнопка остается без transform - иконка не двигается! */
}

/* ИКОНКА - ПОЛНОСТЬЮ ЗАФИКСИРОВАНА БЕЗ АНИМАЦИЙ */
.body-sidebar-container:not(.expanded) .sidebar-item-icon,
.body-sidebar-container:not(.expanded) .standard-sidebar-item .sidebar-item-icon,
.body-sidebar-container:not(.expanded) .standard-sidebar-item > a .sidebar-item-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 3 !important;
    position: relative !important;
    /* Фиксируем иконку БЕЗ scale анимации */
    transform: translateZ(0) !important;
    transform-origin: center center !important;
    transition: none !important;
    will-change: auto !important;
    pointer-events: none !important;
    /* Свойства для четкой отрисовки без размытия */
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    perspective: 1000px !important;
    -webkit-perspective: 1000px !important;
}

/* Убираем все transform с иконки на hover и active */
.body-sidebar-container:not(.expanded) .standard-sidebar-item:hover .sidebar-item-icon,
.body-sidebar-container:not(.expanded) .standard-sidebar-item:hover > a .sidebar-item-icon,
.body-sidebar-container:not(.expanded) .standard-sidebar-item:active .sidebar-item-icon,
.body-sidebar-container:not(.expanded) .standard-sidebar-item:active > a .sidebar-item-icon {
    transform: translateZ(0) !important;
}

.body-sidebar-container:not(.expanded) .sidebar-item-icon svg,
.body-sidebar-container:not(.expanded) .sidebar-item-icon svg.icon,
.body-sidebar-container:not(.expanded) .sidebar-item-icon svg.icon-md,
.body-sidebar-container:not(.expanded) .sidebar-item-icon > svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    display: block !important;
    margin: 0 !important;
    transform: translateZ(0) !important;
    transition: none !important;
    will-change: auto !important;
    pointer-events: none !important;
    /* Свойства для четкой отрисовки SVG без пикселизации */
    shape-rendering: geometricPrecision !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

.body-sidebar-container:not(.expanded) .sidebar-item-icon img.app-logo,
.body-sidebar-container:not(.expanded) .app-logo-container img.app-logo {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    display: block !important;
    margin: 0 !important;
    transform: translateZ(0) !important;
    transition: none !important;
    will-change: auto !important;
    pointer-events: none !important;
    /* Свойства для четкой отрисовки изображений без пикселизации */
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

/* Скрываем текстовые метки */
.body-sidebar-container:not(.expanded) .sidebar-item-label {
    display: none !important;
}

.body-sidebar-container:not(.expanded) .sidebar-item-control {
    display: none !important;
}

.body-sidebar-container:not(.expanded) .sidebar-child-item {
    margin: 0 !important;
    padding: 0 !important;
}

/* App Switcher */
.body-sidebar-container:not(.expanded) .app-switcher-dropdown {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

/* Нижняя часть сайдбара - ФИКСАЦИЯ ВНИЗУ */
.body-sidebar-container:not(.expanded) .body-sidebar-bottom {
    width: 54px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    position: sticky !important;
    bottom: 0 !important;
    background: linear-gradient(to top, rgba(235, 235, 235, 1) 0%, rgba(235, 235, 235, 1) 70%, transparent 100%) !important;
    margin-top: auto !important;
    z-index: 10 !important;
    min-height: 70px !important;
    visibility: visible !important;
}

/* Кнопка Collapse в развернутом виде - liquid glass стиль */
.body-sidebar-container.expanded .collapse-sidebar-link {
    position: relative !important;
    background: transparent !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    margin: 2px 0 !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    overflow: visible !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    min-height: 44px !important;
}

.body-sidebar-container.expanded .collapse-sidebar-link::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    pointer-events: none !important;
    z-index: -1 !important;
    transform: translateZ(0) !important;
    transition: transform var(--anim--sidebar-time) var(--anim--sidebar-ease),
                background var(--anim--sidebar-time) var(--anim--sidebar-ease),
                box-shadow var(--anim--sidebar-time) var(--anim--sidebar-ease),
                backdrop-filter var(--anim--sidebar-time) var(--anim--sidebar-ease) !important;
}

.body-sidebar-container.expanded .collapse-sidebar-link:hover::before {
    background: 
        linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.35) 40% 50%,
            rgba(255, 255, 255, 0) 55%
        ),
        linear-gradient(
            -75deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.05)
        ) !important;
    background-size: 200% 200%, 100% 100% !important;
    background-position: 25% 50%, 0% 0% !important;
    background-repeat: no-repeat !important;
    background-blend-mode: screen, normal !important;
    transform: scale(0.98) translateZ(0) !important;
    backdrop-filter: blur(0.01em) !important;
    -webkit-backdrop-filter: blur(0.01em) !important;
    box-shadow: 
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.02),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.35),
        0 0.15em 0.1em -0.05em rgba(0, 0, 0, 0.15),
        0 0 0.1em 0.15em inset rgba(255, 255, 255, 0.35) !important;
}

.body-sidebar-container.expanded .collapse-sidebar-link:active::before {
    transform: scale(0.96) translateZ(0) !important;
    box-shadow: 
        inset 0 0.15em 0.15em rgba(0, 0, 0, 0.05),
        inset 0 -0.1em 0.1em rgba(255, 255, 255, 0.25),
        0 0.05em 0.05em -0.05em rgba(0, 0, 0, 0.15),
        0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.25),
        inset 0 0.15em 0.05em 0 rgba(0, 0, 0, 0.1) !important;
    background: 
        linear-gradient(
            -15deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 40% 50%,
            rgba(255, 255, 255, 0) 55%
        ),
        linear-gradient(
            -75deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.02)
        ) !important;
    background-size: 200% 200%, 100% 100% !important;
    background-position: 50% 15%, 0% 0% !important;
}

.body-sidebar-container.expanded .collapse-sidebar-link svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    margin-right: 10px !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
}

/* АГРЕССИВНОЕ ПЕРЕОПРЕДЕЛЕНИЕ РАЗМЕРОВ для всего sidebar */
.body-sidebar-container.expanded .body-sidebar .sidebar-item-icon,
.body-sidebar-container.expanded .body-sidebar-top .sidebar-item-icon,
.body-sidebar-container.expanded .sidebar-items .sidebar-item-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
}

.body-sidebar-container.expanded .body-sidebar .sidebar-item-icon svg,
.body-sidebar-container.expanded .body-sidebar-top .sidebar-item-icon svg,
.body-sidebar-container.expanded .sidebar-items .sidebar-item-icon svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
}

.body-sidebar-container.expanded .body-sidebar .sidebar-item-label,
.body-sidebar-container.expanded .body-sidebar-top .sidebar-item-label,
.body-sidebar-container.expanded .sidebar-items .sidebar-item-label {
    font-size: 15px !important;
    font-weight: 500 !important;
}

/* Кнопка Collapse в стиле круглой иконки */
.body-sidebar-container:not(.expanded) .collapse-sidebar-link {
    position: relative !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: translateZ(0) !important;
    transform-origin: center center !important;
    transition: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    isolation: isolate !important;
    text-decoration: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100 !important;
}

/* Скрываем текст "Collapse" */
.body-sidebar-container:not(.expanded) .collapse-sidebar-link {
    font-size: 0 !important;
    color: transparent !important;
}

/* Иконка внутри кнопки Collapse */
.body-sidebar-container:not(.expanded) .collapse-sidebar-link svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    display: block !important;
    margin: 0 !important;
    transform: translateZ(0) !important;
    transition: none !important;
    will-change: auto !important;
    pointer-events: none !important;
    shape-rendering: geometricPrecision !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

/* Псевдоэлемент для эффектов */
.body-sidebar-container:not(.expanded) .collapse-sidebar-link::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    background: transparent !important;
    pointer-events: none !important;
    z-index: -1 !important;
    transform: scale(1) translateZ(0) !important;
    transform-origin: center center !important;
    transition: transform var(--anim--sidebar-time) var(--anim--sidebar-ease),
                background var(--anim--sidebar-time) var(--anim--sidebar-ease),
                box-shadow var(--anim--sidebar-time) var(--anim--sidebar-ease),
                backdrop-filter var(--anim--sidebar-time) var(--anim--sidebar-ease) !important;
}

/* Hover эффект для Collapse */
.body-sidebar-container:not(.expanded) .collapse-sidebar-link:hover::before {
    background: 
        linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 40% 50%,
            rgba(255, 255, 255, 0) 55%
        ),
        linear-gradient(
            -75deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0.05)
        ) !important;
    background-size: 200% 200%, 100% 100% !important;
    background-position: 25% 50%, 0% 0% !important;
    background-repeat: no-repeat !important;
    background-blend-mode: screen, normal !important;
    transform: scale(0.975) translateZ(0) !important;
    backdrop-filter: blur(0.01em) !important;
    -webkit-backdrop-filter: blur(0.01em) !important;
    box-shadow: 
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.03),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.4),
        0 0.2em 0.1em -0.1em rgba(0, 0, 0, 0.2),
        0 0 0.15em 0.25em inset rgba(255, 255, 255, 0.4) !important;
}

/* Active эффект для Collapse */
.body-sidebar-container:not(.expanded) .collapse-sidebar-link:active::before {
    transform: scale(0.86) translateZ(0) !important;
    box-shadow: 
        inset 0 0.2em 0.2em rgba(0, 0, 0, 0.08),
        inset 0 -0.15em 0.15em rgba(255, 255, 255, 0.2),
        0 0.05em 0.05em -0.05em rgba(0, 0, 0, 0.2),
        0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.2),
        inset 0 0.2em 0.08em 0 rgba(0, 0, 0, 0.15) !important;
    background: 
        linear-gradient(
            -15deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.35) 40% 50%,
            rgba(255, 255, 255, 0) 55%
        ),
        linear-gradient(
            -75deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.02)
        ) !important;
    background-size: 200% 200%, 100% 100% !important;
    background-position: 50% 15%, 0% 0% !important;
}

/* ПОЛНОЕ СКРЫТИЕ СКРОЛЛБАРА */
.body-sidebar-container:not(.expanded) .body-sidebar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.body-sidebar-container:not(.expanded) .body-sidebar {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* ============================================ */
/* КНОПКИ В СТИЛЕ LIQUID GLASS */
/* ============================================ */

.btn,
.btn-primary,
.btn-secondary,
.btn-default,
button.btn {
    --border-width: 2.5px;
    position: relative !important;
    background: linear-gradient(
        -75deg,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.02)
    ) !important;
    border-radius: 20px !important;
    box-shadow: 
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.02),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.25),
        0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.15),
        0 0 0.1em 0.2em inset rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px)) !important;
    border: none !important;
    color: rgba(50, 50, 50, 1) !important;
    text-shadow: 0em 0.25em 0.05em rgba(0, 0, 0, 0.1) !important;
    font-weight: 500 !important;
    letter-spacing: -0.05em !important;
    transition: all var(--anim--hover-time) var(--anim--hover-ease) !important;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-default:hover,
button.btn:hover {
    transform: scale(0.975) !important;
    backdrop-filter: blur(0.01em) !important;
    -webkit-backdrop-filter: blur(0.01em) !important;
    box-shadow: 
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.02),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.3),
        0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.18),
        0 0 0.1em 0.2em inset rgba(255, 255, 255, 0.3) !important;
    text-shadow: 0.025em 0.025em 0.025em rgba(0, 0, 0, 0.12) !important;
}

.btn:active,
.btn-primary:active,
.btn-secondary:active,
.btn-default:active,
button.btn:active {
    transform: scale(0.975) !important;
    box-shadow: 
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.03),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.25),
        0 0.125em 0.125em -0.125em rgba(0, 0, 0, 0.15),
        0 0 0.1em 0.2em inset rgba(255, 255, 255, 0.2),
        inset 0 0.25em 0.05em 0 rgba(0, 0, 0, 0.1) !important;
    text-shadow: 0.025em 0.25em 0.05em rgba(0, 0, 0, 0.12) !important;
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .widget:not(.spacer), .frappe-card, .dashboard-widget-box {
        --angle-cards: -75deg !important;
        --angle-highlight: -45deg !important;
    }
    
    .widget:not(.spacer):hover, .frappe-card:hover, .dashboard-widget-box:hover,
    .widget.shortcut-widget-box:not(.spacer):active, .frappe-card:active {
        --angle-cards: -75deg !important;
        --angle-highlight: -45deg !important;
    }
    
    .body-sidebar-container:not(.expanded) .standard-sidebar-item {
        --angle-cards: -75deg !important;
        --angle-highlight: -45deg !important;
    }
    
    .body-sidebar-container:not(.expanded) .standard-sidebar-item:hover,
    .body-sidebar-container:not(.expanded) .standard-sidebar-item:active {
        --angle-cards: -75deg !important;
        --angle-highlight: -45deg !important;
    }
}