body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #e6f7ff;
  color: #333;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: #e6f7ff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 80px;
}

.logo h1 {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

.logo .orange {
  color: #ff7f50;
}

.bell {
  font-size: 20px;
}

.greeting {
  font-size: 20px;
  font-weight: bold;
  padding: 0 16px;
  margin-top: 8px;
  color:#555;
}

.username {
  color: #57a79d;
}

.exclamation {
  color: #ea9745;
}

.book-section {
  padding: 16px;
}

.book-section h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.book-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.book-card img {
  height: 100px;
  border-radius: 6px;
}

.color-blocks {
  display: flex;
  gap: 6px;
}

.block {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.red { background-color: #8b0000; }
.coral { background-color: #f08080; }
.blue { background-color: #87cefa; }
.beige { background-color: #f5f5dc; }
.green { background-color: #32cd32; }
.purple { background-color: #9370db; }
.mint { background-color: #98ff98; }

.arrow {
  margin-left: auto;
  font-size: 20px;
  color: #555;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  border-top: 1px solid #57a79d;
}



body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #f0f8ff;
  color: #333;
  padding: 0 16px;
}

.book-details {
  max-width: 600px;
  margin: auto;
  padding-bottom: 80px;
}

.back-button {
  display: inline-block;
  margin: 16px 0;
  font-size: 18px;
  color: #0077cc;
  text-decoration: none;
}

.book-header {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 12px;
}

.book-cover {
  width: 140px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  align-items: left;
}

.book-meta {
  text-align: left;
}

.book-meta h1 {
  font-size: 22px;
  margin: 8px 0 4px;
  
}

.book-meta p {
  font-size: 14px;
  margin: 2px 0;
  
}

.progress-container {
  width: 100%;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin: 12px 0;
}

.progress-bar {
  background-color: #57a79d;
  color: white;
  text-align: center;
  padding: 4px 0;
  font-size: 12px;
}

.star-rating {
  text-align: center;
  margin: 12px 0;
}

.star {
  font-size: 24px;
  cursor: pointer;
  color: #ccc;
  padding: 4px;
}

.star.filled {
  color: #ff7f50;
}

.star.hovered {
  color: #ffa07a;
}

.reading-meta {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reading-meta label {
  font-size: 14px;
}

.reading-meta input,
.reading-meta select {
  padding: 8px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
}

.reading-meta button {
  padding: 10px;
  background-color: #57a79d;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
}

.toggle-about-btn {
  margin: 16px 0;
  background: none;
  border: none;
  font-size: 16px;
  color: #0077cc;
  cursor: pointer;
}

.about-content {
  display: none;
  background-color: #fff;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.book-description h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.actions {
  margin-top: 24px;
  text-align: center;
}

.actions button {
  padding: 10px 16px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  background-color: #ff7f50;
  color: white;
}

.actions .remove {
  background-color: #ff7f50;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid #57a79d;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.bottom-nav .nav-item {
  color: #57a79d;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bottom-nav .nav-icon:active{
  color: red;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bottom-nav .nav-item.active {
      color: #ff7f50;
    }

.nav-icon{
  color: red;
}

.bottom-nav .nav-item:hover {
  color: #ff7f50;
}

hr {
  color: #e90000;
}

/* --- Mobile Header: Logo-Centered Layout --- */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1001;
}

.mobile-header .btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #555;
  cursor: pointer;
}

.mobile-header .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-header .logo img {
  height: 32px;
}

/* Push page content below the fixed header */
body {
  padding-top: 56px;
}

/* --- Profile Page Styles --- */
.settings-section {
  margin: 24px 12px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.settings-section h2 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #222;
}

.settings-section form {
  display: flex;
  flex-direction: column;
}

.settings-section label {
  margin: 8px 0 4px;
  font-size: 0.95rem;
  color: #555;
}

.settings-section input[type="password"] {
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.settings-section button {
  margin-top: 12px;
  padding: 10px;
  font-size: 1rem;
  background: #57a79d;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.settings-section button.reset {
  background: #ff7f50;
}

.settings-section .message {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #007800;
}

.settings-section .error {
  color: #a80000;
}

/* At the top of your main CSS file */
html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

.notification-icon {
  position: relative;
  display: inline-block;
}

.notification-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  background-color: red;
  border-radius: 50%;
  border: 2px solid white;
}

header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 0.75rem;
}

/* Top row: hamburger, search, bell */
.header-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Search input flex-grows to fill */
.search-input {
  flex: 1 1 auto;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  font-size: 0.95rem;
}

.search-bar-header {
  width: 100%;
}

/* Hide default scrollbars on webkit */
.stats {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem 0;
}
.stats::-webkit-scrollbar {
  display: none;
}

/* Each card stays the same height, flex-shrink off so you can scroll */
.stats-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* padding: 0.5rem 0.75rem; */
  background: #57a79d;
  color: #fff;
  border-radius: 8px;
  min-width: 100px;
  text-align: center;
  font-size: 0.85rem;
}

/* Optional: make menu & notif icons tappable and consistent size */
.menu-btn,
.notif-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  padding: 0.5rem;
  color: #555;
}

/* Tablet+ layout: stats ride next to search, no scroll */
@media (min-width: 768px) {
  .header-top {
    gap: 1rem;
  }
  .stats {
    justify-content: flex-end;
    overflow: visible;
  }
  .stats-card {
    min-width: auto;
  }
}



