@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --background: 0 0% 100%;
  --foreground: 20 14.3% 4.1%;
  --card: 0 0% 100%;
  --card-foreground: 20 14.3% 4.1%;
  --popover: 0 0% 100%;
  --popover-foreground: 20 14.3% 4.1%;
  --primary: 47.9 95.8% 53.1%;
  --primary-foreground: 26 83.3% 14.1%;
  --secondary: 60 4.8% 95.9%;
  --secondary-foreground: 24 9.8% 10%;
  --muted: 60 4.8% 95.9%;
  --muted-foreground: 25 5.3% 44.7%;
  --accent: 60 4.8% 95.9%;
  --accent-foreground: 24 9.8% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 60 9.1% 97.8%;
  --border: 20 5.9% 90%;
  --input: 20 5.9% 90%;
  --ring: 20 14.3% 4.1%;
  --radius: 0.5rem;
  --text-opacity: 0.5;
  --tertiary: rgb(163, 133, 0);
}

* {
  margin: 0px;
  padding: 0px;

  font-family: "Inter", sans-serif;

  box-sizing: border-box;
  scrollbar-color: #dddddd4f #dddddd00;
  scrollbar-width: thin;
}

.board-wrapper {
  display: flex;

  height: 100vh;
  padding-bottom: 1rem;
}

.board-sidebar {
  flex-shrink: 0;
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  flex-direction: column;
  
  width: 16rem;
  border-right: 2px solid hsl(var(--border));

  box-sizing: border-box;
}

.board-sidebar .back-button {
  display: flex;

  width: fit-content;
  margin-left: 1rem;
  padding: 2px 5px;
  border-radius: 8px;
  background-color: transparent;

  font-size: 12px;
  text-decoration: none;
  color: var(--tertiary);

  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;

  gap: 5px;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.board-sidebar .back-button .far {
  font-size: 14px;
}

.board-sidebar .back-button:hover {
  background-color: hsl(var(--primary) / 0.2);
}

.board-sidebar .search-container {
  position: relative;
}

.board-sidebar .search-container .fa-search {
  display: flex;
  align-items: center;

  position: absolute;
  left: 10;
  top: 0;
  bottom: 0;

  font-size: 14px;

  opacity: 0.5;
}

.board-sidebar .input-search {
  display: flex;

  width: 93%;
  height: 2rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.25rem;
  padding-left: 2rem;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  border-color: hsl(var(--input));
  border-style: solid;
  border-width: 1px;
  border-width: 1px;
  border-radius: 0.375rem;
  outline: none;
  background-color: transparent;
  background-color: transparent;

  font-size: 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted-foreground);

  transition: color 0.15s ease-in-out;
  transition-duration: 150ms;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;

  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color),
    0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.board-content {
  flex: 1 1 0%;
}

.board-content .input-search:hover,
.board-sidebar .input-search:hover {
  background-color: hsl(var(--accent));
}

.list-container {
  display: flex;

  width: auto;
  height: 100%;
  max-height: calc(100% - 190px);
  margin-top: 2rem;
  flex: 1;

  overflow: scroll;
  gap: 1.25rem;
}

.list-container p {
  font-weight: 600;
}

.board-content .wrapper {
  height: 100%;
  padding: 3rem 0rem 0rem 2rem;
  display: flex;
  flex-direction: column;
}

.board-content .wrapper .header {
  display: flex;
  flex-direction: column;

  font-size: 0.9rem;

  gap: 0.5rem;
}

.board-content .wrapper .header h1,
p {
  opacity: 0.8;
}

.board-content .input-search {
  display: flex;

  width: 40rem;
  height: 2.25rem;
  margin-top: 0.75rem;
  padding-bottom: 0.25rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  border-color: hsl(var(--input));
  border-style: solid;
  border-width: 1px;
  border-width: 1px;
  border-radius: 0.375rem;
  outline: none;
  background-color: transparent;
  background-color: transparent;

  font-size: 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted-foreground);

  transition: color 0.15s ease-in-out;
  transition-duration: 150ms;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;

  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color),
    0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.board-content .wrapper h1 {
  font-size: 1.875rem;
  font-weight: 700;

  line-height: 2.25rem;
}

.board-sidebar .logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;

  height: 100%;
  flex: 1;
  padding: 0 0rem 0rem 0rem;
}

.board-sidebar .logo-container img {
  max-width: 210px;
  max-height: 56px;

  vertical-align: middle;
}

