/* ============================================
   PAST TEST ATTEMPTS - BOOK COVER STYLE
   ============================================ */

.main-content {
  width: 100%;
  padding: 2rem;
  background: var(--background);
}
.main-content h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.test-attempts-container-new {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.review-header {
  margin-bottom: 2rem;
}

/* Workbook Card Container */
.test-workbook-card {
  background: white;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  transition: box-shadow 0.2s ease;
}

.test-workbook-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Book Cover */
.book-cover-container {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.book-cover {
  width: 128px;
  height: 176px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3),
    0 4px 6px -2px rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 1rem;
  position: relative;
  transition: transform 0.2s ease;
}

.test-workbook-card:hover .book-cover {
  transform: translateY(-4px);
}

/* Book Spine Effect */
.book-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.book-content {
  position: relative;
  z-index: 1;
}

.book-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.book-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.book-edition {
  font-size: 0.625rem;
  opacity: 0.75;
  margin-top: 0.5rem;
}

/* Test Workbook Info */
.test-workbook-info {
  flex-grow: 1;
  width: 100%;
}

.test-workbook-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.test-workbook-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}

.test-workbook-meta {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.view-details-btn {
  padding: 0.5rem 1rem;
  background: #6366f1;
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(99, 102, 241, 0.2);
}

.view-details-btn:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

/* Workbook Stats Grid */
.test-workbook-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.workbook-stat-card {
  background: #f8fafc;
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.workbook-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.workbook-stat-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .test-workbook-card {
    flex-direction: column;
    padding: 1.5rem;
  }

  .book-cover-container {
    width: 100%;
  }

  .test-workbook-header {
    flex-direction: column;
    align-items: stretch;
  }

  .view-details-btn {
    width: 100%;
    text-align: center;
  }

  .test-workbook-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .book-cover {
    width: 96px;
    height: 132px;
    padding: 0.75rem;
  }

  .book-title {
    font-size: 0.75rem;
  }
}
