/* --------------------------------------------------------------------- */
/* from style.css  */


@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;
}
:root {
  --primary-color: #095c3b;
  --secondary-color: #016A3F;
}

/* ----------------------------------------------------------------------- */
/* 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: 10PX;
  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: 57%;
}
.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 ::placeholder{
  color: rgba(0, 0, 0, 0.813);
}
.input-group .new-input {
  border: none;
  font-size: 115%;
  height: 40px;
  line-height: 45px;
  display: block; 
  padding: .375rem .75rem .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: 110px;
  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-btn {
  display: flex;
  gap: 10px;
}
.user-btn.signin {
  display: none;
}
.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: 10px 50px;
  cursor: pointer;
  border-bottom: 3px solid transparent; 
  position: relative;
  transition: all .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 .5s ease-in-out;
}
.dept-list li:hover a{
  color:black;
}

main {
  margin-top: 63px;
}
/* --------------------------------------------------------------------------------------------------------------- */
section {
  background: #d2e8cc;
}
h1 {
  text-align: center;
  font-size: 50px;
  padding-top: 10px;
}
.add-book-form {
  display: flex;
  justify-content: center;
  padding: 20px 0 30px 0 ;
}
.add-book-form form {
  width: 50%;
}
fieldset {
  width: 100%;
  padding: 20px;
  border-radius: 10px;
}
.input-file-box {
  color: #016A3F;
  margin: 20px 0;
  font-size: 20px;
}
.input-box label{
  display: block;
  color: #016A3F;
  margin: 5px 0;
  font-size: 20px;
}
.input-box input {
  width: 100%;
  font-size: 20px;
}

.input-box input,
.input-box select{
  width: 100%;
  /* background: transparent; */
  /* border: 2px solid black; */
  font-size: 20px;
}
.input-box select{
  cursor: pointer;
}

.book-add-btn{
  margin: 0 auto;
  margin-top: 30px;
  cursor: pointer;
  font-size: 20px;
  transition: all .5s ease-in-out;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  border-radius: 7px;
  padding: 10px 40px;
  display: flex;
  justify-content: center;
}
.book-add-btn:hover {
  color: white;
  background-color:var(--primary-color);
}
.input-file-box input {
  font-size: 20px;
}

.input-box input::-webkit-outer-spin-button,
.input-box input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#loading-spinner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  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; 
}
main{
  /* height: 100vh; */
  background-color: #d2e8cc;
}
.hidden{
  display: none !important;
}

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