@import url(./assets.css);

@tailwind base;
@tailwind components;
@tailwind utilities;

* {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

*::-webkit-scrollbar {
  height: 6px;
  width: 6px;
  transition: width 0.3s ease;
}

*::-webkit-scrollbar-track {
  border-radius: 0px;
  background-color: #E7EAE9;
}

*::-webkit-scrollbar-track:hover {
  background-color: #D6D9D8;
}

*::-webkit-scrollbar-track:active {
  background-color: #B8C0C2;
}

*::-webkit-scrollbar-thumb {
  background-color: rgb(17 24 39);
}

*::-webkit-scrollbar-thumb:hover {
  background-color: rgb(17 24 39);
}

*::-webkit-scrollbar-thumb:active {
  background-color: rgb(17 24 39);
}

.truncate-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
}

.selectable {
  cursor: pointer;
}

.filter-red {
  filter: brightness(0) saturate(100%) invert(17%) sepia(40%) saturate(6297%) hue-rotate(353deg) brightness(117%) contrast(81%);
}


/* Stili personalizzati per l'input range */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
}

/* Traccia dello slider */
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: #5f6c7d;
  border-radius: 2px;
  cursor: pointer;
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 8px;
  background: #5e6a7b;
  border-radius: 2px;
  cursor: pointer;
}

/* Pallino dello slider */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: rgb(59 130 246);
  cursor: pointer;
  margin-top: -4px;
  transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: rgb(59 130 246);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

/* Hover effects */
input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.2);
}

input[type="range"]:hover::-moz-range-thumb {
  transform: scale(1.2);
}

::-webkit-media-controls {
  display: none !important;
}

::-webkit-media-control-panel {
  display: none !important;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.icon-completed {
    color: green;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.icon-test_required {
    color: orange;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.icon-not_started {
    color: gray;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.text-green-500 {
    color: green !important;
}

.bg-green-500 {
	background-color: green !important;
}

.bg-green-500:hover {
	background-color: #006400 !important;
}