:root {
  --bg-color: #f4f4f4;
  --text-color: #141526;
  --accent-color: #f8c470;
  --border-color: rgba(0, 0, 0, 0.1);
  --input-border-color: rgb(212, 212, 212);
}

/* Dark Mode */
.dark-mode {
  --bg-color: #141526;
  --text-color: #fff;
  --accent-color: #f8c470;
  --border-color: rgba(143, 143, 143, 0.1);
  --input-border-color: rgb(80, 80, 80);
}


.grid-container {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 100%;
}

i{
    cursor: pointer;
}

.left-sidebar {
  grid-column: span 1;
  min-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 10px var(--border-color);
  z-index: 1000;
    background-color: var(--bg-color);
  color: var(--text-color);
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1rem;
}

li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.5rem 0;
}

li i {
  font-size: 1rem;
  color: var(--text-color);
}

li.active i {
  background-color: var(--accent-color);
  color: var(--text-color);
  border-radius: 5px;
  padding: 0 0.3rem;
}

li.active a {
  font-weight: 700;
}

.main-content {
  grid-column: span 7;
  background-color: var(--bg-color);
}

.main-menu {
  background-color: var(--bg-color);
  box-shadow: 0 0 10px var(--border-color);
  margin-top: 0;
  display: flex;
  align-items: center;
  z-index: -1;
padding: 0.5rem 2rem;
}

.hamburger {
  display: none;
}

.close-sidebar {
  display: none;
  font-size: 1.5rem;
  text-align: right;
  padding: 1rem;
  cursor: pointer;
  position: absolute;
  left: 5%;
}


.user-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
}


.user-actions i{
    font-size: 1.2rem;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 30%;
  padding: 0.5rem 0.5rem 0.5rem 2rem;
  border: 1px solid var(--input-border-color);
  background-color: transparent;
  outline: none;
  border-radius: 4px;
  box-sizing: border-box;
  color: var(--text-color);
}

.search-icon {
  position: absolute;
  left: 0.5rem;
  top: 16%;
  transform: translateY(-10%);
  pointer-events: none;
  z-index: 1;
  color: gray;
}

.profile-photo {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
  border-radius: 50%;
  margin-top: 0.4rem;
}



.dashboard-welcome{
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 1rem;
   background: linear-gradient(135deg, #f8c470, #8a8ed0);
    width: 90%;
    height: auto;
    border-radius: 5px;
    margin: 0 auto;
    margin-top: 2rem;
}

.shelf{
   width: 17rem;
}

.info{
    text-align: center;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.info h2{
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 400;
     font-family: "Lobster", sans-serif;
     margin-top: 0.5rem;
}

.info p{
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 400;
    line-height: 1.5;
}

.info button{
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.hero{
width: 11rem;
}


.dashboard-recommended{
   box-shadow: 0 0 10px var(--border-color);
   background-color: var(--bg-color);
   width: 90%;
   padding: 2rem;
   margin: 0 auto;
   margin-top: 2rem;
}

.recommend-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recommend-header .btn{
 background-color: var(--accent-color);
 border: none;
 padding: 0.2rem;
 border-radius: 3px;
}



.dashboard-recommended h2{
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    margin-left: 0.7rem;
}


.recommended-books{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}


.book-card img{
    width: 16rem;
}


.book-card h3{
font-weight: 400;
}


.book-card p{
    font-weight: 200;
}


.dashboard-categories{
   box-shadow: 0 0 10px var(--border-color);
   background-color: var(--bg-color);
   width: 90%;
   padding: 2rem;
   margin: 0 auto;
   margin-top: 2rem;
}

.tags{
    width: 100%;
}

.tag-list{
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}


.tag-list li{
    background-color: var(--accent-color);
    padding: 0.1rem 1.5rem;
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-size: 1rem;
    margin-top: 1rem;
    color: #000;
}
.tag-list li.active{
    background-color: rgba(255, 236, 196, 0.9);
}

.categories{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}



.categories .book-card{
    width: 10rem;
    height: auto;
    box-shadow: 0 0 10px var(--border-color);
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 5px;
}


.categories .book-card img{
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: 10px;
}




/* Mobile*/
@media (max-width: 768px) {
  .grid-container {
    display: block;
  }

  .left-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    max-height: 100vh;
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .left-sidebar.active {
    left: 0;
  }

  .hamburger {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
  }

  .main-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
  }

  .sidebar-menu li {
    padding: 1rem;
  }

  .main-content {
    margin-left: 0;
    padding: 1rem;
  }

  .recommended-books{
  flex-wrap: wrap;
  }
  

  .categories {
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
  }

  .dashboard-welcome {
    flex-direction: column;
    text-align: center;
  }

  .dashboard-welcome .hero,
  .dashboard-welcome .shelf {
    max-width: 100%;
    height: auto;
  }


.tag-list{
  flex-direction: column;
}
 .close-sidebar {
    display: block;
  }

  .profile-photo {
  width: 3.5rem;
  height: 3.5rem;
}

.search-input {
  width: 70%;
  padding: 0.5rem;
  padding-left: 2rem;
}

.search-icon {
  left: 2%;
}

}
