::-webkit-scrollbar {
  width: 8px;
}
/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap");
:root {
  --header-height: 3rem;
  --nav-width: 68px;
  --first-color: #4723d9;
  --body-font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --normal-font-size: 1rem;
  --z-fixed: 100;
  --background-color: #f7fafc;
}
*,
::before,
::after {
  box-sizing: border-box;
}
body {
  position: relative;
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  transition: 0.5s;
  height: calc(100vh - var(--header-height));
}
main {
  background-color: var(--background-color);
}
a {
  text-decoration: none;
}
.header {
  width: 100%;
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  z-index: var(--z-fixed);
  background-color: white;
  transition: 0.5s;
  box-shadow: 3px 0 5px rgba(0, 0, 0, 0.1);
}
.header_toggle {
  color: var(--bs-primary);
  font-size: 1.5rem;
  cursor: pointer;
}
.header_img {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
}
.header_img img {
  width: 40px;
}
.l-navbar {
  position: fixed;
  top: 0;
  left: -30%;
  width: var(--nav-width);
  height: 100vh;
  padding: 0.5rem 1rem 0 0;
  background-color: #ffffff;
  transition: 0.5s;
  z-index: var(--z-fixed); /* Ensure sidebar is below header */
  box-shadow: 3px 0 5px rgba(0, 0, 0, 0.1);
}
.nav {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.nav_logo,
.nav_link {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  column-gap: 1rem;
  padding: 0.5rem 0 0.5rem 1.5rem;
}
.nav_logo {
  margin-bottom: 2rem;
}
.nav_logo-icon {
  font-size: 1.25rem;
  color: var(--bs-primary);
}
.nav_logo-name {
  color: var(--selected-color);
  font-weight: 700;
}
.nav_link {
  position: relative;
  color: var(--bs-gray-600);
  margin-bottom: 1.5rem;
  transition: 0.3s;
}
.nav_link:hover {
  color: var(--bs-primary);
}
.nav_icon {
  font-size: 1.25rem;
}
.showNav {
  left: 0;
}
.body-pd {
  padding-right: 0;
  padding-left: calc(var(--nav-width));
}
.navActive {
  color: var(--bs-primary);
}
.navActive::before {
  content: "";
  position: absolute;
  left: 0;
  width: 2px;
  height: 32px;
  background-color: var(--bs-primary);
}
#dealConnect_main {
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

/* Animation for section content */
.fade-in {
  animation: fadeIn 0.2s ease-in-out;
}

@media screen and (min-width: 768px) {
  body {
    margin: calc(var(--header-height) + 1rem) 0 0 0;
    padding-left: calc(var(--nav-width));
    height: calc(100vh - var(--header-height) - 1rem);
  }
  .header {
    height: calc(var(--header-height) + 1rem);
    padding: 0 2rem 0 calc(var(--nav-width));
  }
  .header_img {
    width: 40px;
    height: 40px;
  }
  .header_img img {
    width: 45px;
  }
  .l-navbar {
    left: 0;
    padding: 1rem 1rem 0 0;
  }
  .showNav {
    width: calc(var(--nav-width) + 156px);
  }
  .body-pd {
    padding-right: 0;
    padding-left: calc(var(--nav-width) + 156px);
  }
  #dealConnect_main {
    height: calc(100vh - var(--header-height) - 1rem);
    overflow-y: auto;
  }
}

.skeleton-loading {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.skeleton-loading::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.2) 0,
    rgba(255, 255, 255, 0.4) 20%,
    rgba(255, 255, 255, 0.7) 60%,
    rgba(255, 255, 255, 0.2)
  );
  animation: shimmer 2s infinite;
  content: "";
}

.skeleton-text {
  background-color: #e1e5e7;
  border-radius: 4px;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes skeleton-loading {
  0% {
    opacity: 0.7;
  }
  99% {
    opacity: -1.3;
  }
}

/* Protexia24 - Begin */
.btn-primary {
  background-color: #ff3366;
  border-color: #ff3366;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 15px;
}
.btn-primary:hover {
  background-color: #e62e5c;
  border-color: #e62e5c;
}
/* Protexia24 - End */

/* Badge Notifica - Begin */

/* Badge notifiche */
.badge-positioned {
  position: relative;
}

.badge-positioned .notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  /* background-color: #dc3545; */ 
  background-color: #28A745;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: bold;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Tooltip per le notifiche */
.tooltip-custom:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  margin-bottom: 5px;
  z-index: 1000;
}

.tooltip-custom:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
  z-index: 1000;
}
/* Badge Notifica - End */