.navbar {
  width: 100%;
  height: 100%;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  overflow: scroll;

  font-weight: 600;

  list-style-type: none;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-right: 10px;
  border-radius: 8px;

  transition-duration: 150ms;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;

  cursor: pointer;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar li:hover {
  color: rgb(100, 99, 94);
}

.navbar .container .fa-chevron-down {
  transition: transform 300ms cubic-bezier(0.87, 0, 0.13, 1);
}

.navbar .showPhasesIcon {
  padding: 5px;
}

.navbar .showPhasesIcon[data-state="true"] > .fa-chevron-down {
  transform: rotate(180deg);
}

.navbar .container .content {
  overflow: hidden;
}

.navbar li {
  display: flex;
  flex-direction: column;

  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
  border-radius: 0.375rem;

  font-weight: 600;
  text-decoration: inherit;
  color: inherit;
}

.navbar .projectName {
  width: 100%;
  margin-left: 3px;
  padding: 0.5rem 0;

  font-size: 0.95rem;
  font-weight: 500;

  cursor: pointer;
}

.navbar .projectName span {
  font-size: 0.8rem;

  opacity: 0.7;
}

.navbar .content {
  display: flex;
  flex-direction: column;

  margin-top: 10px;

  font-weight: 500;
  color: hsl(var(--muted-foreground));

  overflow: hidden;
  cursor: pointer;
}

.navbar ul {
  height: calc(100% - 40px);
  overflow: auto;
  flex: 1
}

.projectTitile {
  margin-bottom: 15px;

  font-size: 1rem;
  font-weight: 700;

  opacity: 0.7;
}

.navbar .subPhaseName {
  padding: 8px 8px;
  border-radius: 8px;

  font-size: 0.875rem;

  transition-duration: 150ms;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;

  user-select: none;
  overflow: hidden;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .subPhaseName:hover {
  background-color: rgb(240, 240, 240);

  color: rgb(87, 87, 87);
}

.board-content .filter-container {
  display: flex;
  flex-wrap: wrap;

  margin-top: 10px;

  gap: 0.813rem;
}

.board-content .multi-filter-container {
  display: flex;
  flex-direction: row;
  align-items: center;

  position: relative;

  padding: 0.5rem 0.5rem;
  border: #afafafd1 dashed 1px;
  border-radius: 8px;
  background-color: hsl(var(--card));

  color: hsl(var(--card-foreground));
  font-size: smaller;

  transition: border 0.3s ease;
  transition: color 0.15s ease-in-out;
  transition-duration: 150ms;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;

  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color),
    0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.board-content .multi-filter-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-height: 40px;
  min-height: 40px;

  position: relative;

  padding: 0.5rem 0.5rem;
  border: #afafafd1 dashed 1px;
  border-radius: 8px;
  background-color: hsl(var(--card));

  color: hsl(var(--card-foreground));

  transition: border 0.3s ease;
  transition: color 0.15s ease-in-out;
  transition-duration: 150ms;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;

  gap: 10px;
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color),
    0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.board-content .multi-filter-container:hover {
  background-color: #d5d5d51d;
}

.board-content .multi-filter-container p {
  border-right: #b8b8b8 solid 1px;
  padding-right: 10px;
}

.board-content .multi-filter-container .selected {
  display: flex;
  align-items: center;

  gap: 4px;
}

.board-content .multi-filter-container .no-selected-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 8px;

  max-width: 200px;
  background-color: transparent;

  text-overflow: ellipsis;
  overflow: hidden;

  transition: background-color 0.15s ease-out;
  transition-duration: 150ms;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
}

.board-content .multi-filter-container .no-selected-container:hover {
  background-color: hsl(var(--primary) / 0.2);
}

.board-content
  .multi-filter-container
  .content-filter:has(> span:nth-child(3)) {
  visibility: visible;
}

.board-content .multi-filter-container .content-filter {
  visibility: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.5rem;
  display: none;

  --tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.313), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color),
    0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  position: absolute;
  background-color: hsl(var(--card));
  border: #cfcfcf28 solid 1px;
  border-radius: 8px;

  color: hsl(var(--card-foreground));
  z-index: 10;
  top: 50;
}

.board-content .multi-filter-container .content-filter button {
  width: 100%;
  font-size: 0.7rem;
}

.board-content .multi-filter-container .content-filter span:hover {
  text-decoration-line: line-through;
}

.board-content .multi-filter-container .content-filter hr {
  margin: 5px 0px;
  opacity: 0.3;
}

