
body {
    font-family: Arial, Helvetica, sans-serif;
    width: 80%;
    margin-top: max(5%, 2rem);
    margin-inline: auto;
}

table {
  border: 0;
  width: 100%;
  border-collapse: collapse;
}

thead {
    background-color: #9CE0FA;
}

thead th {
    padding-block: .5rem;
}

tbody td {
    padding-block: .4rem;
    text-align: center;
}

/* Livres terminés : vert léger */
tr[class="read"] {
  background: linear-gradient(90deg, #e8f7ee 0%, #cdebd8 100%);
}

/* Livres à lire : bleu léger */
tr[class="to-read"] {
  background: linear-gradient(90deg, #eef3fb 0%, #dce7f7 100%);
}

/* Livres en cours : rose léger */
tr[class="in-progress"] {
  background: linear-gradient(90deg, #fdeaf0 0%, #f8d7e2 100%);
}

span {
  display: inline-block;
}

tr[class="to-read"] span[class="status"] {
  border: 1px solid rgb(100, 5, 5);
  background-image: linear-gradient(
    to right,
    rgb(255, 64, 67) 0%,
    rgb(255, 0, 4) 50%,
    rgb(236, 83, 85) 100%
  );
  border-radius: 20px;
  text-align: center;
}

tr[class="read"] span[class="status"] {
  border: 1px solid green;
  background-image: linear-gradient(
    to right,
    rgb(60, 255, 118) 0%,
    rgb(0, 252, 75) 50%,
    rgb(80, 236, 126) 100%
  );
  border-radius: 20px;
  text-align: center;
}

tr[class="in-progress"] span[class="status"] {
  border: 1px solid yellow;
  background-image: linear-gradient(
    to right,
    rgb(255, 211, 65) 0%,
    rgb(255, 196, 1) 50%,
    rgb(236, 201, 84) 100%
  );
  border-radius: 20px;
  text-align: center;
}

span[class="status"],
span[class^="rate"] {
  height: 1rem;
  width: 6rem;
  padding: 0.3rem 0.5rem;
}

span[class^="rate"] > span {
  width: 1rem;
  height: 1rem;
  border: 1px solid gray;
  border-radius: 50%;
  margin: 0.2em;
  background-color: white;
}

span[class~="one"] > span:first-child {
  background-image: linear-gradient(
    to right,
    rgb(60, 255, 118) 0%,
    rgb(0, 252, 75) 50%,
    rgb(80, 236, 126) 100%
  );
}

span[class~="two"] > span:nth-of-type(-n + 2) {
  background-image: linear-gradient(
    to right,
    rgb(60, 255, 118) 0%,
    rgb(0, 252, 75) 50%,
    rgb(80, 236, 126) 100%
  );
}

span[class~="three"] > span {
  background-image: linear-gradient(
    to right,
    rgb(60, 255, 118) 0%,
    rgb(0, 252, 75) 50%,
    rgb(80, 236, 126) 100%
  );
}
