/*
 * Northwest University Sokoto Online Examination System
 * Modern UI layer for the original GPLv3 OES application.
 * Original OES author: Manjunath Baddi. This file is an adaptation.
 */
:root {
  --navy: #102a43;
  --navy-2: #163d5d;
  --green: #159a72;
  --green-dark: #0b7657;
  --gold: #d9a441;
  --ink: #203040;
  --muted: #627386;
  --paper: #ffffff;
  --surface: #f3f7f8;
  --line: #dce6ea;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(16, 42, 67, .10);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #eef7f3 0%, #f7fafb 48%, #eef3f8 100%);
  font: 15px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }
button, input, select, textarea { font: inherit; }

#container { width: min(1180px, calc(100% - 32px)); margin: 28px auto; }
.page, .stdpage, .admpage { background: transparent; }
.header {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 27px 32px;
  border-radius: 22px 22px 0 0;
  color: white;
  background: radial-gradient(circle at 90% 20%, rgba(21,154,114,.45), transparent 32%), linear-gradient(120deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow);
}
.header::after { content: ""; position: absolute; width: 250px; height: 250px; right: -90px; bottom: -150px; border: 35px solid rgba(255,255,255,.08); border-radius: 50%; }
.headtext { position: relative; z-index: 1; margin: 0; padding: 0; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
.header img { display: none; }
.header h4 { position: relative; z-index: 1; margin: 10px 0 0; color: #c9e9df !important; font-size: .9rem; font-weight: 500; text-align: left !important; }
.header h4::before { content: "NORTHWEST UNIVERSITY SOKOTO  •  FACULTY OF COMPUTING"; display: block; margin-bottom: 6px; color: var(--gold); font-size: .68rem; font-style: normal; font-weight: 800; letter-spacing: .11em; }
.menubar { display: flex; align-items: center; justify-content: flex-end; min-height: 58px; padding: 8px 22px; background: var(--paper); border: 1px solid var(--line); border-top: 0; }
#menu { width: 100%; margin: 0; padding: 0; list-style: none; text-align: right; }
#menu li { display: inline-block; float: none; margin-left: 8px; }
.aclass { display: inline-block; height: auto; padding: 8px 16px; border: 0; border-radius: 10px; background: var(--green); color: white; font-weight: 700; }
.aclass a, .aclass a:visited { color: white; text-decoration: none; }
.subbtn, .ssubbtn, .btn, input[type=submit], input[type=button] { cursor: pointer; border: 0; border-radius: 10px; padding: 11px 18px; min-height: 42px; color: white; background: var(--green); font-weight: 750; box-shadow: 0 8px 18px rgba(21,154,114,.18); }
.subbtn:hover, .ssubbtn:hover, .btn:hover, input[type=submit]:hover, input[type=button]:hover { background: var(--green-dark); transform: translateY(-1px); }
.page { padding: 28px; min-height: 360px; background: var(--paper); border: 1px solid var(--line); border-top: 0; }
table { width: 100%; max-width: 760px; margin: 0 auto; border: 0; border-collapse: separate; border-spacing: 0 12px; background: transparent; color: var(--ink); font-size: 1rem; text-align: left; }
table td { padding: 4px 10px; vertical-align: middle; }
table td:first-child { color: var(--muted); font-weight: 700; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], select, textarea { width: 100%; max-width: 520px; padding: 12px 14px; color: var(--ink); background: #fbfdfd; border: 1px solid var(--line); border-radius: 10px; outline: none; transition: border .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(21,154,114,.12); }
.message, .pmsg { width: 100%; margin: 12px 0; padding: 12px 16px; border: 1px solid #f3b5b0; border-radius: 10px; background: #fff5f4; color: var(--danger); font-size: .95rem; }
#footer { margin-top: 0; padding: 24px 18px; border-radius: 0 0 22px 22px; color: #c9d7e2; background: var(--navy); font-size: .8rem; text-align: center; }
#footer p { margin: 2px 0; }
.datatable { width: 100%; border: 1px solid var(--line); border-collapse: collapse; border-radius: 12px; overflow: hidden; background: white; font-size: .94rem; }
.datatable td, .datatable th { padding: 12px 14px; border: 1px solid var(--line); }
.datatable th { color: var(--navy); background: #eaf5f1; font-weight: 800; }
.datatable tr { background: white; color: var(--ink); }
.datatable tr:nth-child(even) { background: #f8fbfb; }
.datatable tr:hover { background: #eef9f5; color: var(--ink); }
.stdpage { min-height: 510px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-top: 0; }
.stdpage .btmimg, .stdpage .topimg { display: none; }
.stdpage::before { content: "Student Workspace"; display: block; margin-bottom: 22px; color: var(--navy); font-size: 1.6rem; font-weight: 850; }
.stdpage::after { content: "Choose an action below to continue your examination journey."; display: block; max-width: 560px; padding: 36px; border: 1px solid var(--line); border-radius: 18px; background: white; color: var(--muted); box-shadow: 0 10px 25px rgba(16,42,67,.06); }
.tc, .timerclass { border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); }
.help { border-radius: 10px; background: #e9f8f2; color: var(--green-dark); }
@media (max-width: 700px) {
  #container { width: calc(100% - 20px); margin: 10px auto; }
  .header { padding: 23px 20px; border-radius: 16px 16px 0 0; }
  .page, .stdpage { padding: 20px 14px; }
  .menubar { padding: 8px 14px; }
  table, .datatable { font-size: .9rem; }
  table td { display: block; padding: 4px 6px; }
  table td:first-child { padding-top: 12px; }
  input[type=text], input[type=password], input[type=email], select { max-width: 100%; }
}
