html {
  scroll-behavior: smooth;
}

body {
  color: #5f6065; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1 {
  font-size: 36px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
 color: #171717;
  font-weight: 750;
  margin: 5px 0;
}

h2 {
  font-size: 30px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color: #171717;
  font-weight: 750;
  margin: 5px 0;
}

h3 {
  font-size: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
   color: #171717;
  font-weight: 750;
  margin: 5px 0;
}

h4 {
  font-size: 22px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
   color: #171717;
  font-weight: 750;
  margin: 5px 0;
}

h5 {
  font-size: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
   color: #171717;
  font-weight: 700;
  margin: 5px 0;
}

h6 {
  font-size: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
   color: #171717;
  font-weight: 700;
  margin: 5px 0;
}

input,
select,
textarea {
  color: black;
}

.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24
}

.ticker-container {
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

.ticker {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.card {
  position: relative;
}

.card-content {
  width: 100%;
  position: absolute;
  bottom: 0;
  padding: 5px 5px;
  border-top: 0;
  border-radius: 2px;
  z-index: 1;
}

.dark-mode {
  background-color: #242526;
  color: rgb(226, 225, 225);

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: white;
  }

  ;
}

.light-mode {
  background-color: #f8fafa;
  color: #12192c;

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: #12192c
  }

  ;
}

.short-text {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.short-text-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.truncate-text {
  white-space: nowrap;        /* Prevents text from wrapping */
  overflow: hidden;           /* Hides overflowed text */
  text-overflow: ellipsis;    /* Adds the "..." */
  max-width: 200px;           /* Set a max width as needed */
  display: inline-block;      /* Ensures width constraints apply */
}


.flex-container {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

/* ##########  Multi select checkboxes ##########*/
.multi-select {
  position: relative;
}

#search-box {
  width: 100%;
}

#dropdown {
  position: absolute;
  margin-top: 0px;
  border: 1px solid #ccc;
  max-height: 150px;
  overflow-y: auto;
  background-color: #fff;
  z-index: 1000;
  width: 100%;
}

#dropdown label {
  display: block;
  padding: 5px;
}

label:hover {
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
}

.hidden {
  display: none;
}

#tags {
  margin-top: 5px;
  margin-bottom: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 5px;
  border: 1px solid green !important;
  border-radius: 4px;
  cursor: pointer;
}

.tag span {
  margin-left: 5px;
  cursor: pointer;
  font-weight: bold;
}

/* ##########  Tooltip ##########*/

/* Container for tooltip */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Tooltip text */
.tooltip .tooltip-text {
  visibility: hidden;  
  text-align: left;
  width: 150px;
  padding: 5px;  
  background-color: #ffffff;
  border-radius: 3px;
  border:1px solid dodgerblue;

  /* Positioning */
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position above the tooltip's parent */
  left: 50%;
 
  /* Fade-in effect */
  opacity: 0;
  transition: opacity 0.3s;
}
  /* Positioning */
.tooltip-right {
  transform: translateX(0%);
}

.tooltip-left {
  transform: translateX(-100%);
}

/* Show the tooltip text on hover */
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
/* ##########  Animated Border ##########*/

.animated-link-wrapper {
  display: inline-block;
  position: relative;
}

/* Conic gradient */
.animated-link-effect {
  pointer-events: none;
  border-radius: 6px;
  width: calc(100% - 1px);
  height: calc(100% - 1px);
  position: absolute;
  padding: 3px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: exclude;
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}

.animated-link-effect div {
  background-image: conic-gradient(from 0 at 50% 50%, rgba(255, 255, 255, .5) 0deg, rgba(255, 255, 255, 0) 60deg, rgba(255, 255, 255, 0) 310deg, rgba(255, 255, 255, .5) 360deg);
  position: relative;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 100%;
  animation: rotate 3s linear infinite;
  aspect-ratio: 1;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) scale(1.4) rotate(0turn);
  }

  to {
    transform: translate(-50%, -50%) scale(1.4) rotate(1turn);
  }
}

/* ##########  Switch Button ##########*/
/* 
  <label class="switch">
    <input type="checkbox">
    <span class="slider"></span>
  </label>
   */

.switch {
  position: relative;
  display: inline-block;
  width: 35px;
  height: 16px;
}

/* The slider background */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 15px;
}

/* The circle inside the switch */
.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 5px;
  bottom: 2.5px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Checked state */
input:checked+.slider {
  background-color: #4CAF50;
}

input:checked+.slider:before {
  transform: translateX(15px);
}

/* ##########  Carrousel ##########*/
/*
 <div class="carousel">
  <div class="carousel-inner">
      <div class="carousel-item active">Slide 1</div>
      <div class="carousel-item">Slide 2</div>
      <div class="carousel-item">Slide 3</div>
  </div>
<button class="carousel-button prev">←</button>
<button class="carousel-button next">→</button>
</div> 
*/

.carousel {
  position: relative;
  overflow: hidden;
  margin: auto;
}

.carousel-inner {
  display: flex;
  margin-left: 25px;
  margin-right: 25px;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  margin: 2px;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding: 3px 5px;
  border: 1px solid #ddd;
  white-space: nowrap;

}

.carousel-item:hover {
  box-shadow: 0 2px 2px 0px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.w3-hover:hover {
  box-shadow: 0 2px 2px 0px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
@media (max-width: 768px) {
  .carousel-item {
    flex: 0 0 calc(100% / 4);
    /* Fit 4 items for smaller screens */
  }
}

.carousel-button {
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid gray !important;
  border-radius: 12px;
  padding: 1px 4px;
  cursor: pointer;
}

.carousel-button:hover {
  box-shadow: 0 2px 2px 0px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.carousel-button.prev {
  position: absolute;
  left: 5px;
}

.carousel-button.next {
  position: absolute;
  right: 0px;
}

/* HTML: <div class="loader"></div> */
.loader2 {
  width: 90px;
  height: 14px;
  box-shadow: 0 3px 0 #fff;
  position: relative;
  clip-path: inset(-40px 0 -5px)
}

.loader2:before {
  content: "";
  position: absolute;
  inset: auto calc(50% - 17px) 0;
  height: 50px;
  --g: no-repeat linear-gradient(#ccc 0 0);
  background: var(--g), var(--g), var(--g), var(--g);
  background-size: 16px 14px;
  animation:
    l7-1 2s infinite linear,
    l7-2 2s infinite linear;
}

/* No print section */
@media print {
  .noPrint {
    display: none;
  }
}

.form-editable {
    background-color: #f7f4d8 !important; /* Light yellow */
}

.tag-remove-disabled {
    color: #ccc;
    pointer-events: none;
    cursor: not-allowed;
}

.tag-disabled {
    pointer-events: none;
    opacity: 0.6;
}

    #suggestions {
      border: 1px solid #ccc;
      max-height: 150px;
      overflow-y: auto;
      position: absolute;
      background: white;
      width: 300px;
      display: none;
      z-index: 1000;
    }
    .suggestion {
      padding: 2px;
      cursor: pointer;
    }
    .suggestion:hover {
      background-color: #f0f0f0;
    }
