/* ===============================
   BASE RESET
=============================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  background: #f4f6fb;
  color: #1e293b;
}

/* ===============================
   PAGE WRAPPER
=============================== */
body > * {
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  font-size: 26px;
  margin-top: 30px;
  color: #0f172a;
}

h2 {
  font-size: 20px;
  margin-top: 25px;
  color: #1e293b;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===============================
   DIVIDERS
=============================== */
hr {
  border: none;
  height: 1px;
  background: #e5e7eb;
  margin: 25px 0;
}

/* ===============================
   CARDS (FORMS & TABLES)
=============================== */
form,
table {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.06);
}

/* ===============================
   FORMS
=============================== */
label {
  font-size: 13px;
  color: #475569;
}

input[type="text"],
input[type="password"],
select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 14px;
}

input:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

/* ===============================
   BUTTONS
=============================== */
button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 9px 15px;
  font-size: 14px;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

/* ===============================
   TABLES
=============================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

thead {
  background: #f1f5f9;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

tbody tr:hover {
  background: #f8fafc;
}

/* ===============================
   STATUS TEXT
=============================== */
td:nth-child(3) {
  font-weight: 600;
}

td:nth-child(3):contains("Open") {
  color: #16a34a;
}

td:nth-child(3):contains("Closed") {
  color: #dc2626;
}

/* ===============================
   ACTION LINKS → BUTTON STYLE
=============================== */
td a {
  display: inline-block;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #1e293b;
  margin-right: 6px;
}

td a:hover {
  background: #e2e8f0;
  text-decoration: none;
}

/* ===============================
   PRINT BUTTONS (SPECIAL)
=============================== */
a[href*="print-test"],
a[href*="print-test-memo"] {
  background: #ecfeff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

a[href*="print-test"]:hover,
a[href*="print-test-memo"]:hover {
  background: #cffafe;
}

/* ===============================
   NAV LINKS
=============================== */
a[href*="dashboard"],
a[href*="logout"] {
  font-size: 13px;
  color: #475569;
}

input[type="email"],
input[name="student_number"],
input[name="fullname"]{
  width: 100% ;

  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 14px;

}

input[type="text"],
input[type="password"],
input[type="email"],

select {
  max-width: 420px ;
}

input[name="student_number"],
input[name="fullname"],
 #cls{
 
  max-width: 300px ;

}



body.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

body.login-page form {
  width: 100%;
  max-width: 420px;
}


h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 18px;
  font-weight: 600;
  color: #334155;
}


.dashboard-info {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
  margin-top: 20px;
}

a[href*="logout"]
 {
  position: absolute;
  top: 20px;
  right: 30px;
  background: #29488c;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 15px;
}

a[href="/superadmin/add-school"], a[href="/superadmin/dashboard.html"] {
  position: relative;
  background: #29488c;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  left:25px;
  top: -20px;
}


form.inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

table td {
  padding: 8px 12px;
}

.section-label {
  font-size: 13px;
  color: #475569;
  margin-bottom: 6px;
}

.edit-form {
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
}

a.back-link {
  display: inline-block;
  margin-bottom: 15px;
  font-size: 13px;
  color: #475569;
}


.question-form input,
.question-form select {
  max-width: 320px;
}

.question-form button {
  padding: 6px 10px;
  font-size: 13px;
}


.center-actions {
  text-align: center;
  margin: 20px 0;
}

.marking-box {
  background: #ffffff;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 12px;
}

a[href="/teacher/classes.html"],
a[href="/teacher/students.html"],
a[href="/teacher/tests.html"]{
  color:#fff;
  
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  
  background: #40a88c;
  font-size: 14px;
  margin-left:35px;
  
}
#printClassLink{
  position :relative;
  padding: 10px;
  background: orange;
  float :left;
  border-radius: 5px;
  color:#fff;
}

a[href="/teacher/dashboard.html"]
{
 position: relative;
  top: 25px;
  margin:20px;
  margin-left:35px;

  background: #29488c;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 15px;
}

#cls{
  position: relative;
  top:15px;
  left:35px;

}

form[action="/teacher/students/add"]{
  position: relative;
  top: 20px;
  
}
table{
  position: relative;
  
}


body #question_setup_page input[type="text"]{
  color:red;
}

.instruction {
  white-space: pre-wrap;
  margin: 6px 0 12px;
  font-style: italic;
  color: #334155;
}

.back-link {
  display: inline-block;
  margin-top: 15px;
  font-size: 16px;
  color: #475569;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
  color: #2563eb;
}





/* <a class="back-link" href="...">← Back</a>  */