body {
  font-family: 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #0f2027, #000);
  color: #eaeaea;
  margin: 0;
  padding: 30px;
}

h1 {
  text-align: center;
  margin-bottom: 40px;
}

/* HOME GRID */
#libraries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

/* LIBRARY CARD */
.library-card {
  background: linear-gradient(145deg, #1e2a38, #0d1117);
  border-radius: 18px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.library-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,255,255,0.15);
}

.library-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.library-card h2 {
  font-size: 1.4em;
  margin: 10px 0;
}

.library-card p {
  color: #9fb3c8;
}

/* MODULES */
.module {
  background: #111827;
  border-radius: 14px;
  margin-bottom: 18px;
  overflow: hidden;
}

.module-header {
  padding: 18px;
  font-size: 1.3em;
  background: linear-gradient(90deg, #0f766e, #0891b2);
  cursor: pointer;
}

.module-content {
  display: none;
  padding: 15px 25px;
}

.module-content.open {
  display: block;
}

.module-content a {
  display: block;
  padding: 10px 0;
  color: #38bdf8;
  text-decoration: none;
  font-size: 1.05em;
}

.module-content a:hover {
  color: #7dd3fc;
}

/* BACK */
.back {
  display: inline-block;
  margin-bottom: 20px;
  color: #38bdf8;
  text-decoration: none;
}

/* =========================
   Barra de progreso
========================= */

.progress-container {
    margin-top: 12px;
}

.progress-text {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 4px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00c853, #64dd17);
    transition: width 0.3s ease;
}
