body {
  background: #f7f9fc;
}

.app-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#drawflow {
  height: 520px;
  border: 1px solid #dce1ea;
  border-radius: 8px;
  background: linear-gradient(#f8fbff, #ffffff);
}

.toolbar button {
  margin-right: 0;
  margin-bottom: 0.5rem;
}

.hidden {
  display: none !important;
}

.flow-node {
  width: 168px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
  border: 2px solid #2563eb;
  background: #ffffff;
  padding: 8px 12px;
}

.flow-node-title {
  line-height: 1.2;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.node-start,
.node-end {
  width: auto;
  min-height: 92px;
  border-radius: 999px;
  background: #ecfdf5;
}

.node-process {
  width: auto;
  min-height: 92px;
  border-radius: 6px;
}

.node-decision {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  transform: rotate(45deg);
  border-radius: 6px;
  background: #eff6ff;
  padding: 10px;
}

.node-decision .flow-node-title,
.node-decision .flow-node-input {
  transform: rotate(-45deg);
}

.node-decision .flow-node-input {
  width: 86%;
}

.node-io {
  width: auto;
  min-height: 92px;
  transform: skew(-20deg);
  border-radius: 4px;
  background: #f5f3ff;
}

.node-io .flow-node-title,
.node-io .flow-node-input {
  transform: skew(20deg);
}

.node-subprocess {
  width: auto;
  min-height: 92px;
  border-left: 6px double #2563eb;
  border-right: 6px double #2563eb;
  border-radius: 6px;
  background: #f8fafc;
}

.node-document {
  width: auto;
  min-height: 92px;
  border-radius: 6px 6px 20px 20px;
  background: #fffbeb;
}

.node-connector {
  width: auto;
  height: 88px;
  min-width: 88px;
  min-height: 88px;
  border-radius: 999px;
  background: #e0f2fe;
  padding: 6px;
}

.node-connector .flow-node-title {
  margin-bottom: 2px;
}

.node-connector .flow-node-input {
  width: 82%;
  font-size: 10px;
  padding: 2px 4px;
}

.flow-node-input {
  width: 100%;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 12px;
  background: #ffffff;
}

.flow-node-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.exam-header {
  border-left: 5px solid #2563eb;
}

.timer-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 8px 12px;
}

.palette-card h6 {
  margin-bottom: 0.25rem;
}

.canvas-card {
  padding: 0.75rem;
}

.teacher-header {
  border-left: 5px solid #0d6efd;
}

.teacher-exam-list {
  display: grid;
  gap: 12px;
}

.teacher-exam-card {
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  padding: 12px;
  background: #fbfdff;
}

.teacher-link-box {
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  padding: 8px;
  font-size: 0.85rem;
  color: #334155;
  word-break: break-all;
}

.teacher-filters {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
}

.teacher-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.teacher-stat {
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
  text-align: center;
}

.teacher-stat small {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
}

.teacher-stat strong {
  font-size: 1rem;
}

.exam-type-form {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  background: #fcfdff;
  margin-bottom: 12px;
}

.exam-time-notice {
  border-left: 4px solid #0d6efd;
  padding: 0.5rem 0.75rem;
  background: #f0f6ff;
  border-radius: 0 8px 8px 0;
  color: #1e3a5f !important;
}

.finish-panel {
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.finish-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.finish-panel.finish-time .finish-icon::before {
  content: "\23f0";
}

.finish-panel.finish-ok .finish-icon::before {
  content: "\2705";
}

.finish-panel.finish-error .finish-icon::before {
  content: "\26a0\fe0f";
}

.finish-panel.finish-error {
  border: 1px solid #fecaca;
  background: #fffafa;
}

.timer-box.text-warning strong {
  color: #b45309;
}
