/* Bottom Toolbar - Stile macOS */
.bottom-toolbar {
    position: fixed;
    z-index: 1050;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bottom-toolbar-bg-color: rgba(255, 255, 255, 0.85);
}

.bottom-toolbar-stack {
    display: inline-flex;
    gap: 12px;
    align-items: flex-end;
    pointer-events: none;
}

.bottom-toolbar-stack > * {
    pointer-events: auto;
}

/* Posizione Bottom (default) */
.bottom-toolbar-position-bottom {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Posizione Top */
.bottom-toolbar-position-top {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Posizione Left */
.bottom-toolbar-position-left {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Posizione Right */
.bottom-toolbar-position-right {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.bottom-toolbar-position-top .bottom-toolbar-stack,
.bottom-toolbar-position-bottom .bottom-toolbar-stack {
    flex-direction: row;
}

.bottom-toolbar-position-left .bottom-toolbar-stack,
.bottom-toolbar-position-right .bottom-toolbar-stack {
    flex-direction: column;
    align-items: center;
}

.bottom-toolbar-container {
    position: relative;
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bottom-toolbar-bg-color, rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-toolbar-insights {
    pointer-events: auto;
    display: flex;
    align-items: center;
}

.bottom-toolbar-position-top .bottom-toolbar-insights,
.bottom-toolbar-position-bottom .bottom-toolbar-insights {
    align-self: stretch;
}

.bottom-toolbar-position-left .bottom-toolbar-insights,
.bottom-toolbar-position-right .bottom-toolbar-insights {
    width: 100%;
    justify-content: center;
}

.bottom-toolbar-insights-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-toolbar[data-background-color] .bottom-toolbar-insights-card {
    background: var(--bottom-toolbar-bg-color, rgba(255, 255, 255, 0.85));
}

.bottom-toolbar-insights-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 64px;
    gap: 0;
    color: var(--bottom-toolbar-icon-color, var(--bs-dark));
    padding: 8px 6px;
    border-radius: 16px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-toolbar-insights-item:hover {
    transform: translateY(-4px);
    background: rgba(37, 99, 235, 0.08);
}

.bottom-toolbar-insights-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.bottom-toolbar-insights-item:hover .bottom-toolbar-insights-icon {
    background: rgba(37, 99, 235, 0.12);
}

.bottom-toolbar-insights-icon i {
    font-size: 16px;
}

.bottom-toolbar-insights-badge {
    min-width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.65rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

.bottom-toolbar-insights-badge-alert,
.bottom-toolbar-insights-badge-info,
.bottom-toolbar-insights-badge-danger,
.bottom-toolbar-insights-badge-muted {
    background: #dc3545;
    color: #ffffff;
}

/* Layout verticale per left e right */
.bottom-toolbar-position-left .bottom-toolbar-container,
.bottom-toolbar-position-right .bottom-toolbar-container {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px 12px;
}

/* Colore di sfondo personalizzato */
.bottom-toolbar[data-background-color] .bottom-toolbar-container {
    background: var(--bottom-toolbar-bg-color, rgba(255, 255, 255, 0.85));
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .bottom-toolbar-container {
        background: rgba(30, 30, 30, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .bottom-toolbar-logo-separator {
        background: rgba(255, 255, 255, 0.15);
    }

    .bottom-toolbar-insights-card {
        background: rgba(30, 30, 30, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .bottom-toolbar-insights-item:hover {
        background: rgba(37, 99, 235, 0.15);
    }

    .bottom-toolbar-insights-badge {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
        color: rgba(255, 255, 255, 0.85);
    }

    .bottom-toolbar-insights-badge-muted {
        color: rgba(255, 255, 255, 0.7);
    }
}

.bottom-toolbar-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    text-decoration: none;
    color: var(--bs-dark);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border-radius: 12px;
    margin: 0 2px;
}

/* Dimensioni toolbar - Small */
.bottom-toolbar-size-small .bottom-toolbar-container {
    padding: 8px 16px;
    border-radius: 20px;
}

.bottom-toolbar-size-small .bottom-toolbar-item {
    width: 44px;
    height: 44px;
    margin: 0 1px;
}

.bottom-toolbar-size-small .bottom-toolbar-item i {
    font-size: 20px;
}

.bottom-toolbar-size-small .bottom-toolbar-profile-btn,
.bottom-toolbar-size-small .bottom-toolbar-profile-avatar {
    width: 44px;
    height: 44px;
}

.bottom-toolbar-size-small .bottom-toolbar-tooltip {
    bottom: 60px;
    font-size: 11px;
    padding: 5px 10px;
}

.bottom-toolbar-size-small .bottom-toolbar-logo {
    height: 32px;
}

.bottom-toolbar-size-small .bottom-toolbar-logo-separator {
    height: 32px;
}

/* Dimensioni toolbar - Medium (default) */
.bottom-toolbar-size-medium .bottom-toolbar-container {
    padding: 12px 20px;
    border-radius: 24px;
}

.bottom-toolbar-size-medium .bottom-toolbar-item {
    width: 56px;
    height: 56px;
    margin: 0 2px;
}

.bottom-toolbar-size-medium .bottom-toolbar-item i {
    font-size: 24px;
}

.bottom-toolbar-size-medium .bottom-toolbar-profile-btn,
.bottom-toolbar-size-medium .bottom-toolbar-profile-avatar {
    width: 56px;
    height: 56px;
}

.bottom-toolbar-size-medium .bottom-toolbar-tooltip {
    bottom: 70px;
    font-size: 12px;
    padding: 6px 12px;
}

.bottom-toolbar-size-medium .bottom-toolbar-logo {
    height: 40px;
}

.bottom-toolbar-size-medium .bottom-toolbar-logo-separator {
    height: 40px;
}

/* Dimensioni toolbar - Large */
.bottom-toolbar-size-large .bottom-toolbar-container {
    padding: 16px 24px;
    border-radius: 28px;
}

.bottom-toolbar-size-large .bottom-toolbar-item {
    width: 68px;
    height: 68px;
    margin: 0 3px;
}

.bottom-toolbar-size-large .bottom-toolbar-item i {
    font-size: 28px;
}

.bottom-toolbar-size-large .bottom-toolbar-profile-btn,
.bottom-toolbar-size-large .bottom-toolbar-profile-avatar {
    width: 68px;
    height: 68px;
}

.bottom-toolbar-size-large .bottom-toolbar-tooltip {
    bottom: 85px;
    font-size: 13px;
    padding: 7px 14px;
}

.bottom-toolbar-size-large .bottom-toolbar-separator {
    height: 50px;
}

.bottom-toolbar-size-large .bottom-toolbar-profile-menu {
    bottom: 85px;
}

.bottom-toolbar-size-large .bottom-toolbar-logo {
    height: 48px;
}

.bottom-toolbar-size-large .bottom-toolbar-logo-separator {
    height: 50px;
}

/* Hover per top e bottom */
.bottom-toolbar-position-top .bottom-toolbar-item:hover,
.bottom-toolbar-position-bottom .bottom-toolbar-item:hover {
    transform: translateY(-8px) scale(1.3);
    z-index: 10;
}

.bottom-toolbar-position-top .bottom-toolbar-item:hover {
    transform: translateY(8px) scale(1.3);
}

/* Hover per left e right */
.bottom-toolbar-position-left .bottom-toolbar-item:hover {
    transform: translateX(-8px) scale(1.3);
    z-index: 10;
}

.bottom-toolbar-position-right .bottom-toolbar-item:hover {
    transform: translateX(8px) scale(1.3);
    z-index: 10;
}

/* Disabilita ingrandimento se personalizzato */
.bottom-toolbar[data-enable-zoom="false"] .bottom-toolbar-position-top .bottom-toolbar-item:hover,
.bottom-toolbar[data-enable-zoom="false"] .bottom-toolbar-position-bottom .bottom-toolbar-item:hover {
    transform: translateY(-4px) scale(1.05);
}

.bottom-toolbar[data-enable-zoom="false"] .bottom-toolbar-position-top .bottom-toolbar-item:hover {
    transform: translateY(4px) scale(1.05);
}

.bottom-toolbar[data-enable-zoom="false"] .bottom-toolbar-position-left .bottom-toolbar-item:hover {
    transform: translateX(-4px) scale(1.05);
}

.bottom-toolbar[data-enable-zoom="false"] .bottom-toolbar-position-right .bottom-toolbar-item:hover {
    transform: translateX(4px) scale(1.05);
}

/* Active state per top e bottom */
.bottom-toolbar-position-top .bottom-toolbar-item.active,
.bottom-toolbar-position-bottom .bottom-toolbar-item.active {
    transform: translateY(-4px) scale(1.15);
}

.bottom-toolbar-position-top .bottom-toolbar-item.active {
    transform: translateY(4px) scale(1.15);
}

.bottom-toolbar-position-top .bottom-toolbar-item.active:hover {
    transform: translateY(8px) scale(1.3);
}

.bottom-toolbar-position-bottom .bottom-toolbar-item.active:hover {
    transform: translateY(-8px) scale(1.3);
}

/* Active state per left e right */
.bottom-toolbar-position-left .bottom-toolbar-item.active {
    transform: translateX(-4px) scale(1.15);
}

.bottom-toolbar-position-left .bottom-toolbar-item.active:hover {
    transform: translateX(-8px) scale(1.3);
}

.bottom-toolbar-position-right .bottom-toolbar-item.active {
    transform: translateX(4px) scale(1.15);
}

.bottom-toolbar-position-right .bottom-toolbar-item.active:hover {
    transform: translateX(8px) scale(1.3);
}

.bottom-toolbar-icon-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-toolbar-item:hover .bottom-toolbar-icon-wrapper {
    background: rgba(37, 99, 235, 0.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.bottom-toolbar-item.active .bottom-toolbar-icon-wrapper {
    background: rgba(37, 99, 235, 0.15);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.bottom-toolbar-item i {
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--bottom-toolbar-icon-color, var(--bs-dark));
}

.bottom-toolbar-item:hover i {
    color: var(--bottom-toolbar-icon-color, var(--bs-primary));
    transform: scale(1.1);
    opacity: 0.8;
}

.bottom-toolbar-item.active i {
    color: var(--bottom-toolbar-icon-color, var(--bs-primary));
    opacity: 1;
}

/* Indicatore attivo */
.bottom-toolbar-indicator {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--bs-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1.2);
    }
}

/* Tooltip */
.bottom-toolbar-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Tooltip per top e bottom */
.bottom-toolbar-position-top .bottom-toolbar-tooltip,
.bottom-toolbar-position-bottom .bottom-toolbar-tooltip {
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

.bottom-toolbar-position-top .bottom-toolbar-tooltip {
    bottom: auto;
    top: 70px;
}

/* Tooltip per left e right */
.bottom-toolbar-position-left .bottom-toolbar-tooltip,
.bottom-toolbar-position-right .bottom-toolbar-tooltip {
    top: 50%;
    transform: translateY(-50%) translateX(10px);
}

.bottom-toolbar-position-left .bottom-toolbar-tooltip {
    right: 70px;
    left: auto;
    transform: translateY(-50%) translateX(-10px);
}

.bottom-toolbar-position-right .bottom-toolbar-tooltip {
    left: 70px;
    right: auto;
}

/* Freccia tooltip per top e bottom */
.bottom-toolbar-position-top .bottom-toolbar-tooltip::after,
.bottom-toolbar-position-bottom .bottom-toolbar-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.bottom-toolbar-position-bottom .bottom-toolbar-tooltip::after {
    bottom: -4px;
    border-top: 5px solid rgba(0, 0, 0, 0.85);
}

.bottom-toolbar-position-top .bottom-toolbar-tooltip::after {
    top: -4px;
    border-bottom: 5px solid rgba(0, 0, 0, 0.85);
}

/* Freccia tooltip per left e right */
.bottom-toolbar-position-left .bottom-toolbar-tooltip::after,
.bottom-toolbar-position-right .bottom-toolbar-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.bottom-toolbar-position-left .bottom-toolbar-tooltip::after {
    right: -4px;
    border-left: 5px solid rgba(0, 0, 0, 0.85);
}

.bottom-toolbar-position-right .bottom-toolbar-tooltip::after {
    left: -4px;
    border-right: 5px solid rgba(0, 0, 0, 0.85);
}

.bottom-toolbar-position-top .bottom-toolbar-item:hover .bottom-toolbar-tooltip,
.bottom-toolbar-position-bottom .bottom-toolbar-item:hover .bottom-toolbar-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bottom-toolbar-position-left .bottom-toolbar-item:hover .bottom-toolbar-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.bottom-toolbar-position-right .bottom-toolbar-item:hover .bottom-toolbar-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Effetto riflesso macOS */
.bottom-toolbar-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bottom-toolbar-item:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .bottom-toolbar-stack {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .bottom-toolbar-position-bottom {
        bottom: 10px;
    }
    
    .bottom-toolbar-position-top {
        top: 10px;
    }
    
    .bottom-toolbar-position-left {
        left: 10px;
    }
    
    .bottom-toolbar-position-right {
        right: 10px;
    }
    
    .bottom-toolbar-container {
        padding: 8px 12px;
        gap: 4px;
        border-radius: 20px;
    }
    
    .bottom-toolbar-item {
        width: 48px;
        height: 48px;
        margin: 0 1px;
    }
    
    .bottom-toolbar-item i {
        font-size: 20px;
    }
    
    .bottom-toolbar-item:hover {
        transform: translateY(-6px) scale(1.25);
    }
    
    .bottom-toolbar-tooltip {
        font-size: 11px;
        padding: 5px 10px;
        bottom: 60px;
    }
    
    .bottom-toolbar-logo {
        height: 32px;
    }
    
    .bottom-toolbar-logo-separator {
        height: 32px;
        margin: 0 4px;
    }
    
    .bottom-toolbar-logo-wrapper {
        margin-right: 4px;
    }

    .bottom-toolbar-insights-card {
        width: 100%;
        justify-content: space-between;
        padding: 8px 14px;
    }

    .bottom-toolbar-insights-item {
        min-width: 0;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .bottom-toolbar-container {
        padding: 6px 8px;
        gap: 2px;
    }
    
    .bottom-toolbar-item {
        width: 44px;
        height: 44px;
    }
    
    .bottom-toolbar-item i {
        font-size: 18px;
    }
    
    .bottom-toolbar-item:hover {
        transform: translateY(-4px) scale(1.2);
    }
    
    .bottom-toolbar-logo {
        height: 28px;
    }
    
    .bottom-toolbar-logo-separator {
        height: 28px;
        margin: 0 2px;
    }
    
    .bottom-toolbar-logo-wrapper {
        margin-right: 2px;
    }
}

/* Animazione di ingresso */
@keyframes bottomToolbarFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animazione per bottom */
.bottom-toolbar-position-bottom:not(.bottom-toolbar-initialized) {
    animation: bottomToolbarFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bottomToolbarFadeInBottom {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.bottom-toolbar-position-bottom:not(.bottom-toolbar-initialized) {
    animation: bottomToolbarFadeInBottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bottomToolbarFadeInTop {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.bottom-toolbar-position-top:not(.bottom-toolbar-initialized) {
    animation: bottomToolbarFadeInTop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bottomToolbarFadeInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.bottom-toolbar-position-left:not(.bottom-toolbar-initialized) {
    animation: bottomToolbarFadeInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bottomToolbarFadeInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.bottom-toolbar-position-right:not(.bottom-toolbar-initialized) {
    animation: bottomToolbarFadeInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effetto hover per le icone vicine */
/* Effetto hover per elementi vicini - top e bottom */
.bottom-toolbar-position-top .bottom-toolbar-item:hover ~ .bottom-toolbar-item,
.bottom-toolbar-position-top .bottom-toolbar-item:hover + .bottom-toolbar-item,
.bottom-toolbar-position-bottom .bottom-toolbar-item:hover ~ .bottom-toolbar-item,
.bottom-toolbar-position-bottom .bottom-toolbar-item:hover + .bottom-toolbar-item {
    transform: translateY(-2px) scale(1.05);
}

.bottom-toolbar-position-top .bottom-toolbar-item:hover ~ .bottom-toolbar-item,
.bottom-toolbar-position-top .bottom-toolbar-item:hover + .bottom-toolbar-item {
    transform: translateY(2px) scale(1.05);
}

/* Effetto hover per elementi vicini - left e right */
.bottom-toolbar-position-left .bottom-toolbar-item:hover ~ .bottom-toolbar-item,
.bottom-toolbar-position-left .bottom-toolbar-item:hover + .bottom-toolbar-item {
    transform: translateX(-2px) scale(1.05);
}

.bottom-toolbar-position-right .bottom-toolbar-item:hover ~ .bottom-toolbar-item,
.bottom-toolbar-position-right .bottom-toolbar-item:hover + .bottom-toolbar-item {
    transform: translateX(2px) scale(1.05);
}

/* Secondo livello */
.bottom-toolbar-second-level {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 1;
    display: flex;
    justify-content: center;
}

/* Secondo livello per bottom */
.bottom-toolbar-position-bottom .bottom-toolbar-second-level {
    bottom: 100%;
    left: 0;
    right: 0;
    align-items: flex-end;
    padding-bottom: 12px;
    transform: translateY(20px) scale(0.9);
}

/* Secondo livello per top (sotto la toolbar) */
.bottom-toolbar-position-top .bottom-toolbar-second-level {
    top: 100%;
    left: 0;
    right: 0;
    align-items: flex-start;
    padding-top: 12px;
    transform: translateY(-20px) scale(0.9);
}

/* Secondo livello per left */
.bottom-toolbar-position-left .bottom-toolbar-second-level {
    right: 100%;
    top: 0;
    bottom: 0;
    align-items: center;
    padding-right: 12px;
    transform: translateX(20px) scale(0.9);
    flex-direction: column;
}

/* Secondo livello per right */
.bottom-toolbar-position-right .bottom-toolbar-second-level {
    left: 100%;
    top: 0;
    bottom: 0;
    align-items: center;
    padding-left: 12px;
    transform: translateX(-20px) scale(0.9);
    flex-direction: column;
}

.bottom-toolbar-second-level.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bottom-toolbar-position-bottom .bottom-toolbar-second-level.show {
    transform: translateY(0) scale(1);
}

.bottom-toolbar-position-top .bottom-toolbar-second-level.show {
    transform: translateY(0) scale(1);
}

.bottom-toolbar-position-left .bottom-toolbar-second-level.show {
    transform: translateX(0) scale(1);
}

.bottom-toolbar-position-right .bottom-toolbar-second-level.show {
    transform: translateX(0) scale(1);
}

.bottom-toolbar-second-level-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bottom-toolbar-bg-color, rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Secondo livello items per top e bottom */
.bottom-toolbar-position-top .bottom-toolbar-second-level-items,
.bottom-toolbar-position-bottom .bottom-toolbar-second-level-items {
    flex-direction: row;
}

/* Secondo livello items per left e right */
.bottom-toolbar-position-left .bottom-toolbar-second-level-items,
.bottom-toolbar-position-right .bottom-toolbar-second-level-items {
    flex-direction: column;
    padding: 16px 8px;
}

/* Colore di sfondo personalizzato per secondo livello */
.bottom-toolbar[data-background-color] .bottom-toolbar-second-level-items {
    background: var(--bottom-toolbar-bg-color, rgba(255, 255, 255, 0.9));
}

.bottom-toolbar-second-level-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    text-decoration: none;
    color: var(--bs-dark);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border-radius: 16px;
    margin: 0 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Disabilita ingrandimento se personalizzato per secondo livello */
.bottom-toolbar[data-enable-zoom="false"] .bottom-toolbar-second-level-item:hover {
    transform: translateY(-2px) scale(1.05);
}

.bottom-toolbar-second-level-item:hover {
    transform: translateY(-4px) scale(1.15);
    z-index: 10;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 2px rgba(37, 99, 235, 0.1);
}

.bottom-toolbar-second-level-item .bottom-toolbar-icon-wrapper {
    position: relative;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 2px;
}

.bottom-toolbar-second-level-item:hover .bottom-toolbar-icon-wrapper {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.1));
    box-shadow: 
        0 4px 12px rgba(37, 99, 235, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.bottom-toolbar-second-level-item i {
    font-size: 22px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--bottom-toolbar-icon-color, var(--bs-dark));
}

/* Colore icone personalizzato per secondo livello */
.bottom-toolbar[data-icon-color] .bottom-toolbar-second-level-item i {
    color: var(--bottom-toolbar-icon-color, var(--bs-dark));
}

.bottom-toolbar-second-level-item:hover i {
    color: var(--bottom-toolbar-icon-color, var(--bs-primary));
    transform: scale(1.1);
}

/* Dimensioni toolbar - Small per secondo livello */
.bottom-toolbar-size-small .bottom-toolbar-second-level-items {
    padding: 6px 12px;
    gap: 6px;
    border-radius: 18px;
}

.bottom-toolbar-size-small .bottom-toolbar-second-level-item {
    width: 40px;
    height: 40px;
    margin: 0 1px;
    border-radius: 14px;
}

.bottom-toolbar-size-small .bottom-toolbar-second-level-item .bottom-toolbar-icon-wrapper {
    border-radius: 12px;
}

.bottom-toolbar-size-small .bottom-toolbar-second-level-item i {
    font-size: 18px;
}

/* Dimensioni toolbar - Medium (default) per secondo livello */
.bottom-toolbar-size-medium .bottom-toolbar-second-level-items {
    padding: 8px 16px;
    gap: 8px;
    border-radius: 20px;
}

.bottom-toolbar-size-medium .bottom-toolbar-second-level-item {
    width: 52px;
    height: 52px;
    margin: 0 2px;
    border-radius: 16px;
}

.bottom-toolbar-size-medium .bottom-toolbar-second-level-item .bottom-toolbar-icon-wrapper {
    border-radius: 14px;
}

.bottom-toolbar-size-medium .bottom-toolbar-second-level-item i {
    font-size: 22px;
}

/* Dimensioni toolbar - Large per secondo livello */
.bottom-toolbar-size-large .bottom-toolbar-second-level-items {
    padding: 10px 20px;
    gap: 10px;
    border-radius: 22px;
}

.bottom-toolbar-size-large .bottom-toolbar-second-level-item {
    width: 64px;
    height: 64px;
    margin: 0 3px;
    border-radius: 18px;
}

.bottom-toolbar-size-large .bottom-toolbar-second-level-item .bottom-toolbar-icon-wrapper {
    border-radius: 16px;
}

.bottom-toolbar-size-large .bottom-toolbar-second-level-item i {
    font-size: 26px;
}

.bottom-toolbar-second-level-item .bottom-toolbar-tooltip {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bottom-toolbar-second-level-item .bottom-toolbar-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.85);
}

.bottom-toolbar-second-level-item:hover .bottom-toolbar-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Indicatore per elementi con secondo livello - nessun elemento visivo aggiuntivo */
.bottom-toolbar-item-has-sublevel {
    position: relative;
}

/* Nascondi completamente l'indicatore chevron */
.bottom-toolbar-item-has-sublevel .bottom-toolbar-sublevel-indicator {
    display: none;
}

/* Animazione sequenziale per gli elementi del secondo livello */
.bottom-toolbar-second-level-item {
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-toolbar-second-level.show .bottom-toolbar-second-level-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bottom-toolbar-second-level.show .bottom-toolbar-second-level-item:nth-child(1) {
    transition-delay: 0.05s;
}

.bottom-toolbar-second-level.show .bottom-toolbar-second-level-item:nth-child(2) {
    transition-delay: 0.1s;
}

.bottom-toolbar-second-level.show .bottom-toolbar-second-level-item:nth-child(3) {
    transition-delay: 0.15s;
}

.bottom-toolbar-second-level.show .bottom-toolbar-second-level-item:nth-child(4) {
    transition-delay: 0.2s;
}

.bottom-toolbar-second-level.show .bottom-toolbar-second-level-item:nth-child(5) {
    transition-delay: 0.25s;
}

/* Dark mode support per secondo livello */
@media (prefers-color-scheme: dark) {
    .bottom-toolbar-second-level-items {
        background: var(--bottom-toolbar-bg-color, rgba(30, 30, 30, 0.9));
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 
            0 6px 24px rgba(0, 0, 0, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    /* Override con colore personalizzato se presente */
    .bottom-toolbar[data-background-color] .bottom-toolbar-second-level-items {
        background: var(--bottom-toolbar-bg-color, rgba(30, 30, 30, 0.9));
    }
    
    .bottom-toolbar-second-level-item {
        background: linear-gradient(135deg, rgba(40, 40, 40, 0.8), rgba(30, 30, 30, 0.6));
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .bottom-toolbar-second-level-item:hover {
        background: linear-gradient(135deg, rgba(50, 50, 50, 0.9), rgba(40, 40, 40, 0.7));
        border-color: rgba(37, 99, 235, 0.5);
    }
    
    .bottom-toolbar-second-level-item:hover .bottom-toolbar-icon-wrapper {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(37, 99, 235, 0.15));
        border-color: rgba(37, 99, 235, 0.3);
    }
}

/* Responsive per secondo livello - mantiene le dimensioni relative alla size */
@media (max-width: 768px) {
    .bottom-toolbar-size-small .bottom-toolbar-second-level-items {
        padding: 4px 10px;
        gap: 4px;
    }
    
    .bottom-toolbar-size-small .bottom-toolbar-second-level-item {
        width: 36px;
        height: 36px;
    }
    
    .bottom-toolbar-size-small .bottom-toolbar-second-level-item i {
        font-size: 16px;
    }
    
    .bottom-toolbar-size-medium .bottom-toolbar-second-level-items {
        padding: 6px 12px;
        gap: 6px;
    }
    
    .bottom-toolbar-size-medium .bottom-toolbar-second-level-item {
        width: 44px;
        height: 44px;
    }
    
    .bottom-toolbar-size-medium .bottom-toolbar-second-level-item i {
        font-size: 18px;
    }
    
    .bottom-toolbar-size-large .bottom-toolbar-second-level-items {
        padding: 8px 14px;
        gap: 8px;
    }
    
    .bottom-toolbar-size-large .bottom-toolbar-second-level-item {
        width: 52px;
        height: 52px;
    }
    
    .bottom-toolbar-size-large .bottom-toolbar-second-level-item i {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .bottom-toolbar-size-small .bottom-toolbar-second-level-items {
        padding: 3px 8px;
        gap: 3px;
    }
    
    .bottom-toolbar-size-small .bottom-toolbar-second-level-item {
        width: 32px;
        height: 32px;
    }
    
    .bottom-toolbar-size-small .bottom-toolbar-second-level-item i {
        font-size: 14px;
    }
    
    .bottom-toolbar-size-medium .bottom-toolbar-second-level-items {
        padding: 4px 8px;
        gap: 4px;
    }
    
    .bottom-toolbar-size-medium .bottom-toolbar-second-level-item {
        width: 40px;
        height: 40px;
    }
    
    .bottom-toolbar-size-medium .bottom-toolbar-second-level-item i {
        font-size: 16px;
    }
    
    .bottom-toolbar-size-large .bottom-toolbar-second-level-items {
        padding: 6px 12px;
        gap: 6px;
    }
    
    .bottom-toolbar-size-large .bottom-toolbar-second-level-item {
        width: 48px;
        height: 48px;
    }
    
    .bottom-toolbar-size-large .bottom-toolbar-second-level-item i {
        font-size: 20px;
    }
}

/* Logo */
.bottom-toolbar-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo wrapper per top e bottom */
.bottom-toolbar-position-top .bottom-toolbar-logo-wrapper,
.bottom-toolbar-position-bottom .bottom-toolbar-logo-wrapper {
    margin-right: 8px;
}

/* Logo wrapper per left e right */
.bottom-toolbar-position-left .bottom-toolbar-logo-wrapper,
.bottom-toolbar-position-right .bottom-toolbar-logo-wrapper {
    margin-bottom: 8px;
}

.bottom-toolbar-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 12px;
    padding: 4px;
}

.bottom-toolbar-logo-link:hover {
    transform: translateY(-4px) scale(1.1);
    background: rgba(37, 99, 235, 0.1);
}

.bottom-toolbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Separatore verticale dopo il logo */
.bottom-toolbar-logo-separator {
    background: rgba(0, 0, 0, 0.15);
    align-self: center;
}

/* Separatore verticale per top e bottom */
.bottom-toolbar-position-top .bottom-toolbar-logo-separator,
.bottom-toolbar-position-bottom .bottom-toolbar-logo-separator {
    width: 1px;
    height: 40px;
    margin: 0 8px;
}

/* Separatore orizzontale per left e right */
.bottom-toolbar-position-left .bottom-toolbar-logo-separator,
.bottom-toolbar-position-right .bottom-toolbar-logo-separator {
    width: 40px;
    height: 1px;
    margin: 8px 0;
}

/* Separatore */
.bottom-toolbar-separator {
    background: rgba(0, 0, 0, 0.15);
    align-self: center;
}

/* Separatore verticale per top e bottom */
.bottom-toolbar-position-top .bottom-toolbar-separator,
.bottom-toolbar-position-bottom .bottom-toolbar-separator {
    width: 1px;
    height: 40px;
    margin: 0 8px;
}

/* Separatore orizzontale per left e right */
.bottom-toolbar-position-left .bottom-toolbar-separator,
.bottom-toolbar-position-right .bottom-toolbar-separator {
    width: 40px;
    height: 1px;
    margin: 8px 0;
}

/* Profilo Utente */
.bottom-toolbar-profile-wrapper {
    position: relative;
}

/* Profile wrapper per top e bottom */
.bottom-toolbar-position-top .bottom-toolbar-profile-wrapper,
.bottom-toolbar-position-bottom .bottom-toolbar-profile-wrapper {
    margin-left: 8px;
}

/* Profile wrapper per left e right */
.bottom-toolbar-position-left .bottom-toolbar-profile-wrapper,
.bottom-toolbar-position-right .bottom-toolbar-profile-wrapper {
    margin-top: 8px;
}

.bottom-toolbar-profile-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-toolbar-profile-btn:hover {
    transform: translateY(-8px) scale(1.3);
    z-index: 10;
}

.bottom-toolbar-profile-avatar {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-toolbar-profile-btn:hover .bottom-toolbar-profile-avatar {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.bottom-toolbar-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bottom-toolbar-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.bottom-toolbar-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--bs-danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Menu Profilo - Usa variabili CSS per adattarsi al tema */
.bottom-toolbar-profile-menu {
    position: absolute;
    min-width: 280px;
    /* Usa variabili Bootstrap che si adattano al tema */
    background: var(--bs-body-bg, #ffffff) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 16px;
    pointer-events: none;
    /* Colore testo che si adatta al tema */
    color: var(--bs-body-color, #212529) !important;
}

/* Menu profilo per top e bottom */
.bottom-toolbar-position-top .bottom-toolbar-profile-menu,
.bottom-toolbar-position-bottom .bottom-toolbar-profile-menu {
    bottom: 70px;
    right: 0;
    transform: translateY(10px) scale(0.95);
}

.bottom-toolbar-position-top .bottom-toolbar-profile-menu {
    bottom: auto;
    top: 70px;
    transform: translateY(-10px) scale(0.95);
}

/* Menu profilo per left e right */
.bottom-toolbar-position-left .bottom-toolbar-profile-menu {
    right: 70px;
    top: 0;
    transform: translateX(10px) scale(0.95);
}

.bottom-toolbar-position-right .bottom-toolbar-profile-menu {
    left: 70px;
    top: 0;
    transform: translateX(-10px) scale(0.95);
}

.bottom-toolbar-profile-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bottom-toolbar-position-top .bottom-toolbar-profile-menu.show,
.bottom-toolbar-position-bottom .bottom-toolbar-profile-menu.show {
    transform: translateY(0) scale(1);
}

.bottom-toolbar-position-left .bottom-toolbar-profile-menu.show {
    transform: translateX(0) scale(1);
}

.bottom-toolbar-position-right .bottom-toolbar-profile-menu.show {
    transform: translateX(0) scale(1);
}

/* Freccia menu profilo per top e bottom */
.bottom-toolbar-position-top .bottom-toolbar-profile-menu::after,
.bottom-toolbar-position-bottom .bottom-toolbar-profile-menu::after {
    content: '';
    position: absolute;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.bottom-toolbar-position-bottom .bottom-toolbar-profile-menu::after {
    bottom: -8px;
    border-top: 8px solid var(--bs-body-bg, #ffffff);
}

.bottom-toolbar-position-top .bottom-toolbar-profile-menu::after {
    top: -8px;
    border-bottom: 8px solid var(--bs-body-bg, #ffffff);
}

/* Freccia menu profilo per left e right */
.bottom-toolbar-position-left .bottom-toolbar-profile-menu::after,
.bottom-toolbar-position-right .bottom-toolbar-profile-menu::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.bottom-toolbar-position-left .bottom-toolbar-profile-menu::after {
    right: -8px;
    border-left: 8px solid var(--bs-body-bg, #ffffff);
}

.bottom-toolbar-position-right .bottom-toolbar-profile-menu::after {
    left: -8px;
    border-right: 8px solid var(--bs-body-bg, #ffffff);
}

.bottom-toolbar-profile-menu-header {
    margin-bottom: 8px;
    color: var(--bs-body-color, #212529) !important;
}

.bottom-toolbar-profile-menu-header .fw-bold {
    color: var(--bs-body-color, #212529) !important;
}

.bottom-toolbar-profile-menu-header .text-muted {
    color: var(--bs-secondary-color, rgba(0, 0, 0, 0.6)) !important;
}

.bottom-toolbar-profile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bottom-toolbar-profile-menu-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--bs-body-color, #212529) !important;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    border: none;
    width: 100%;
    cursor: pointer;
}

.bottom-toolbar-profile-menu-item:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--bs-primary);
}

.bottom-toolbar-profile-menu-item i {
    width: 20px;
    text-align: center;
}

/* Dark mode support per menu profilo */
@media (prefers-color-scheme: dark) {
    .bottom-toolbar-profile-menu {
        background: var(--bs-body-bg, rgba(30, 30, 30, 0.95));
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--bs-body-color, rgba(255, 255, 255, 0.9));
    }
    
    .bottom-toolbar-profile-menu::after {
        border-top-color: var(--bs-body-bg, rgba(30, 30, 30, 0.95));
    }
    
    .bottom-toolbar-profile-menu-item {
        color: var(--bs-body-color, rgba(255, 255, 255, 0.9));
    }
    
    .bottom-toolbar-profile-menu-item:hover {
        background: rgba(37, 99, 235, 0.2);
        color: var(--bs-primary);
    }
    
    .bottom-toolbar-profile-menu-header .text-muted {
        color: var(--bs-secondary-color, rgba(255, 255, 255, 0.6)) !important;
    }
}

/* Responsive per menu profilo */
@media (max-width: 768px) {
    .bottom-toolbar-profile-menu {
        min-width: 260px;
        right: -10px;
    }
    
    .bottom-toolbar-profile-btn {
        width: 48px;
        height: 48px;
    }
    
    .bottom-toolbar-profile-avatar {
        width: 48px;
        height: 48px;
    }
    
    .bottom-toolbar-profile-btn:hover {
        transform: translateY(-6px) scale(1.25);
    }
}

@media (max-width: 480px) {
    .bottom-toolbar-profile-menu {
        min-width: 240px;
        right: -20px;
    }
    
    .bottom-toolbar-profile-btn {
        width: 44px;
        height: 44px;
    }
    
    .bottom-toolbar-profile-avatar {
        width: 44px;
        height: 44px;
    }
    
    .bottom-toolbar-profile-btn:hover {
        transform: translateY(-4px) scale(1.2);
    }
}

/* Supporto per tema admin */
@auth
@if(Auth::user()->isAdmin())
.bottom-toolbar-item.active i {
    color: var(--bs-danger);
}

.bottom-toolbar-item.active .bottom-toolbar-icon-wrapper {
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.bottom-toolbar-item:hover .bottom-toolbar-icon-wrapper {
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.bottom-toolbar-item:hover i {
    color: var(--bs-danger);
}

.bottom-toolbar-indicator {
    background: var(--bs-danger);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.bottom-toolbar-profile-btn:hover .bottom-toolbar-profile-avatar {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}
@endif
@endauth

