.badge-soft {
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary-text-emphasis, var(--bs-primary));
  border: 1px solid transparent;
  transition: color .2s, background-color .2s;
}

/* Variante per tema scuro */
[data-bs-theme="dark"] .badge-soft,
body.dark-mode .badge-soft {
  background-color: rgba(var(--bs-primary-rgb), 0.25);
  color: var(--bs-light);
}


/* Global Loader */
.global-loader{
  position:fixed; inset:0;
  background:rgba(255,255,255,.65);
  backdrop-filter:blur(3px);
  display:flex; align-items:center; justify-content:center;
  z-index:9999;
}
.loader-box{
  background:#fff; padding:22px 30px; border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.15);
}

/* /Global Loader */

/*Sidebar*/
.side-nav{
  padding-bottom: 100px;
}


/**/

/* Loghi */

.logo-lg img {
    height: auto !important;
    max-width: 100% !important;
    max-height: 60px;
}

.logo .logo-dark {
  display: none;
}

html[data-bs-theme="dark"] .logo .logo-light {
  display: none !important;
}

html[data-bs-theme="dark"] .logo .logo-dark {
  display: inline-block !important;
}

    .topbar-link.position-relative {
        overflow: visible !important;
    }

    .notification-badge {
        position: absolute;
        top: -2px;
        right: -4px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: #dc3545;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        line-height: 18px;
        text-align: center;
        z-index: 20;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 0 2px rgba(255,255,255,.9);
    }

    body[data-bs-theme="dark"] .notification-badge {
        box-shadow: 0 0 0 2px rgba(33,37,41,.95);
    }

    .notification-list-scroll {
        max-height: 360px;
        overflow-y: auto;
    }

    .notification-item-row {
        cursor: pointer;
        transition: background-color .15s ease, opacity .15s ease;
    }

    .notification-item-row:hover {
        background-color: rgba(0, 0, 0, 0.03);
    }

    body[data-bs-theme="dark"] .notification-item-row:hover {
        background-color: rgba(255, 255, 255, 0.04);
    }

    .notification-item-row.unread {
        background-color: rgba(13, 110, 253, 0.06);
    }

    body[data-bs-theme="dark"] .notification-item-row.unread {
        background-color: rgba(13, 110, 253, 0.14);
    }

    .notification-item-title {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
    }

    .notification-item-message {
        font-size: 12px;
        opacity: .82;
        line-height: 1.35;
        word-break: break-word;
    }

    .notification-item-meta {
        font-size: 11px;
        opacity: .65;
    }

    .notification-dot {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        display: inline-block;
        flex: 0 0 8px;
        margin-top: 6px;
    }

    .notification-dot.info { background: #0d6efd; }
    .notification-dot.success { background: #198754; }
    .notification-dot.warning { background: #ffc107; }
    .notification-dot.danger { background: #dc3545; }

    .notification-item-row:not(.unread) .notification-dot {
    display: none;
}