.board-content .multi-filter-container button {
  padding: 0.5rem 0.5rem;
  border: none;
  border-radius: 6px;
  color: rgb(133, 133, 133);
  background-color: transparent;

  font-size: small;
  font-weight: 500;

  transition-duration: 150ms;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;

  cursor: pointer;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.board-content .multi-filter-container button:hover {
  background-color: hsl(var(--accent));
}

.board-content .multi-filter-container .remove-projet-button {
  all: unset;
  cursor: pointer;
}

.board-content .multi-filter-container .remove-projet-button:hover {
  opacity: 0.5;
  transition: opacity 0.5s ease-in-out;
}

.board-content .filter-container span {
  padding: 5px 7px;
  border-radius: var(--radius);
  background-color: hsl(var(--primary) / 0.2);

  font-size: 0.7rem;
  color: var(--tertiary);

  cursor: pointer;
}

.list-container .content {
  display: flex;
  flex-direction: column;

  min-width: 19.2rem;
  height: fit-content;
  max-height: 100%;
  min-height: 4rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  background-color: rgb(235 235 235 / var(--tw-bg-opacity));

  --tw-bg-opacity: 0.6;
}

.list-container .content .title {
  margin-left: 2px;
}

.list-container .content .legend {
  margin-left: 2px;
  margin-top: 0.3rem;

  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-foreground);

  opacity: 0.5;
}

.list-container .content .list {
  max-height: calc(100% - 55px);
  min-height: 4rem;
  margin-top: 0.5rem;
  padding: 2px 2px;

  overflow: auto;
}

.card {
  position: relative;

  width: 18rem;
  margin-top: 0.5rem;
  padding: 1.5rem;
  border: #e9e9e900 solid 1px;
  border-radius: 0.75rem;
  background-color: hsl(var(--card));

  color: hsl(var(--card-foreground));

  transition: border 0.3s ease;

  cursor: grab;
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color),
    0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.card:hover {
  border: rgba(104, 104, 98, 0.289) solid 1px;
}

.card header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;

  margin-bottom: 3px;

  font-size: 1rem;
  font-weight: 600;

  gap: 0.3rem;
  letter-spacing: -0.025em;
  line-height: 1;
}

.card .linkToTask {
  background-color: transparent;
  cursor: pointer;
  border: none;
  color: hsl(var(--muted-foreground));

  font-size: 10px;
  font-weight: 600;
  opacity: 0.8;
}

.card .linkToTask:hover {
  color: rgb(131, 96, 14);
}

.card header {
  display: flex;
  flex-direction: row;

  margin-bottom: 3px;

  font-size: 1rem;
  font-weight: 600;

  gap: 0.3rem;
  letter-spacing: -0.025em;
  line-height: 1;
}

.card label {
  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  padding-bottom: 1.2rem;

  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));

  line-height: 1.25rem;
  --tw-space-y-reverse: 0;
}

.card .projectName {
  font-size: 0.75rem;
  font-weight: 500;

  transition-duration: 150ms;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;

  line-height: 1rem;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.card .divider {
  display: block;

  width: 30%;
  margin-top: 5px;
  padding-bottom: 0.125rem;
  padding-top: 0.125rem;
  border-radius: calc(var(--radius) - 2px);
  background-color: hsl(var(--primary) / 0.5);

  color: hsl(var(--foreground));
}

.card .project-name {
  margin-top: 0.6rem;

  font-size: small;
  font-weight: 500;

  user-select: none;
}

.phasesWrapper {
  display: flex;
  flex-direction: column;

  margin-top: 1rem;

  gap: 1rem;
}

.card .phaseContainer h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.card .subPhaseContainer {
  display: flex;
  align-items: first baseline;
  justify-content: space-between;

  margin-left: 0.2rem;
  margin-top: 0.5rem;

  gap: 0.3rem;
  accent-color: hsl(var(--primary) / 0.5);
}

.card .subPhaseContainer label {
  margin: unset;
  padding: unset;

  font-weight: 500;
}

.card time {
  display: block;

  width: 100%;
  margin-top: 0.8rem;

  font-size: small;
  font-weight: 500;
  text-align: left;
  color: hsl(var(--card-foreground) / 0.7);
}

.card .related-party-icon {
  height: 20px;
  width: 20px;
  margin-right: -8px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-size: 16px;
}

.placeholder {
  display: none;

  height: 7rem;
  margin-bottom: 5px;
  margin-top: 10px;
  border-radius: var(--radius);
  background-color: #e9e9e9;
}

.card .subPhaseContainer .titleContainer {
  display: flex;
  align-items: first baseline;
  gap: 0.3rem;
}

.card .subPhaseContainer i {
  font-size: 16px;
  color: rgba(104, 104, 98, 0.872);
}

.reset-all-button {
  align-items: center;

  padding: 0px 8px;
  border: none;
  border-radius: 8px;
  background-color: transparent;

  font-weight: 600;

  transition: color 0.15s ease-in-out;
  transition-duration: 150ms;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;

  cursor: pointer;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.reset-all-button:hover {
  background-color: rgb(235 235 235 / 0.5);
}
