@font-face {
  font-family: "Helvetica";
  src: url(../fonts/HelveticaNowDisplay-Hairline.ttf);
  font-weight: 100;
}

@font-face {
  font-family: "Scratches";
  src: url(../fonts/Scratches.otf);
}

@font-face {
  font-family: "Helvetica";
  src: url(../fonts/HelveticaNowDisplay-Thin.ttf);
  font-weight: 200;
}

@font-face {
  font-family: "Helvetica";
  src: url(../fonts/HelveticaNowDisplay-Light.ttf);
  font-weight: 300;
}

@font-face {
  font-family: "Helvetica";
  src: url(../fonts/HelveticaNowDisplay-Regular.ttf);
  font-weight: 400;
}

@font-face {
  font-family: "Helvetica";
  src: url(../fonts/HelveticaNowDisplay-Medium.ttf);
  font-weight: 500;
}

@font-face {
  font-family: "Helvetica";
  src: url(../fonts/HelveticaNowDisplay-Bold.ttf);
  font-weight: 600;
}

@font-face {
  font-family: "Helvetica";
  src: url(../fonts/HelveticaNowDisplay-ExtraBold.ttf);
  font-weight: 700;
}

@font-face {
  font-family: "Helvetica";
  src: url(../fonts/HelveticaNowDisplay-Black.ttf);
  font-weight: 800;
}

@font-face {
  font-family: "Helvetica";
  src: url(../fonts/HelveticaNowDisplay-ExtBlk.ttf);
  font-weight: 900;
}

:root {
  /* Light Theme */
  --pink: #ffb4f9;
  --secondary-bg: #e8e3d3;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Scratches";
  line-height: 1.6;
  color: #333;
  background-image: url('../images/background.jpg');
  background-size: cover;
  background-attachment: fixed;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100vh;
}

.footer-cig {
  max-width: 3.5%;
  fill: #b42025;
  transition: all 0.25s ease-in-out;
}

.footer-cig:hover {
  fill: #273995;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  margin: 20px 0;
}

.nav-brand h2 {
  color: white;
  font-weight: 600;
  margin-left: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: 20px;
}

.welcome-text {
  color: white;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background: #b42025;
  color: white;
}

.btn-primary:hover {
  background: #273995;
  color: #f9e9c9;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #f9e9c9;
  color: #b42025;
}

.btn-secondary:hover {
  background: #273995;
  color: #f9e9c9;
  transform: translateY(-2px);
}

.btn-large {
  font-size: 1.5rem;
}

.btn-full {
  width: 100%;
  font-family: "Scratches";
  padding: 12px;
}

/* Main Content */
.main-content {
  height: 100%;
  display: flex;
  justify-content: center;
}

/* Hero Section */
.hero {
  text-align: center;
  color: white;
  padding: 80px 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero img {
  max-width: 50%;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Dashboard */
.dashboard {
  color: white;
  text-align: center;
  width: 85%;
}

.dashboard h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

/* Card */
.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  margin: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.card p {
  margin-bottom: 10px;
  opacity: 0.9;
}

/* Auth Container */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.auth-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 2rem;
}

/* Forms */
.auth-form {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #ffb4f9;
}

/* Auth Links */
.auth-links {
  text-align: center;
}

.auth-links p {
  margin: 10px 0;
  color: #666;
}

.auth-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Pop-up Notification System */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 380px;
  pointer-events: none;
}

.notification {
  background: white;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  position: relative;
  font-family: "Helvetica";
  font-size: 14px;
  border-left: 4px solid #ddd;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.hide {
  transform: translateX(100%);
  opacity: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  max-height: 0;
}

.notification-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  font-weight: 600;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-message {
  color: #374151;
  line-height: 1.4;
  font-weight: 500;
}

.notification-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 16px;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
  font-weight: 600;
}

.notification-close:hover {
  color: #6b7280;
}

/* Notification Types */
.notification.success {
  border-left-color: #10b981;
}

.notification.success .notification-icon {
  color: #10b981;
}

.notification.error {
  border-left-color: #ef4444;
}

.notification.error .notification-icon {
  color: #ef4444;
}

.notification.warning {
  border-left-color: #f59e0b;
}

.notification.warning .notification-icon {
  color: #f59e0b;
}

.notification.info {
  border-left-color: #3b82f6;
}

.notification.info .notification-icon {
  color: #3b82f6;
}

.notification.loading {
  border-left-color: #8b5cf6;
}

.notification.loading .notification-icon {
  color: #8b5cf6;
}

