/* --------------------- Reset Css --------------------- **/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* --------------------- Helper class --------------------- **/
.glass-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}
.hidden {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.new {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.reading {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.done {
  background: linear-gradient(135deg, #10b981, #059669);
}
/* --------------------- App Css --------------------- **/
html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 10px;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%)
    no-repeat center;
  background-size: cover;
  background-attachment: scroll;
  display: flex;
  justify-content: center;
}
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 15px;
}
svg {
  width: 30px;
  height: 30px;
}
label {
  display: block;
  text-align: right;
  margin-bottom: 0.5rem;
  font-size: 1.8;
  font-weight: 600;
}
input,
select {
  width: 100%;
  height: 5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.7rem;
  color: #fff;
  outline: none;
}
input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}
input:active {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}
option {
  background-color: gray;
  font-size: 1.8rem;
  color: #fff;
}
button {
  cursor: pointer;
  color: #fff;
  opacity: 0.95;
  font-size: 2rem;
  font-weight: 600;
}

/* --------------------- Header --------------------- **/
#header {
  width: 100%;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0.95;
}
/* --------------------- Header top wrapper --------------------- **/
.header__title {
  font-size: 4.5rem;
  font-weight: 900;
}
.header__caption {
  margin-top: 0.5rem;
  font-size: 2.4rem;
}
/* --------------------- Header center wrapper --------------------- **/
.header__center-wrapper {
  width: 100%;
  margin-top: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* --------------------- Header Stats Card --------------------- **/
.header__stats-cards {
  display: flex;
  gap: 1rem;
}
/* --------------------- Header Create Btn --------------------- **/
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
  }
}
.header__center-btns{
  display: flex;
  gap: 1rem;
}
.header__create-btn,
.header__logout-btn {
  width: 25rem;
  padding: 12px 24px;
  animation: pulse-glow 2s infinite;
  transition: all 0.3s ease;
}
.header__create-btn:hover, 
.header__logout-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.header__logout-btn{
  width: 10rem;
}
/* --------------------- Header Bottom Wrapper --------------------- **/
.header__bottom-wrapper {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
/* --------------------- Header Filter Btns --------------------- **/
@keyframes active-glow {
  0% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
  }
}
.header__filter-btn {
  padding: 1.2rem 3rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.header__filter-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.header__filter-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  animation: active-glow 1.5s infinite alternate;
}
.header__filter-btn:active {
  transform: scale(0.95);
}
/* --------------------- Main --------------------- **/
#main {
  margin-top: 2rem;
}
/* ----------- Main Auth Required & Main Empty State ----------- **/
.main__empty-state,
.main__auth-required {
  text-align: center;
  margin-top: 7rem;
}
.main__empty-state > span {
  font-size: 7rem;
}
/* ----- Main Auth Required Header & Main Empty State Title ----- **/
.main__title,
.main__header {
  font-size: 2.5rem;
  font-weight: 600;
}
/* ----- Main Empty State Caption ----- **/
.main__caption {
  font-size: 2.3rem;
}
/* ----- Main Auth Required Btns ----- **/
.main__btns {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.main__btn-login,
.main__btn-signup {
  margin-top: 2rem;
  width: 45rem;
}
/* --------------------- Main Books --------------------- **/
.main__books {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  color: black;
}
.main-book {
  background-color: #fff;
  width: 30%;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 3rem;
  overflow-wrap: break-word;
}
.main-book:hover {
  transform: scale(1.02);
}
/* --------------------- Main Book header --------------------- **/
.main-book__header {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.main-book__header-text {
  max-width: 84%;
  font-size: 1.8rem;
  font-weight: 500;
}
.main-book__header-icons {
  min-width: 7rem;
  max-width: 7rem;
}
.main-book__del-icon,
.main-book__edit-icon {
  cursor: pointer;
}
/* --------------------- Main Book Author --------------------- **/
.main-book__author {
  opacity: 0.5;
  margin-bottom: 1rem;
}
/* --------------------- Main Book Bottom Wrapper --------------------- **/
.main-book__bottom-wrapper {
  display: flex;
  justify-content: space-between;
}
.main-book__status {
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 2rem;
  border-radius: 10rem;
}

/* --------------------- Modal Screen --------------------- **/
.modal-screen {
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  margin: 0 16px;
  text-align: center;
}
.modal-screen__header {
  font-size: 3rem;
}
/* --------------------- Modal Screen Body & login --------------------- **/
.modal-screen__body {
  margin-top: 1rem;
}
.modal-screen__body-text,
.login__body-text {
  font-size: 1.8rem;
  width: 100%;
  margin-bottom: 3rem;
}
.login__body-text{
  display: flex;
  justify-content: space-between;
  margin-bottom: 0;
  margin-top: -1.5rem;
}
.login__body-text span {
  cursor: pointer;
  color: #fff;
}
.login__body-text span:hover {
  color: #10b981;
}
/* --------------------- Modal Screen form --------------------- **/
form {
  margin-top: 2rem;
}
form > div {
  display: flex;
  justify-content: space-between;
}
.modal-screen__del-icon {
  width: 80px;
  height: 80px;
}
/* --------------------- Login form --------------------- **/
.form-login {
  margin-bottom: 3rem;
}
.form-login__input {
  position: relative;
  margin-bottom: 2rem;
}
.form-login__input input {
  margin-bottom: 0;
}
.form-login__icon {
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 50px;
  height: 60%;
  margin: auto;
  stroke: #fff;
  fill: #fff;
  opacity: 0.6;
}
.form-login__icon--toggle{
  cursor: pointer;
}
/* --------------------- Modal Screen Btns --------------------- **/
.modal-screen__btns {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
}
.modal-screen__save-btn,
.modal-screen__del-btn,
.modal-screen__logout-btn,
.modal-screen__cancel-btn,
.modal-screen__login-btn {
  width: 48.5%;
  height: 5rem;
  border-radius: 1rem;
  border: none;
  background: #6b7280;
}
.modal-screen__cancel-btn:hover {
  background: #4b5563;
}
.modal-screen__save-btn,
.modal-screen__login-btn {
  background: #10b981;
}
.modal-screen__save-btn:hover,
.modal-screen__login-btn:hover {
  background: #059669;
}
.modal-screen__del-btn,
.modal-screen__logout-btn{
  background: #ef4444;
}
.modal-screen__del-btn:hover,
.modal-screen__logout-btn:hover{
  background: #dc2626;
}
/* --------------------- Toast Container--------------------- **/
.toast-container {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  padding: 1rem;
  min-width: 27rem;
  max-width: 45rem;
  max-height: fit-content;
  z-index: 9999;
}
/* --------------------- Toast --------------------- **/
.toast {
  max-width: 100%;
  height: max-content;
  margin-top: 1rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toast svg {
  margin: 1rem;
  width: 5rem;
  height: 5rem;
}
.toast__message {
  width: 87%;
  margin-left: 1rem;
  font-size: 1.8rem;
  text-align: justify;
}
.toast-success {
  background-color: #029946;
}
.toast-error {
  background-color: #dc2626;
}
/* --------------------- Media Query --------------------- **/
@media (max-width: 1200px) {
  .main-book {
    width: 48%;
  }
}

@media (max-width: 992px) {
  button {
    font-size: 1.8rem;
    font-weight: 600;
  }
  body {
    font-size: 1.5rem;
  }
  /* --------------------- Header --------------------- **/
  #header {
    margin-top: 1rem;
  }
  /* --------------------- Header top wrapper --------------------- **/
  .header__title {
    font-size: 3.6rem;
    font-weight: 600;
  }
  .header__caption {
    margin-top: 0;
    font-size: 1.8rem;
  }
  /* --------------------- Header Create Btn --------------------- **/
  .header__create-btn,
  .header__logout-btn  {
    width: 18rem;
    padding: 9px 18px;
  }
  .header__logout-btn {
    width: 8rem;
  }
  /* --------------------- Main Book --------------------- **/
  .main-book {
    width: 100%;
  }
  .main-book:hover {
    transform: scale(1.01);
  }
}

@media (max-width: 768px) {
  button {
    font-size: 1.6rem;
  }
  body {
    font-size: 1.4rem;
  }
  input,
  select {
    height: 4rem;
  }
  /* --------------------- Helper class --------------------- **/
  .glass-card {
    padding: 0.99rem;
  }
  /* --------------------- Header top wrapper --------------------- **/
  .header__top-wrapper {
    max-width: 36rem;
  }
  .header__title {
    font-size: 3rem;
  }
  .header__caption {
    font-size: 1.6rem;
  }
  /* --------------------- Header center wrapper --------------------- **/
  .header__center-wrapper {
    margin-top: 2rem;
    flex-direction: column;
  }
  /* --------------------- Header Create Btn --------------------- **/
  .header__center-btns{
    /* flex-direction: column; */
    margin-top: 2rem;
  }
  /* --------------------- Header Bottom Wrapper --------------------- **/
  .header__bottom-wrapper {
    margin-top: 2rem;
  }
  /* --------------------- Main Books --------------------- **/
  #main {
    margin-top: 0;
  }
  .main__header {
    width: 41.6rem;
    font-size: 2rem;
    font-weight: 500;
    margin: 0 auto;
  }
  /* --------------------- Modal Screen --------------------- **/
  .modal-screen {
    padding: 12px;
    max-width: 360px;
  }
  .modal-screen__header {
    font-size: 2.5rem;
  }
  .modal-screen__del-icon {
    width: 65px;
    height: 65px;
  }
  /* --------------------- Modal Screen Body --------------------- **/
  .modal-screen__body-text,
  .login__body-text {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
  /* --------------------- Modal Screen Btns --------------------- **/
  .modal-screen__save-btn,
  .modal-screen__del-btn,
  .modal-screen__logout-btn,
  .modal-screen__cancel-btn,
  .modal-screen__login-btn {
    height: 4rem;
  }
}

@media (max-width: 576px) {
  button,
  .main-book__header-text {
    font-size: 1.5rem;
  }
  /* --------------------- Helper class --------------------- **/
  .glass-card {
    padding: 0.5rem;
  }
  .modal-screen{
    padding: 1rem;
  }
  /* --------------------- Header Bottom Wrapper --------------------- **/
  .header__bottom-wrapper {
    flex-direction: column;
    width: 100%;
  }
  /* --------------------- Header Filter Btns --------------------- **/
  .header__filter-btn {
    width: 100%;
  }
  /* --------------------- Main --------------------- **/
  .main__header {
    width: 100%;
    font-size: 1.8rem;
  }
  .main__btn-login,
  .main__btn-signup {
    width: 100%;
  }
  /* --------------------- Toast Container--------------------- **/
  .toast-container {
    padding: 0.5rem;
  }
  .toast svg {
    margin: 0.5rem;
    width: 3.8rem;
    height: 3.8rem;
  }
  .toast__message {
    margin-left: 0.5rem;
    font-size: 1.5rem;
  }
}
