@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "poppins", sans-serif;
  overflow-x: hidden;

}

:root {
  --primary-color: #095c3b;
  --secondary-color: #016a3f;
  /* --theme-bg-color: linear-gradient(to bottom, rgb(0 102 60) 0%, rgba(0 102 60) 20%, rgba(6,132,80,1) 100%); */
  --gradient-color: linear-gradient(#91c597, #d1e8ca, #91c597);
}

/* ----------------------------------------------------------------------- */
/* header section  */

/* ----------------------------------------------------------------------- */
/* nav-bar  */
.nav-bar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.19); */
}
.nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--secondary-color);
  padding: 0 2%;
}
.link{
  display: flex;
  justify-content: space-between;
  gap: 5PX;
  align-items: center;
}
.logo {
  width: 200px;
  height: 70px;
}
.logo a {
  width: 100%;
  height: 100%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.logo img {
  width: 100%;
  height: 100%;
}
.searchbar {
  width: 50%;
}
.header-search {
  border: 1px solid var(--primary-color);
  border-radius: 50px;
  position: relative;
  background-color: rgb(171, 165, 165);
}
.input-group {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  position: relative;
  width: 100%;
}
.input-group .new-input {
  border: none;
  font-size: 115%;
  height: 40px;
  line-height: 45px;
  display: block;
  padding: 0.375rem 0.75rem 0.375rem 1.5rem;
  background: transparent;
  flex: 1 1 auto;
  font-size: 14px;
}
.input-group .new-input:focus {
  outline: none;
}
.search-btn {
  border: none;
  margin-left: -1px;
  display: flex;
}
.search-btn .btn {
  border: none;
  background-color: transparent;
  width: 50px;
  z-index: 2;
  cursor: pointer;
}

.search-btn .btn i {
  font-size: 25px;
}
.user-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 38px;
  width: 100px;
  cursor: pointer;
  border-radius: 6px;
  background-color: rgb(206, 203, 203);
  transition: all 0.5s ease-in-out;
  text-decoration: none;
  color: var(--primary-color);
}
.user-menu:hover {
  background-color: white;
}
.user-menu a {
  text-decoration: none;
  color: black;
}
.separator {
  border-bottom: 3px solid black;
}

.nav-down {
  padding: 0 8%;
  background-color: #95c696;
}

.dept-list {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.dept-list li {
  list-style: none;
  padding: 11px 50px 11px 50px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  position: relative;
  transition: all 0.5s ease-in-out;
}

.dept-list li:hover {
  background-color: #d2e8cc;
}

.dept-list li::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: black;
  transition: all 0.5s ease-in-out;
}
.dept-list li:hover::after {
  width: 100%;
}
.dept-list li a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.5s ease-in-out;
}
.dept-list li:hover a {
  color: black;
}

main {
  margin-top: 121px;
  /* padding-bottom: 10px; */
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 120px auto 20px auto;
  padding: 20px;
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Profile Card */
.profile-card {
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: center;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-details h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.profile-details p {
  font-size: 1.2rem;
  color: var(--dark-gray);
  margin: 5px 0;
}

.profile-details p strong {
  color: var(--secondary-color);
}

/* Books Section */
.books {
  margin-top: 50px;
}

.books h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.book-card {
  display: flex;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.book-card img {
  max-width: 100px;
  margin-right: 20px;
  border-radius: 5px;
}

.book-card-content h3 {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.book-card-content p {
  font-size: 1rem;
  margin: 5px 0;
}




#loading-spinner {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
    background: rgba(210, 232, 204, 0.4); /* Added slight transparency */

  /* background: #d2e8cc; */
  justify-content: center;
  align-items: center;
  z-index: 50; 
}

#loading-spinner .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #016a3f; 
  border-top: 4px solid #b6da9c81;
  border-radius: 50%;
  animation: spin 1s linear infinite; 
}


@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
