body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1c1c1e, #a855f7);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.container {
  max-width: 800px;
  width: 90%;
  padding: 2rem;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.file-input-container {
  width: 100%;
  margin-bottom: 1.5rem;
  position: relative;
}

.file-input-container input[type="file"] {
  position: absolute;
  left: -9999px;
}

.file-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.15);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-label:hover {
  background: rgba(255, 255, 255, 0.25);
}

#file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  text-align: left;
  padding-right: 1rem;
}

.browse-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #3b82f6;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s;
}

.file-label:hover .browse-btn {
  transform: translateY(-2px);
}

.generate-btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(to right, #22c55e, #10b981);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.generate-btn:active {
  transform: translateY(0);
}

.recap {
  margin-top: 2rem;
  width: 100%;
  text-align: left;
}

.recap.hidden {
  display: none;
}

.stats, .top-mangas, .top-authors, .top-genres {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(5px);
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
}

.manga-card {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.manga-card:hover {
  transform: translateX(5px);
}

.manga-card img {
  width: 70px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.manga-card div {
  flex: 1;
}

.manga-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.3rem 0;
  color: white;
}

.manga-card p {
  font-size: 0.85rem;
  margin: 0.2rem 0;
  color: rgba(255, 255, 255, 0.8);
}

.stat-item {
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.stat-item strong {
  color: white;
}

.error {
  color: #ff6b6b;
  font-weight: 600;
}