/* Progress bar for auto-dismiss */
.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.notification-progress-bar {
  height: 100%;
  background: currentColor;
  opacity: 0.6;
  transform-origin: left;
  animation: progress-countdown linear;
}

@keyframes progress-countdown {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* Legacy message support (hidden by default) */
.message {
  display: none !important;
}

/* Loading State */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Dashboard Styles */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .notification-container {
    left: 16px;
    right: 16px;
    max-width: none;
    top: 16px;
  }
  .hero img{
      max-width: 100%;
  }

  .notification {
    padding: 14px 16px;
    font-size: 13px;
  }

  .notification-icon {
    font-size: 14px;
  }
}

.welcome-section {
  flex: 1;
}

.dashboard-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.books-section {
  color: white;
  padding-bottom: 150px;
}

.books-section h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

/* Books Grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.book-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.book-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.book-image {
  text-align: center;
  margin-bottom: 15px;
}

.book-image img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

.no-image {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 40px 0;
}

.book-info h3 {
  margin-bottom: 5px;
  font-size: 1.3rem;
  color: white;
}

.book-author {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  font-style: italic;
}

.book-meta {
  margin: 15px 0;
}

.rating {
  align-items: center;
  gap: 5px;
  width: 150px;
}

#rating-info {
  width: 200%;
}

.star {
  fill: white;
  max-width: 10%;
  font-size: 1.2rem;
}

.star.filled {
  fill: #b42025;
}

.rating-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.book-status {
  margin: 10px 0;
}
.footer {
  transition: transform 0.3s ease-in-out;
}

.hidden-footer {
  transform: translateY(100%);
}

.status {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: "Helvetica";
}

.status.available {
  background: #27399530;
  border: 1px solid #27399570;
  color: white;
}

.status.borrowed {
  background: #b4202550;
  border: 1px solid #b4202570;
  color: #fbf6ed;
}

.book-uploader {
  font-family: "Helvetica";
  color: rgba(255, 255, 255, 1);
  font-size: 0.8rem;
  margin-top: 10px;
}

.empty-state {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 20px;
}

.empty-state p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Book Details Page */
.book-details-container {
  color: white;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.back-link {
  width: 100%;
  position: fixed;
  color: white;
  text-decoration: none;
  margin-bottom: 20px;
  display: inline-block;
  font-size: 1.5rem;
  left: 25px;
  left: 0;
  top: 0;
  padding: 5px;
  padding-left: 15px;
  backdrop-filter: blur(5px);
}

.back-link:hover {
  text-decoration: underline;
}

.book-main-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  margin-bottom: 40px;
  padding-top: 50px;
}

