* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: #f5f6f8;
  color: #1f2329;
  min-height: 100vh;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* Header */
.header {
  text-align: center;
  padding: 32px 0 24px;
}

.header h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.header p {
  font-size: 14px;
  color: #646a73;
}

/* Progress bar */
.progress-bar {
  background: #e5e6eb;
  border-radius: 8px;
  height: 8px;
  margin: 16px 0 24px;
  overflow: hidden;
}

.progress-bar .fill {
  background: #3370ff;
  height: 100%;
  border-radius: 8px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 13px;
  color: #646a73;
  margin-bottom: 8px;
}

/* Sections */
.section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.section h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Doc list */
.doc-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f1f5;
  gap: 12px;
}

.doc-item:last-child {
  border-bottom: none;
}

.doc-status {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.doc-status.read {
  background: #e8f5e9;
  color: #34a853;
}

.doc-status.unread {
  background: #f0f1f5;
  color: #8f959e;
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-title {
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  color: #3370ff;
  text-decoration: none;
}

.doc-title:hover {
  text-decoration: underline;
}

.doc-desc {
  font-size: 13px;
  color: #8f959e;
  margin-top: 2px;
}

/* Quiz */
.quiz-question {
  margin-bottom: 24px;
}

.quiz-question h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
}

.quiz-option {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  gap: 8px;
}

.quiz-option:hover {
  border-color: #3370ff;
  background: #f0f4ff;
}

.quiz-option.selected {
  border-color: #3370ff;
  background: #e8eeff;
}

.quiz-option.wrong {
  border-color: #f54a45;
  background: #fff0f0;
}

.quiz-option input[type="radio"] {
  accent-color: #3370ff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-primary {
  background: #3370ff;
  color: #fff;
}

.btn-primary:hover {
  background: #2860e1;
}

.btn-primary:disabled {
  background: #bfc3cc;
  cursor: not-allowed;
}

/* Completion */
.completion-icon {
  text-align: center;
  font-size: 64px;
  margin-bottom: 16px;
}

.provision-list {
  list-style: none;
  padding: 0;
}

.provision-list li {
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Provisioning progress */
.provision-status {
  margin-bottom: 20px;
}

.current-task {
  font-size: 13px;
  color: #8f959e;
  margin-top: 8px;
}

.provision-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid #f0f1f5;
}

.provision-item:last-child {
  border-bottom: none;
}

.provision-icon {
  flex-shrink: 0;
}

.provision-error {
  color: #f54a45;
  font-size: 12px;
  margin-left: auto;
}

/* Loading */
.loading {
  text-align: center;
  padding: 60px 0;
  color: #8f959e;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e6eb;
  border-top-color: #3370ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2329;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}
