* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: #f6f8fc;
  color: #1f2937;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 700;
  font-size: 20px;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.nav a.primary {
  background: #1d4ed8;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
}

.nav-user {
  background: #eff6ff;
  color: #1d4ed8;
  padding: 6px 12px;
  border-radius: 999px;
}

.muted {
  color: #6b7280;
}

.small {
  font-size: 12px;
}

.card,
.auth-card,
.hero-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  margin-bottom: 24px;
}

.hero-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.welcome-bar {
  background: #2563eb;
  color: #ffffff;
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

.stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 24px;
}

.stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.stat-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #e0edff;
  color: #2563eb;
  font-size: 18px;
}

.stat-label {
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

.stat-value {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
}

.stat-week {
  margin-top: 6px;
  font-size: 12px;
  color: #16a34a;
  font-weight: 600;
}
.welcome-bar h2 {
  margin: 0 0 6px 0;
  font-size: 22px;
}

.welcome-bar p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

.welcome-group {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.9;
}

.welcome-progress {
  text-align: right;
  min-width: 240px;
}

.welcome-level {
  font-size: 20px;
  font-weight: 700;
}

.welcome-xp {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.9;
}

.progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 999px;
}

.xp-card {
  background: #eff6ff;
  border-radius: 16px;
  padding: 16px 24px;
  min-width: 240px;
  text-align: center;
}

.xp-total {
  font-size: 28px;
  font-weight: 700;
  color: #1d4ed8;
}

.xp-level {
  font-size: 16px;
  font-weight: 600;
  margin-top: 4px;
}

.xp-next {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

input,
select,
textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  background: #ffffff;
}

.grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.date-picker {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.date-picker input[type="date"] {
  width: 44px;
  padding: 10px 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: #1d4ed8;
  color: #ffffff;
}

.btn-danger {
  background: #ef4444;
  color: #ffffff;
}

.btn-ghost {
  background: #eff6ff;
  color: #1d4ed8;
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
}

.alert-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.alert-info {
  background: #e0f2fe;
  color: #0369a1;
}

.alert-success {
  background: #dcfce7;
  color: #15803d;
}

.task-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.task-title {
  font-weight: 600;
  font-size: 16px;
}

.task-desc {
  color: #6b7280;
  margin-top: 4px;
  font-size: 14px;
}

.task-meta {
  color: #6b7280;
  font-size: 12px;
  margin-top: 4px;
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-secondary {
  background: #f3f4f6;
  color: #4b5563;
}

.badge-warning {
  background: #fef3c7;
  color: #b45309;
}

.badge-success {
  background: #dcfce7;
  color: #15803d;
}

.badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.table {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.table-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  align-items: center;
}

.table-head {
  background: #eff6ff;
  font-weight: 600;
}

.class-grid {
  display: grid;
  gap: 12px;
}

.class-options {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.review-block {
  margin-bottom: 16px;
}

.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .welcome-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .welcome-progress {
    text-align: left;
    width: 100%;
  }

  .hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
