.ebook-content-area {
    background: 
      linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
      url("../images/backdrop.png");
    background-size: cover;
    background-position: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-top: var(--sidebar-width);
}

.dashboard-book-area {
    margin: 20px auto;
    width: 98%;
    height: 500px;
    border: 0.5px solid #9a9a9a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    /* background-color: rgb(57, 58, 60); */
    /* background: 
      linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)),
      url("../images/backdrop.png");
    background-size: cover;
    background-position: center; */
  }
  
.dashboard-book-area h3 {
    font-size: 26px;
    padding-bottom: 5px;
    color: white;
    border-bottom: 0.5px Solid white;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.ebook-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.ebook-manage-button {
  background: rgb(50, 100, 225);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ebook-manage-button:hover {
  background: rgb(50, 100, 225);
}
/* Search Bar */
.ebook-search {
  text-align: center;
  margin: 30px 0;
  position: relative;
  height: 40px;
}

/* Search Container */
.ebook-search-container {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  width: 40px; 
  border-radius: 25px;
  background: transparent;
  transition: all 0.3s ease;
  animation: expandSearch 1s forwards;
  animation-delay: 0.5s;
  color: white;
}

.search-container:focus-within {
  border-color: #0070f3;
  box-shadow: 0 0 8px rgba(0, 112, 243, 0.8);
}

.search-container input {
  border: none;
  outline: none;
  color: white;
  background: transparent;
  width: 0;
  padding: 0;
  opacity: 0;
  font-size: 16px;
  transition: all 0.3s ease;
  animation: inputExpand 1s forwards;
  animation-delay: 1s;
}

.search-container input::placeholder {
  color: white;
}

@keyframes expandSearch {
  from {
    width: 40px;
  }
  to {
    width: 50%; 
  }
}

@keyframes inputExpand {
  from {
    width: 0;
    padding: 0;
    opacity: 0;
  }
  to {
    width: 300px; 
    padding: 10px 15px;
    opacity: 1;
  }
}

.magnifying-icon {
  color: #0070f3;
  font-size: 18px;
  margin: 0 10px;
}


.ebook-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-top: 10px;
  }
  
  .ebook-slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
  }
  
  .ebook-slide {
    display: flex;
    justify-content: space-around;
    padding: 0 20px;
    gap: 20px;
    min-width: 100%;
    height: 100%;
    align-items: center;
  }
  
  /* Ebook Card */
  .ebook-card {
    display: flex;
    width: 29%;
    height: 270px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 3px 5px 8px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .ebook-card:hover {
    transform: rotateY(0deg) scale(1.05);
  }
  
  .ebook-card .ebook-card-image {
    flex: 0 0 40%;
    position: relative;
  }
  
  .ebook-card .ebook-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
  }

  .ebook-card .ebook-card-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    color: white;
  }
  
  .ebook-card .ebook-title {
    font-size: 22px;
    font-style: italic;
    margin: 0 0 5px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    padding-bottom: 5px;
    border-bottom: 1px solid white;
  }
  
  .ebook-card h5 {
    font-size: 16px;
    margin: 2px;
    font-weight: normal;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  }
  
  .ebook-card .ebook-info {
    margin-top: 3px;
    font-size: 13px;
    font-style: italic;
    font-weight: normal;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin-bottom: 10px;
  }
  
  .ebook-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
  }
  
  .ebook-controls button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
  }
  
  .ebook-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }
  
  .ebook-dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
  }
  
  .ebook-dot.active-dot {
    background: rgba(255, 255, 255, 1);
  }

  .no-ebooks-found {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    font-size: 20px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-align: center;
  }
  
.overlay-modules {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1500;
  display: flex;
  justify-content: flex-end;
}

.update-panel-modules {
  position: relative;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, rgba(210, 225, 250, 0.8) 100%, rgba(50, 100, 225, 0.2) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1001;
}

.update-panel-content-modules,
.update-panel-content-modules {
  color: black;
}

.update-panel-modules.open {
  transform: translateX(0);
}

.update-panel-header-modules {
  position: sticky;
  top: 0;
  z-index: 2000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  height: 140px;
  border-bottom: 1px solid #ffffff;
  color: white;
}

.update-panel-header-modules .header-text {
  display: flex;
  flex-direction: column;
}

