/* ============================================================
   site.css — warm-vibrant design tokens & reusable components
   teacher.aimindschool.com
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --orange: #f97316;
  --orange-light: #fb923c;
  --warm-bg: #fff8f0;
}

/* ---------- Global Body ---------- */
body {
  font-family: 'Noto Sans SC', sans-serif;
  background: #fff8f0;
  color: #1c1917;
  margin: 0;
}

/* ---------- Navigation Bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 50;
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-secondary {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1c1917;
  border-radius: 10px;
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
}

/* ---------- Input Field ---------- */
.field-input {
  display: block;
  background: white;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Noto Sans SC', sans-serif;
  color: #1c1917;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.field-input:focus {
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

textarea.field-input {
  min-height: 160px;
  resize: vertical;
  line-height: 1.8;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(29, 42, 52, 0.92);
  color: white;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  z-index: 9999;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s;
  pointer-events: none;
}

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

/* ---------- Spin Animation ---------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
}

/* ---------- Status Badges ---------- */
.badge-done {
  background: #dcfce7;
  color: #16a34a;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}

.badge-running {
  background: #fff7ed;
  color: #ea580c;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}

.badge-fail {
  background: #fef2f2;
  color: #dc2626;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}

/* ---------- Logo Icon ---------- */
.logo-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f97316, #fb923c);
  display: inline-block;
  flex-shrink: 0;
}

/* ---------- Chip Selector ---------- */
.chip {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #78716c;
}

.chip.active {
  background: #fff7ed;
  color: #ea580c;
  border-color: rgba(249, 115, 22, 0.3);
}

/* ---------- Card ---------- */
.card {
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 16px;
}