.book-images {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.book-image-container {
  text-align: center;
}

.book-cover {
  max-width: 200px;
  max-height: 300px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.book-image-container p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.no-image-large {
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 50px;
}

.book-info-main h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.book-info-main h2 {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  font-weight: 400;
}

.book-description {
  margin: 20px 0;
}

.book-description h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.book-description p {
  font-family: "Helvetica";
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.book-meta-info {
  margin-top: 30px;
}

.meta-item {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.9rem;
}

/* Reviews Section */
.reviews-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 30px;
  margin-top: 30px;
}

.reviews-section h3 {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.add-review-form {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
}

.add-review-form h4 {
  margin-bottom: 15px;
}

.rating-input {
  margin-bottom: 15px;
}

.star-rating {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.star-input {
  font-size: 2rem;
  fill: white;
  cursor: pointer;
  transition: color 0.2s;
}

.star-input:hover,
.star-input.filled {
  fill: #fe3ea6;
}

.reviews-list {
  margin-top: 20px;
}

.review-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.review-date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.review-text {
  font-family: "Helvetica";
  margin: 15px 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.review-comments {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.comments-list {
  margin-bottom: 15px;
}

.comment-item {
  font-family: "Helvetica";
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.comment-content {
  flex: 1;
  min-width: 0; /* Allows flex item to shrink below its content size */
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.comment-text {
  margin: 5px 0;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.comment-username {
  font-weight: 600;
  margin-bottom: 3px;
  word-wrap: break-word;
}

.comment-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-top: 5px;
  display: block;
  font-style: italic;
}

.comment-input-group {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comment-input-group input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: "Helvetica";
  font-size: 0.9rem;
  resize: none;
  min-height: 36px;
  max-height: 120px;
  overflow-y: auto;
}

.comment-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.comment-input-group input:focus {
  outline: none;
  border-color: #fe3ea6;
  background: rgba(255, 255, 255, 0.15);
}

.no-reviews {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  padding: 40px 0;
}

/* Form Styles */
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Helvetica";
  resize: vertical;
  min-height: 100px;
}

textarea:focus {
  outline: none;
  border-color: #ffb4f9;
}

input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .hero {
    padding-top: 200px;
  }

  body {
    background-repeat: none;
  }

  .nav-links {
    margin-right: 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    margin-top: 25px;
  }

  .auth-card {
    margin: 20px;
    padding: 30px 20px;
  }

  .btn-large {
    width: 100%;
    max-width: 250px;
  }

  .dashboard-header {
    flex-direction: column;
    text-align: center;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

  .book-main-info {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-images {
    justify-content: center;
  }

  .meta-item {
    flex-direction: column;
    gap: 5px;
  }

  .comment-input-group {
    flex-direction: column;
    gap: 8px;
  }

  .comment-input-group input {
    margin-bottom: 0;
    border-radius: 8px;
  }

  .comment-item {
    padding: 10px;
    gap: 10px;
  }

  /* Notification responsive */
  .notification-container {
    left: 10px;
    right: 10px;
    max-width: none;
  }

  .notification {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding-top: 200px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .auth-card {
    padding: 25px 15px;
  }

  .book-details-container {
    padding: 10px;
  }

  .reviews-section {
    padding: 20px 15px;
  }

  .book-info-main h1 {
    font-size: 2rem;
  }

  .book-cover {
    max-width: 150px;
    max-height: 225px;
  }

  .comment-item {
    padding: 8px;
    gap: 8px;
    font-size: 0.85rem;
  }

  .comment-input-group {
    gap: 6px;
  }

  /* Notification mobile */
  .notification-container {
    top: 10px;
    left: 5px;
    right: 5px;
  }

  .notification {
    padding: 12px 16px;
    font-size: 13px;
  }

  .notification-title {
    font-size: 13px;
  }

  .notification-message {
    font-size: 12px;
  }
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 50px;
  border-top: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer a {
  width: 50%;
  text-align: center;
  color: #b42025;
  background-color: white;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

.footer a:hover {
  color: #273995;
  background-color: #ffffff80;
}

.footer a:hover .footer-cig {
  fill: #273995;
}

.add {
  font-size: 2.5rem;
  border-right: 3px solid white;
  line-height: 3.1rem;
  font-family: "Helvetica";
}

.home {
  font-size: 2rem;
  line-height: 3.1rem;
}

/* Category Checkboxes */
.categories-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 10px 0;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
}

.category-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.2s;
  color: white;
  font-size: 0.9rem;
}

.category-checkbox:hover {
  background: rgba(255, 255, 255, 0.1);
}

.category-checkbox input[type="checkbox"] {
  width: unset;
  margin-right: 8px;
  transform: scale(1.2);
}

.checkmark {
  margin-left: 5px;
}

/* Filters */
.filters-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.filters-section h3 {
  margin-bottom: 15px;
  color: white;
  font-size: 1.3rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-item label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-select {
  padding: 8px 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  min-width: 150px;
}

.filter-select option {
  background: #333;
  color: white;
}

.filter-select:focus {
  outline: none;
  border-color: #ffb4f9;
}

.clear-filters {
  padding: 8px 16px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.clear-filters:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Book categories display */
.book-categories {
  margin: 10px 0;
}

.category-tag {
  display: inline-block;
  background: #27399530;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin: 2px;
  border: 1px solid rgba(255, 180, 249, 0.5);
}

.last-owner-info {
  margin: 10px 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid #fe3ea6;
}

.last-owner-info strong {
  color: #fe3ea6;
}

@media (max-width: 768px) {
  .categories-container {
    grid-template-columns: 1fr;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-select {
    min-width: auto;
    width: 100%;
  }
  #rating-info {
    width: 200%;
  }
  .btn-small {
    margin-top: unset;
  }
  .footer-cig {
    max-width: 12.5%;
    fill: #b42025;
  }
}

#title {
  width: 100%;
}

#author {
  width: 100%;
}

/* Statistics Styles */
.stats-container {
  color: white;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 100px;
}

.stats-header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 50px;
}

.stats-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.stats-header .welcome-text {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Personal Stats Section */
.personal-stats-section {
  margin-bottom: 50px;
}

.personal-stats-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-card.highlight {
  border: 2px solid #fe3ea6;
  background: rgba(254, 62, 166, 0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #fe3ea6;
  margin-bottom: 10px;
  font-family: "Helvetica";
}

.stat-label {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.stat-subtitle {
  font-size: 0.9rem;
  opacity: 0.7;
  font-family: "Helvetica";
}

/* Yearly Stats Section */
.yearly-stats-section {
  margin-bottom: 50px;
}

.yearly-stats-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

/* Leaderboards Section */
.leaderboards-section {
  margin-bottom: 50px;
}

.leaderboards-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

.leaderboards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.leaderboard-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.leaderboard-card h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-align: center;
  color: #fe3ea6;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.leaderboard-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.leaderboard-item.current-user {
  background: rgba(254, 62, 166, 0.2);
  border: 1px solid rgba(254, 62, 166, 0.5);
}

.rank {
  font-size: 1.2rem;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
  margin-right: 15px;
}

.user-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.username {
  font-weight: 600;
  font-family: "Helvetica";
}

.you-badge {
  background: #fe3ea6;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: "Helvetica";
}

.score {
  font-weight: 700;
  color: #fe3ea6;
  font-size: 1.1rem;
  font-family: "Helvetica";
}

.no-data {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  padding: 20px;
}

/* Activity Chart Section */
.activity-chart-section {
  margin-bottom: 50px;
}

.activity-chart-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

.chart-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-family: "Helvetica";
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.legend-color.books-borrowed {
  background: #b42025;
}

.legend-color.books-uploaded {
  background: #273995;
}

.legend-color.reviews-given {
  background: #fe3ea6;
}

.chart {
  height: 300px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 15px;
  height: 100%;
  width: 100%;
  max-width: 800px;
}

.chart-month {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.chart-bars-group {
  display: flex;
  align-items: end;
  gap: 3px;
  height: calc(100% - 30px);
  width: 100%;
  justify-content: center;
}

.chart-bar {
  width: 8px;
  min-height: 2px;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.chart-bar:hover {
  opacity: 0.8;
  transform: scaleX(1.2);
}

.chart-bar.books-borrowed {
  background: #b42025;
}

.chart-bar.books-uploaded {
  background: #273995;
}

.chart-bar.reviews-given {
  background: #fe3ea6;
}

.chart-month-label {
  margin-top: 10px;
  font-size: 0.8rem;
  font-family: "Helvetica";
  text-align: center;
}

/* Responsive Design for Stats */
@media (max-width: 768px) {
  .stats-container {
    padding: 15px;
  }
    body{
          background-image: url('../images/background-mobile.jpg');
          background-size: 100vw;
          background-position: fixed;
    }
  .stats-header h1 {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .leaderboards-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .chart-legend {
    gap: 15px;
  }

  .chart-bars {
    gap: 8px;
  }

  .chart-bar {
    width: 6px;
  }
}

@media (max-width: 480px) {
  .stats-header {
    padding-top: 30px;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .leaderboard-card {
    padding: 20px;
  }

  .chart-container {
    padding: 20px;
  }

  .chart-legend {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* Profile Page Styles */
.profile-container {
  color: white;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 100px;
}

.profile-header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 50px;
}

.profile-picture-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.profile-picture-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.profile-picture-placeholder-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 3px solid white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.profile-picture-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  flex-shrink: 0;
}

.profile-picture-placeholder-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 2px solid white;
  flex-shrink: 0;
}

.member-since {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-family: "Helvetica";
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.profile-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-section h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #fe3ea6;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.account-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* User info display in various places */
.user-info-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.user-info-display .profile-picture-small,
.user-info-display .profile-picture-placeholder-small {
  flex-shrink: 0;
}

.username-display {
  font-weight: 600;
  color: white;
}

/* Update existing review and comment styles to include profile pictures */
.reviewer-info {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

/* Responsive Design for Profile */
@media (max-width: 768px) {
  .profile-container {
    padding: 15px;
  }

  .profile-picture-large,
  .profile-picture-placeholder-large {
    width: 100px;
    height: 100px;
  }

  .profile-picture-placeholder-large {
    font-size: 2.5rem;
  }

  .profile-section {
    padding: 20px;
  }

  .account-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .profile-section {
    padding: 15px;
  }

  .profile-picture-large,
  .profile-picture-placeholder-large {
    width: 80px;
    height: 80px;
  }

  .profile-picture-placeholder-large {
    font-size: 2rem;
  }
}

/* Profile View Styles */
.book-card {
  position: relative;
}

.profile-view-link {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.profile-view-link:hover {
  color: #fe3ea6;
  text-decoration: underline;
}

/* Responsive adjustments for profile view */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .books-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  }
}
