:root{
  --navbar-bg: #3b3c4b;
  --navbar-height: 66.9px;
  --background-color: #272935;
  --text-color: #e5e5e7;
  --border-color: #3c4859;
  --border-width: .25rem;
  --button-bg: #3678e8;
  --button-hover-bg: #205cc3;
  --popover-header: #3b3c4b;
  --popover-body: #343434;
  --icon-border-color: #1e6baf;
  --dropdown-background-color: #212529;
  --dropdown-item-background-color: #479af8;
}

/*************** RESET ***************/
body {
  background: var(--background-color);
  color: var(--text-color);
}

a:not(.old-link) {
  color: inherit;
  text-decoration: none;
}

hr {
  color: var(--border-color);
  opacity: 1;
  border-width: var(--border-width);
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 20px;
}

/* Sfondo */
::-webkit-scrollbar-track {
  margin-right: 200px;
  background-color: #3c4859;
  border-radius: 12px;
  border: 1px solid #3c4859; 
  box-shadow: inset 0 0 5px rgba(0,0,0,0.3); 
}

/* Barra interna */
::-webkit-scrollbar-thumb {
  background: #d9d9d9; 
  border-radius: 12px;
  border: 4px solid transparent;
  background-clip: content-box;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Barra interna in HOVER */
::-webkit-scrollbar-thumb:hover {
  box-shadow: inset 0 0 8px rgba(0,0,0,0.4);
}

/*************** RESET BOOTSTRAP ***************/
.pt-6 {
  padding-top: 3.5rem !important;
}

main {
  display: flex;
  justify-content: center;
}
.container {
  margin: 0 !important;
  max-width: 90% !important;
}

/* BREADCRUMB */
.breadcrumb-item,
.breadcrumb-item + .breadcrumb-item::before {
  color: inherit !important;
}

/* DROPDOWN (BOOTSTRAP & FORM)  */
.dropdown-menu {
  background-color: var(--dropdown-background-color);
  border: .2rem solid var(--border-color);
  color: var(--text-color);
  border-radius: .3rem;
}
.dropdown-menu li:not(:last-child) {
  border-bottom: .2rem solid var(--border-color);
}
.dropdown-item {
  padding: .25rem 1rem;
}
.dropdown-menu li:hover:not(.no-hover),
.dropdown-item:hover {
  background-color: var(--dropdown-item-background-color);
  color: inherit;
}
.dropdown-menu li:first-child {
  border-top-left-radius: .3rem;
  border-top-right-radius: .3rem;
}
.dropdown-menu li:last-child{
  border-bottom-left-radius: .3rem;
  border-bottom-right-radius: .3rem;
}

/* MODAL */
.modal-content {
  background-color: var(--background-color);
  border: var(--border-width) solid var(--border-color);
}
.modal-header,
.modal-footer {
  border-width: .2rem;
  border-color: var(--border-color);
}

/*************** UTILITIES ***************/
.vh-100{
  height: 100vh;
}
.dvh-100{
  height: 100dvh;
  overflow: hidden;
}

/* BACKGROUND COLOR */
.bg-transparent{
  background-color: transparent;
}

.custom-navbar-bg{
  background: var(--navbar-bg) !important;
}

.custom-border-color {
  border-color: var(--border-color) !important;
}

.body-bg-color{
  background: var(--background-color) !important;
}

/* TEXT */
.cropped-text{
  white-space: nowrap; 
  overflow: hidden;
  text-overflow: ellipsis; 
}

.hover-underline:hover {
  text-decoration: underline;
}

.hover-pointer:hover {
  cursor: pointer;
}

.color-inherit {
  color: inherit;
}

/* LOGO */
.logo-xs {
  width: 50px;
  height: 50px;
}

.logo-s {
  width: 70px;
  height: 70px;
}

.logo-m {
  width: 90px;
  height: 90px;
}

.logo-l {
  width: 100px;
  height: 100px;
}

.logo-xl {
  width: 130px;
  height: 130px;
}

.logo-xxl {
  width: 150px;
  height: 150px;
}

/* BUTTONS */
.deselected {
  opacity: 0.4; 
}
.deselected:hover {
  opacity: 0.7; 
}

.custom-button {
  background-color: var(--button-bg);
  border: none !important;
  border-radius: 30px;
  color: inherit;
  font-weight: bold;
  padding: 0.5rem 2rem;
}
.custom-button:hover,
.custom-button:focus,
.custom-button:focus-visible,
.custom-button:disabled {
  background-color: var(--button-hover-bg) !important;
} 

.invisible-button {
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
}

/* INPUT */
.custom-underline-input-text,
.custom-underline-input-text:focus {
  background: transparent;
  color: var(--text-color);
  padding: 0 5px;
  border-radius: 0;
  border: none;
  border-bottom: var(--border-width) solid var(--border-color);
  box-shadow: none;
  outline: none;
}


.custom-input-text,
.custom-input-text:focus {
  background: transparent;
  color: inherit;
  padding: 2px 10px;
  border: var(--border-width) solid var(--border-color);
  border-radius: 15px;
  outline: none;
}

/* TABLE */
.table-bg-transparent,
.table-bg-transparent th,
.table-bg-transparent td {
  background-color: transparent !important;
  color: inherit !important;
  border-color: var(--border-color) !important;
}

.table-bg-transparent th,
.table-bg-transparent td {
  border-right-width: var(--border-width) !important;
  border-bottom-width: var(--border-width) !important;
}

.table-bg-transparent tr th:last-child,
.table-bg-transparent tr td:last-child {
  border-right: none;
}

.table-bg-transparent tbody tr:last-child th,
.table-bg-transparent tbody tr:last-child td {
  border-bottom: none;
}

/* POPOVER */
.custom-popover {
  --bs-popover-header-bg: var(--popover-header);        /* Sfondo dell'header */
  --bs-popover-header-color: #fff;                    /* Colore testo header */
  --bs-popover-bg: var(--popover-body);                 /* Sfondo del corpo */
  --bs-popover-body-color: #ddd;                      /* Colore testo corpo */
  --bs-popover-border-color: var(--icon-border-color);  /* Colore bordo */
  border-width: var(--border-width);
}
.custom-popover,
.custom-popover .popover-header {
  --bs-popover-border-color: var(--icon-border-color);  /* Colore bordo */
  border-width: var(--border-width);
}
/* Freccia */
.custom-popover .popover-arrow::before,
.custom-popover .popover-arrow::after {
  border-right-color: var(--icon-border-color) !important;
}

/* DRAG AND DROP */
#drop-area {
  border: var(--border-width) dashed var(--border-color);
  text-align: center;
  transition: border-color 0.2s ease;
}

