/* ==============================
   TRL Motorcycle Examination UI
   ============================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f5f7fb;
  color: #222;
}

/* ---------- Layout ---------- */

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid #ddd;
  padding: 12px;
  overflow-y: auto;
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0b57d0;
  color: white;
  padding: 10px 14px;
}

.topbar h1 {
  margin: 0;
  font-size: 18px;
}

.actions {
  display: flex;
  gap: 8px;
}

/* ---------- Buttons ---------- */

.btn {
  background: #f0f0f0;
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
}

.btn:hover {
  background: #e4e4e4;
}

.btn-primary {
  background: #0b57d0;
  color: white;
  border: 1px solid #0b57d0;
}

.btn-primary:hover {
  background: #0845a8;
}

/* ---------- Cards ---------- */

.card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 14px;
}

/* ---------- Status bar ---------- */

.status {
  font-size: 14px;
}

/* ---------- Navigation ---------- */

.navlist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navlist li {
  margin-bottom: 6px;
}

.navitem {
  display: block;
  padding: 6px 8px;
  border-radius: 4px;
  color: #0b57d0;
  text-decoration: none;
}

.navitem:hover {
  background: #eef3ff;
}

/* ---------- Form ---------- */

.sectionTitle {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 14px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

input[type=text],
input[type=date],
input[type=time],
input[type=number],
textarea,
select {
  width: 100%;
  padding: 8px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 14px;
}

textarea {
  min-height: 80px;
}

.inline {
  margin-right: 12px;
}

/* ---------- Choice / Radio / Checkbox ---------- */

.choice label {
  display: inline-block;
  margin-right: 14px;
}

input[type=checkbox],
input[type=radio] {
  transform: scale(1.2);
  margin-right: 6px;
}

/* ---------- Small text ---------- */

.small {
  font-size: 12px;
  color: #666;
}

/* ---------- iPad / Tablet ---------- */

@media (max-width: 900px) {

  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .content {
    padding: 12px;
  }

}

/* ---------- Large touch targets ---------- */

button,
input,
select,
textarea {
  font-size: 16px;
}

/* ---------- Scroll improvements ---------- */

.sidebar,
.content {
  -webkit-overflow-scrolling: touch;
}
