* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f3ef;
  color: #2c2c2a;
}
a { text-decoration: none; color: inherit; }

.topbar { background: #2c2c2a; color: #fff; }
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
}
.brand { font-weight: 600; font-size: 18px; color: #e24b4a; margin-right: 24px; }
.navlinks { display: flex; gap: 20px; flex: 1; }
.navlinks a { font-size: 14px; color: #d3d1c7; }
.navlinks a:hover { color: #fff; }
.btn-logout {
  background: #e24b4a; color: #fff; padding: 6px 14px; border-radius: 4px; font-size: 13px;
}
.term-row { background: #3a3a37; padding: 8px 24px; font-size: 13px; }
.term-label { color: #f09595; font-weight: 600; }
.btn-helpdesk { background: #e24b4a; color: #fff; padding: 6px 14px; border-radius: 4px; font-size: 12px; }

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

.card {
  background: #fff; border: 1px solid #e3e1d8; border-radius: 8px;
  padding: 20px; margin-bottom: 20px;
}

h1, h2, h3 { font-weight: 500; margin: 0 0 12px; }
h1 { font-size: 20px; } h2 { font-size: 17px; } h3 { font-size: 15px; }

.btn {
  display: inline-block; border: 1px solid #c4c2b8; background: #fff;
  padding: 8px 16px; border-radius: 4px; font-size: 13px; cursor: pointer;
}
.btn:hover { background: #f1efe8; }
.btn-primary { background: #e24b4a; color: #fff; border-color: #e24b4a; }
.btn-primary:hover { background: #c93b3a; }
.btn-secondary { background: #534ab7; color: #fff; border-color: #534ab7; }
.btn-disabled { opacity: 0.4; cursor: not-allowed; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
table th, table td { padding: 8px 10px; border-bottom: 1px solid #ece9df; text-align: left; }
table th { background: #f1efe8; font-weight: 600; }

input[type=text], input[type=password], input[type=number], input[type=email],
select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #c4c2b8; border-radius: 4px;
  font-size: 13px; margin-bottom: 12px;
}
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }

.legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0; font-size: 12px; color: #5f5e5a; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.dot-red { background: #e24b4a; }
.dot-purple { background: #7f77dd; }
.dot-blue { background: #185fa5; }
.dot-pink { background: #d4537e; }
.dot-amber { background: #ef9f27; }
.dot-green { background: #639922; }
.dot-empty { background: #d3d1c7; }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.course-tile { background: #f7f6f2; border-radius: 6px; padding: 10px 12px; cursor: pointer; }
.course-tile:hover { background: #eeece3; }
.course-code { font-size: 13px; font-weight: 600; margin-bottom: 8px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.stat-box { background: #f7f6f2; border-radius: 6px; padding: 14px; text-align: center; }
.stat-num { font-size: 26px; font-weight: 600; }
.stat-label { font-size: 12px; color: #5f5e5a; }

.dnd-row { display: flex; gap: 24px; margin-top: 16px; }
.dnd-col { flex: 1; border: 1px solid #e3e1d8; border-radius: 6px; padding: 10px; min-height: 200px; }
.dnd-col h4 { font-size: 13px; margin: 0 0 8px; }
.packet-icon {
  display: inline-block; width: 64px; padding: 8px 6px; margin: 4px; text-align: center;
  background: #fff; border: 1px solid #d3d1c7; border-radius: 6px; cursor: grab; font-size: 11px;
}
.packet-icon.completed { background: #eaf3de; border-color: #97c459; }

.evaluator-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #ece9df; }
.evaluator-name { font-weight: 600; font-size: 13px; }
.staff-id { font-size: 12px; color: #5f5e5a; }

.evaluate-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border: 1px solid #e3e1d8; border-radius: 8px; overflow: hidden; }
.script-pane { background: #f7f6f2; padding: 20px; min-height: 400px; }
.marks-pane { padding: 16px; }
.marks-pane table input { width: 56px; padding: 4px; margin: 0; }
.final-marks { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #ece9df; font-size: 16px; font-weight: 600; }

.alert { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; }
.alert-success { background: #eaf3de; color: #27500a; }
.alert-error { background: #fcebeb; color: #791f1f; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
