/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  /* font-optical-sizing: auto; */
  /* font-weight: <weight>; */
  font-style: normal;
  font-variation-settings: "wdth" 100;
  margin: 0;
  padding: 0;
  height: 100lvh;
}

/* Centrage du contenu */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.head {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 4rem 0;
}

.x {
  font-weight: 900;
  font-size: 2rem;

}

.logo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.logo img {
  height: 80px;
  width: auto;
}

.body {
  display: grid;
  grid-template-columns: 1fr ;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .body {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.add-workspace h2 {
  font-weight: 400;
  font-size: 1.5rem;
}

.add-workspace p {
  font-size: 1rem;
  max-width: 80%;
  line-height: 1.6;
  margin: 1.25rem 0;
  color: #888;
}

.add-workspace {
  background: #EEE;
  border-radius: 2rem;
  padding: 2rem;
}

.add-workspace form {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
}

.add-workspace input {
  padding: 0 1rem;
  height: 60px;
  appearance: none;
  border: 0;
  background: white;
  /* border-radius: 1rem; */
  width: 100%;
}

.btn {
  font-size: .675rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  color: black;
  background-color: white;
  border: 0;
  border-radius: 4px;
  transition: opacity .2s ease-out;
}

.btn:hover {
  opacity: .5;
}

form.loading .btn,
.btn.loading {
  cursor: not-allowed;
  pointer-events: none;
}


.btn-pause,
.btn-delete {
  position: relative;
  padding: 0.5rem;
  /* background: #EEE; */
  border-radius: 4px;
}

.btn-pause.loading span {
  opacity: 0
}
.btn-pause.loading .loader {
  opacity: 1
}

.btn-pause svg,
.btn-delete svg {
  width: 16px;
  height: 16px;
}

.btn-delete {
  opacity: 0.5;
}

.btn-delete:hover {
  opacity: 1;
  color: #f62b54;
}

svg.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: loader 1s linear infinite;
  opacity: 0;
}

form.loading  .btn-submit span {
  opacity: 0;
}

.btn.btn-load svg {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 9;
  transform: translate(-50%, -50%);
  display: none;
}

form.loading .btn-submit svg {
  display: block;
}

.btn-submit {
  position: relative;
  background-color: #f62b54;
  color: white
}

.btn-reset {
  background-color: #242424;
  color: white;
  padding: 1rem 2rem;
}

.reset-message {
  font-size: 12px;
  font-style: italic;
}

.btn-flex-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 2rem;
  gap: .5rem;
}

.table-line {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid black;
}

.table-col {
  font-size: .875rem;
  font-weight: bold;
}

.table-id {
  width: 25%
}

.table-nom {
  width: 40%
}

.table-action {
  width: 20%
}

.table-status {
  width: 15%;
  /* display: flex;
  align-items: center;
  justify-content: center; */
}

.status {
  /* overflow: hidden; */
  position: relative;
  /* width: 60px; */
  width: 90%;
  padding: .5rem;
  color: #242424;
  font-size: 10px;
  /* font-weight: 300; */
  text-align: center;
  border-radius: 2px;
  text-transform: uppercase;
}


.status.active { background-color: rgb(44, 208, 44) }
.status.paused { background-color: orange }
.status.scheduled { background-color: rgb(48, 137, 193) }
.status.disabled { background-color: rgb(172, 172, 172) }

.msg p {
  font-size: .725rem;
  color: orangered
}

.msg p.success {
  color: black;
}

.table-data .table-boards {
  display: flex;
  flex-wrap: wrap;
  /* flex-direction: column; */
  gap: 4px;
  justify-content: flex-start;

}

.table-data .table-boards a {
  padding: 8px 8px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid black;
  color: black;
  text-decoration: none;
}


.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  display: none;
  opacity: 0;
  transition: all .3s ease-out;

}

.modal-bkg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all .3s ease-out;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.modal-pop {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 540px;
  height: 90%;
  max-height: 540px;
  transition: all .3s ease-out;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: auto;
  transform: translate(-50%, -50%);
  text-align: center;
  gap: 1.5rem;
  
}

.modal-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.btn-delete-go {
  background: #f62b54;
  color: white;
  padding: .5rem 1rem;
  position: relative;
}

.btn-delete-go .loader{
  stroke: white;
}

.btn-delete-go.loading span{
  opacity: 0;
}
.btn-delete-go.loading .loader{
  opacity: 1;
}

.btn-delete-go span {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .5rem
}

.btn-go-back {
  text-decoration: underline;
  text-underline-offset: 5px;
  font-size: 12px;
}

.modal-pop .btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.modal-pop .btn-close svg{
  width: 32px;
  height: 32px;
}

@media (min-width: 768px) {
  .modal-btn {
    display: flex;
    flex-direction: row;
  }

  .modal-pop {
    height: 90%;
    max-height: 240px;
  }
}

@keyframes loader {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}