#drop-area.dragover {
  border-color: #0d6efd;
}

/* DROPDOWN */
.custom-dropdown {
  background-color: var(--dropdown-background-color);
  border: .2rem solid var(--border-color);
  color: var(--text-color);
  border-radius: .3rem;
}
.custom-dropdown select {
  border: none;
  outline: none;
  box-shadow: none;
}
.custom-dropdown option:first-child {
  border-top-left-radius: .3rem !important;
  border-top-right-radius: .3rem !important;
}
.custom-dropdown option:last-child {
  border-bottom-left-radius: .3rem !important;
  border-bottom-right-radius: .3rem !important;
}
.custom-dropdown option:not(:last-child) {
  border-bottom: .2rem solid var(--border-color);
}
.custom-dropdown option {
  padding: .25rem 1rem;
}
.custom-dropdown option:hover {
  background-color: var(--dropdown-item-background-color);
  color: inherit;
}

/* UL */
.custom-ul li {
  border: .2rem solid var(--border-color);
  background-color: var(--dropdown-background-color);
  color: inherit;
}
.custom-ul li:hover {
  background-color: var(--dropdown-item-background-color);
}

/*************** RESPONSIVE ***************/
/* S - Small devices (≥576px) */
@media (min-width: 576px) {
  /* LOGO */
  .s-logo-xs {
    width: 50px;
    height: 50px;
  }

  .s-logo-s {
    width: 70px;
    height: 70px;
  }

  .s-logo-m {
    width: 90px;
    height: 90px;
  }

  .s-logo-l {
    width: 100px;
    height: 100px;
  }

  .s-logo-xl {
    width: 130px;
    height: 130px;
  }

  .s-logo-xxl {
    width: 150px;
    height: 150px;
  }
}

/* M - Medium devices (≥768px) */
@media (min-width: 768px) {
  /* UTILITIES */
  .w-md-75{
    width: 75% !important;
  }

  /* LOGO */
  .m-logo-xs {
    width: 50px;
    height: 50px;
  }

  .m-logo-s {
    width: 70px;
    height: 70px;
  }

  .m-logo-m {
    width: 90px;
    height: 90px;
  }

  .m-logo-l {
    width: 100px;
    height: 100px;
  }

  .m-logo-xl {
    width: 130px;
    height: 130px;
  }

  .m-logo-xxl {
    width: 150px;
    height: 150px;
  }

  /* BORDER */
  .border-md-end {
    border-right: 1px solid; 
  }
  .border-md-4 {
    border-width: .25rem;
  }
}

/* L - Large devices (≥992px) */
@media (min-width: 992px) {
  /* UTILITIES */
  .w-lg-50{
    width: 50% !important;
  }

  /* LOGO */
  .l-logo-xs {
    width: 50px;
    height: 50px;
  }

  .l-logo-s {
    width: 70px;
    height: 70px;
  }

  .l-logo-m {
    width: 90px;
    height: 90px;
  }

  .l-logo-l {
    width: 100px;
    height: 100px;
  }

  .l-logo-xl {
    width: 130px;
    height: 130px;
  }

  .l-logo-xxl {
    width: 150px;
    height: 150px;
  }
}

/* XL - Extra large devices (≥1200px) */
@media (min-width: 1200px) {
  /* LOGO */
  .xl-logo-xs {
    width: 50px;
    height: 50px;
  }

  .xl-logo-s {
    width: 70px;
    height: 70px;
  }

  .xl-logo-m {
    width: 90px;
    height: 90px;
  }

  .xl-logo-l {
    width: 100px;
    height: 100px;
  }

  .xl-logo-xl {
    width: 130px;
    height: 130px;
  }

  .xl-logo-xxl {
    width: 150px;
    height: 150px;
  }

  .container {
    max-width: 80% !important;
  }
}

/* XXL - Extra extra large devices (≥1400px) */
@media (min-width: 1400px) {
  /* LOGO */
  .xxl-logo-xs {
    width: 50px;
    height: 50px;
  }

  .xxl-logo-s {
    width: 70px;
    height: 70px;
  }

  .xxl-logo-m {
    width: 90px;
    height: 90px;
  }

  .xxl-logo-l {
    width: 100px;
    height: 100px;
  }

  .xxl-logo-xl {
    width: 130px;
    height: 130px;
  }

  .xxl-logo-xxl {
    width: 150px;
    height: 150px;
  }

  .container {
    max-width: 70% !important;
  }
}