.update-panel-header-modules h3 {
  margin: 0;
  font-size: 36px;
  padding: 10px 0;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.update-panel-header-modules .header-author {
  margin: 0;
  font-size: 16px;
  font-style: italic;
  opacity: 1;
}

.close-button-modules {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  color: white;
}

.update-panel-content-modules {
  padding: 20px;
  overflow-y: auto;
  height: calc(100% - 200px);
}

.book-details .detail-item {
  margin-bottom: 15px;
}

.book-details .detail-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #333;
}

.book-details .detail-item p {
  background-color: #fff;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.book-info-section {
  /* border-top: 1px solid #ddd; */
  border-bottom: 1px solid #ddd; /* Optional divider */
  padding-bottom: 15px;
  margin-bottom: 15px;
}

/* Progress Bar Container */
.progress-bar-container {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

/* Labels for the start and end of the bar */
.progress-start,
.progress-end {
  font-size: 14px;
  color: #333;
  width: 30px;
  text-align: center;
}

/* Outer Progress Bar */
.progress-bar {
  flex: 1;
  height: 10px;
  background-color: #eee;
  border-radius: 5px;
  margin: 0 10px;
  overflow: hidden;
}

.progress-filled {
  height: 100%;
  background-color: rgb(50,100,225);
  transition: width 0.3s ease;
}

.progress-info {
  font-size: 14px;
  color: #333;
  margin-top: 5px;
  text-align: right;
}

/* Panel Footer for the overlay panel */
.panel-header-buttons {
  text-align: right;
  border-bottom: 1px solid #ddd;
  padding: 15px;
  height: 60px;
  margin-bottom: 5px;
}

/* Styling for the Read Button */
.read-button {
  background-color: rgb(50, 100, 225, 0.5);
  color: white;
  border: none;
  padding: 5px;
  margin-right: 10px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.read-button.active {
  background-color: rgb(50, 100, 225);
}

.read-button:hover {
  background-color: rgb(50, 100, 225);
}

.read-icon {
  font-size: 20px;
}

.analysis-wrapper {
  display: flex;
  /* justify-content: space-around; */
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 20px;
  margin: 20px auto;
}

/* Analysis Container styling */
.analysis-container {
  width: 400px;
  height: 350px;
  margin: 10px;
  padding: 20px;
  border-radius: 10px;
  border: 0.5px solid #9a9a9a;
  box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
}

.analysis-container.books-progress {
  width: 300px;
}

.analysis-container h3 {
  font-size: 26px;
  padding-bottom: 5px;
  color: white;
  text-align: left;
  border-bottom: 0.5px solid white;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  margin-bottom: 15px;
}

/* Legend styling for chart */
.chart-legend {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: white;
}

.legend-color {
  width: 12px;
  height: 12px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
}

/* Monthly Analysis Container */
.monthly-analysis-container {
  width: 700px;
  height: 350px;
  padding: 20px;
  border-radius: 10px;
  margin: 10px;
  border: 0.5px solid #9a9a9a;
  box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
}

.monthly-analysis-container h3 {
  font-size: 26px;
  padding-bottom: 5px;
  text-align: left;
  color: white;
  border-bottom: 0.5px solid white;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  margin-bottom: 15px;
}

/* Monthly Metrics */
.monthly-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.metric-item {
  flex: 1 1 45%;
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.metric-number {
  font-size: 32px;
  font-weight: bold;
  color: white;
}

.metric-label {
  font-size: 14px;
  color: white;
  margin-top: 5px;
}

.chapter-module {
  /* border: 1px solid #ddd; */
  border-radius: 5px;
  margin: 10px 0 30px 0;
  overflow: hidden;
  background-color: white;
  transition: 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.chapter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: 
  linear-gradient(rgba(50, 100, 225, 1), rgba(50, 100, 225, 0.75));
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chapter-header h4 {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-style: italic;
  margin: 0;
  font-size: 18px;
  color: white;
}

.chapter-toggle {
  font-size: 24px;
  line-height: 1;
  color: white;
}

.chapter-table {
  width: 100%;
  border-collapse: collapse;
}

.chapter-table th,
.chapter-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  font-size: 14px;
}

.chapter-table th {
  background-color: #f0f0f0;
}

.update-panel-content-modules .modules-menu-icon {
  color: white !important;
}

.chapter-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.2);
  z-index: 10;
}

.chapter-dropdown .dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.chapter-dropdown .dropdown-item:hover {
  background-color: #f0f0f0;
}

.status-complete {
  color: green;
  font-weight: normal;
}