*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.new-book-btn {
    background-color: navy;
    color: white;
    width: fit-content;
    height: 30px;
    padding: 4px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

.submit-btn,
.cancel-btn {
    background-color: greenyellow;
    color: green;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 4px 16px;
    border: 1px solid green;
}

.cancel-btn {
    background-color: rgb(232, 180, 180);
    color: brown;
    border-color: brown;
}

.new-book-btn:hover,
.submit-btn:hover,
.cancel-btn:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.page-wrapper {
    border: 1px solid black;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 70px 1fr;
}

.sidebar {
    grid-column: 2;
    grid-row: 1 / 3;
    display: none;
    /* display: flex; */
    flex-direction: column;
    gap: 30px;
    background-color: rgb(182, 238, 238);
    padding: 20px 40px;
}

.data-entry-item:not(:nth-child(4)) {
    display: grid;
    gap: 5px;
}

.data-entry-item>input {
    padding: 7px;
}

.data-entry-item>label {
    font-size: 1.2rem;
    font-weight: 700;
}

.display-wrapper {
    display: grid;
}

.actions {
    padding: 20px;
}

.header {
    grid-column: 1;
    background-color: rgb(247, 247, 234);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.main {
    grid-column: 1;
    background-color: rgb(243, 240, 240);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main h2 {
    padding: 20px 30px;
}

.books-list {
    /* padding-inline: 20px; */
    display: grid;
    grid-template-columns: 1fr 1fr 80px 80px 40px;
    row-gap: 10px;
    justify-content: center;
}

[class^="book-item-"],
.book-prop {
    background-color: white;
    padding: 5px 10px;
    display: flex;
    align-items: center;
}

.book-prop {
    font-weight: bold;
    color: blue;
}

.transparent {
    background: transparent;
}

[class^="book-item-"]:has(.trash-icon) {
    padding-inline: 0;
}

.trash-icon {
    display: block;
    filter: invert(1) brightness(1.2);
    padding-left: 5px;
}

.trash-icon:hover {
    transform: scale(1.1);
    cursor: pointer;
}


.switch input {
  display: none;
}

.slider {
  width: 50px;
  height: 20px;
  background: gray;
  display: inline-block;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  color: white;
  text-align: right;
  padding-inline: 5px;
}

.slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: 0.2s;
}

input:checked + .slider {
  background: green;
}

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

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.slider.left {
  text-align: left;
}

.slider.right {
  text-align: right;
}