@font-face {
  font-family: 'vazir';
  src: url('fonts/vazir.woff2') format('woff2'),
       url('fonts/vazir.woff') format('woff');
}
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

* {
  max-width: 100vw !important;
  box-sizing: border-box !important;
}
html{
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
}
body{
    margin: 0;
}
*{font-family: 'vazir';}
form.searchform {
    display: flex;
    justify-content: space-around;
}


.search-box {
    display: flex;
    width: 100%;
    padding: 10px;
    margin: 15px 0 30px 0;
}

form.search-form-admin {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px 20px;
    flex-direction: column;
    align-items: start;
}

input.input-search {
    padding: 18px 13px;
    border-radius: 11px;
    border: 0.2px solid #ccc;
    height: 25px !important;
    width: 700px !important;
    font-size: 14px;
}

select.select {
    padding: 6px 15px;
    border-radius: 11px;
    border: 0.2px solid #ccc;
    height: 38px;
    width: 155px;
    font-size: 14px;
}

button.btn-search {
    background: #673dda;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 11px;
    width: 114px;
    height: 35px;
    font-size: 13px;
    font-weight: 900;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
    margin: 10px 40px;
}

.book-card {
    display: flex;
    padding: 19px;
    gap: 14px;
    box-shadow: 0 3px 10px #00000021;
    border-radius: 12px;
}

img.book-cover {
    height: 100%;
    width: 150px;
    border-radius: 12px;
}

.book-info {
    font-size: 12px;
    display: flex;
    flex-direction: column;
}

p.book-summary {
    font-size: 12px;
    margin: 0;
}

h3.book-title {
    font-size: 18px;
    margin: 0;
    margin-bottom: 4px;
}

p.book-meta {
    margin: 0;
    margin-bottom: 7px;
}

.book-actions {
    direction: ltr;
}

a.btn-read {
    background: #673dda;
    color: white;
    margin-top: 11px;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 7px;
    font-size: 13px;
}
h2.search-title {
    font-size: 17px;
    margin: 25px 30px 0 0;
    color: #585858;
    font-weight: 200;
}


/*** Ø¨Ø®Ø´ Ø®ÙˆØ§Ù†Ø¯Ù† Ú©ØªØ§Ø¨ ***/

/* Ø§Ø³ØªØ§ÛŒÙ„ Ú©Ù„ÛŒ */
.book-body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #111;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  font-family: sans-serif;
}

/* Ø¹Ù†ÙˆØ§Ù† Ú©ØªØ§Ø¨ */
.book-title {
  font-size: 24px;
  font-weight: bold;
  margin: 15px 0;
  text-align: center;
}

/* Ú©Ù†ØªØ±Ù„â€ŒÙ‡Ø§ */
.controls {
  margin: 10px;
  text-align: center;
  z-index: 10;
}

.btn {
  background: #444;
  color: white;
  border: none;
  padding: 8px 15px;
  margin: 0 5px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: #666;
}

.page-info {
    margin: 0 20px;
    font-weight: bold;
}

/* Ú©Ø§Ù†ØªÛŒÙ†Ø± Ú©ØªØ§Ø¨ */
.book-container {
  flex: 1;
  width: 90%;
  max-width: 1000px;
  height: 80vh;
  margin: auto;
}

/* ØµÙØ­Ø§Øª PDF */
.page-wrapper {
  position: relative;
}

.page-wrapper canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Ø®Ø§Ù…ÙˆØ´ Ú©Ø±Ø¯Ù† Ù„Ø§ÛŒÙ‡ Ù…ØªÙ† pdf.js */
.textLayer {
  display: none !important;
}
input.input {
    padding: 5px 11px;
    border-radius: 11px;
    border: 0.2px solid #ccc;
    height: 25px !important;
}

textarea.input {
    padding: 5px 11px;
    border-radius: 11px;
    border: 0.2px solid #ccc;
    height: 60px !important;
}

.form-box {padding: 27px;}
.book-card-admin {
    display: flex;
    padding: 19px;
    gap: 14px;
    box-shadow: 0 3px 10px #00000021;
    border-radius: 12px;
}

img.book-cover-admin {
    height: 100%;
    width: 70px;
}

.book-info-info {
    font-size: 12px;
    display: flex;
    flex-direction: column;
}

p.book-summary {
    font-size: 12px;
    margin: 0;
    margin-bottom: 6px;
}

h3.book-title {
    font-size: 18px;
    margin: 0;
    margin-bottom: 4px;
    text-align:right;
}

p.book-meta {
    margin: 0;
    margin-bottom: 7px;
}

.book-actions {
    direction: ltr;
    margin-top: 13px;
    margin-top: auto;
}

.book-actions-admin {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.book-actions-admin .btn-read {
    font-size: 11px;
    text-align: center;
    width: 35px;
}
p.hint {
    font-size: 13px;
}
form.search-form {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px 0 57px;
    gap: 10px;
}
a.error-not-found-id {
    color: white;
    background: black;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Ø±ÛŒØ³Ù¾Ø§Ù†Ø³ÛŒÙˆ Ø¨Ø±Ø§ÛŒ ØªØ¨Ù„Øª */
@media (max-width: 992px) {
  form.search-form-admin {
    grid-template-columns: repeat(2,1fr);
  }
  .books-grid {
    grid-template-columns: 1fr 1fr;
    margin: 10px 20px;
  }
}

/* Ø±ÛŒØ³Ù¾Ø§Ù†Ø³ÛŒÙˆ Ø¨Ø±Ø§ÛŒ Ù…ÙˆØ¨Ø§ÛŒÙ„ */
@media (max-width: 576px) {
  form.search-form-admin {
    grid-template-columns: 1fr; /* Ù‡Ù…Ù‡ ÙÛŒÙ„Ø¯Ù‡Ø§ Ø²ÛŒØ± Ù‡Ù… */
    gap: 15px;
  }

.bg-white.shadow-xl.rounded-xl.p-8.w-96 {
    height: 100vh;
}
  input.input-search,
  select.select,
  button.btn-search {
    width: 100% !important; /* Ù¾Ø± Ú©Ø±Ø¯Ù† Ø¹Ø±Ø¶ */
    font-size: 13px;
  }

  .books-grid {
    grid-template-columns: 1fr; /* Ú©Ø§Ø±Øªâ€ŒÙ‡Ø§ ØªÚ©â€ŒØ³ØªÙˆÙ†Ù‡ */
    margin: 10px;
  }

  .book-card,
  .book-card-admin {
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* width: 10px; */
  }

  img.book-cover,
  img.book-cover-admin {
    width: 100px;
    height: auto;
  }

  .book-info,
  .book-info-info {
    align-items: center;
  }

  h3.book-title {
    font-size: 16px;
  }

  p.book-summary,
  p.book-meta {
    font-size: 12px;
  }

  .book-actions,
  .book-actions-admin {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .book-actions-admin .btn-read {
    width: auto;
    padding: 5px 10px;
  }

  .form-box {
    padding: 15px;
  }

  .book-title {
    font-size: 20px;
  }

  .controls .btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .search-box {
    flex-direction: column;
    gap: 10px;
    display: flex;
    align-items: center;
  }

  form.search-form {
    flex-direction: column;
    padding: 0 15px;
    width: fit-content;
    display: flex;
    align-items: center;
  }

  h2.search-title {
    font-size: 15px;
    margin: 15px 10px 0 0;
  }
}

a.error-not-found-id {
    background: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
}



body {
    margin: 0;
}
