* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  color: #1f2937;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px;
  background: linear-gradient(135deg, #16213e, #0f3460);
  color: white;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 2px;
  opacity: 0.8;
}

h1 {
  margin: 0 0 8px;
}

.status {
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px 40px;
}

.card {
  background: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 52, 96, 0.08);
}

.highlight {
  border: 2px solid #dbeafe;
}

.wide {
  grid-column: 1 / -1;
}

.card h2 {
  margin-top: 0;
}

.card p {
  line-height: 1.6;
  color: #4b5563;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  background: #0f3460;
  color: white;
  cursor: pointer;
  font-size: 15px;
}

button:hover {
  opacity: 0.9;
}

.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task-list li {
  padding: 10px 0;
}

.task-list input {
  margin-right: 10px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 14px 18px;
  background: #111827;
  color: white;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.25s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

  .wide {
    grid-column: auto;
  }

  .topbar {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }
}

.task-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.task-input-row input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
}

.task-input-row input:focus {
  outline: 2px solid #bfdbfe;
  border-color: #2563eb;
}

.task-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-text {
  flex: 1;
}

.delete-task-button {
  background: #fee2e2;
  color: #991b1b;
  padding: 7px 10px;
  font-size: 13px;
}

.delete-task-button:hover {
  background: #fecaca;
}

@media (max-width: 520px) {
  .task-input-row {
    flex-direction: column;
  }
}

.task-progress {
  margin-top: -6px;
  margin-bottom: 18px;
  font-weight: bold;
  color: #0f3460;
}

.progress-track {
  width: 100%;
  height: 14px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #e5e7eb;
  border-radius: 999px;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  border-radius: inherit;
  transition: width 0.3s ease;
}

.progress-percent {
  margin-top: 0;
  margin-bottom: 18px;
  text-align: right;
  font-size: 14px;
  font-weight: bold;
  color: #0f3460;
}

.secondary-button {
  margin-bottom: 18px;
  background: #e0e7ff;
  color: #1e3a8a;
}

.secondary-button:hover {
  background: #c7d2fe;
}

.back-button {
  display: inline-block;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  color: white;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  padding: 16px;
  border-radius: 12px;
  background: #eff6ff;
}

.metric-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #64748b;
}

.feature-list {
  padding-left: 22px;
  line-height: 1.9;
}

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

.module-link {
  display: inline-block;
  border-radius: 10px;
  padding: 11px 16px;
  background: #0f3460;
  color: white;
  text-decoration: none;
  font-size: 15px;
}

.module-link:hover {
  opacity: 0.9;
}

.module-progress {
  margin: 18px 0;
  padding: 14px;
  background: #f8fafc;
  border-radius: 12px;
}

.module-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
}

.module-progress span {
  color: #64748b;
}

.small-progress-track {
  height: 10px;
}

.module-progress .progress-percent {
  margin: 6px 0 0;
}

.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.import-label {
  cursor: pointer;
}