* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0f172a;
  color: #e5e7eb;
}

.app {
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  margin-bottom: 20px;
}

.topbar h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.topbar p {
  margin: 0;
  color: #cbd5e1;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.card.full {
  grid-column: 1 / -1;
}

h2,
h3 {
  margin-top: 0;
}

label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: bold;
  color: #f3f4f6;
}

input,
select,
textarea,
button {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #0b1220;
  color: #f8fafc;
  padding: 12px;
  font-size: 15px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button {
  cursor: pointer;
  transition: 0.2s ease;
  font-weight: bold;
}

button:hover {
  transform: translateY(-1px);
  border-color: #60a5fa;
}

button.primary {
  background: #2563eb;
  border-color: #2563eb;
}

button.danger {
  background: #dc2626;
  border-color: #dc2626;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
  margin-top: 8px;
}

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.controls button {
  flex: 1;
  min-width: 150px;
}

.hidden {
  display: none;
}

.spaced-top {
  margin-top: 12px;
}

.stats {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: #0b1220;
  border: 1px solid #1e293b;
}

.stats p {
  margin: 8px 0;
}

.progress-box {
  margin-top: 10px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-bar {
  width: 100%;
  height: 18px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #334155;
}

#progressFill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  transition: width 0.25s ease;
}

.current-chunk {
  margin-top: 16px;
  padding: 14px;
  background: #0b1220;
  border-radius: 12px;
  border: 1px solid #1e293b;
}

#currentChunk {
  line-height: 1.7;
  color: #e2e8f0;
}

.info {
  margin-top: 10px;
  font-size: 14px;
  color: #cbd5e1;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .recommended-box{
  background:#0b1220;
  border:1px solid #334155;
  padding:15px;
  border-radius:12px;
  margin-bottom:15px;
}

.recommended-box h3{
  margin:0 0 6px 0;
  color:#60a5fa;
}

.recommended-box p{
  margin:0 0 10px 0;
  font-size:14px;
  color:#cbd5e1;
}

.recommended-box ul{
  margin:0;
  padding-left:18px;
}

.recommended-box li{
  margin:4px 0;
}

}