/* ==========================================================================
   Waterford-Kamhlaba Admissions – refreshed style.css
   Clean, readable, mobile-friendly. No framework required.
   ========================================================================== */

:root{
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #13213c;
  --muted: #5b6b84;
  --border: #d9e2ef;

  --primary: #2f86c6;
  --primary-dark: #2471ab;

  --ok-bg: #e6ffea;
  --ok-bd: #b6f5c0;
  --err-bg: #ffe3e3;
  --err-bd: #ffb3b3;

  --shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
  --radius: 14px;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}

a{
  color: var(--primary-dark);
  text-decoration: none;
}
a:hover{ text-decoration: underline; }

.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 18px 48px;
}

.header{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.header img{
  height: 56px;
  width: auto;
  border-radius: 10px;
}

h1{
  font-size: 1.7rem;
  margin: 0;
  letter-spacing: -0.2px;
}

h2{
  font-size: 1.25rem;
  margin: 26px 0 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

h3{
  font-size: 1.05rem;
  margin: 16px 0 8px;
}

p{ margin: 8px 0 12px; color: var(--text); }

.help, .muted{
  color: var(--muted);
  font-size: 0.95rem;
}

/* Cards / sections */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 6px;
}

.section{
  margin-top: 16px;
}

/* Form layout */
form{
  margin: 0;
}

.row{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.col{
  flex: 1 1 320px;
  min-width: 260px;
}

label{
  display: block;
  margin: 12px 0 6px;
  font-weight: 650;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
input[type="tel"],
select,
textarea{
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 1rem;
  background: #fff;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

textarea{
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus{
  border-color: rgba(47,134,198,0.65);
  box-shadow: 0 0 0 4px rgba(47,134,198,0.12);
}

/* File upload blocks */
.docbox{
  border: 1px dashed rgba(47,134,198,0.45);
  background: rgba(47,134,198,0.04);
  border-radius: 14px;
  padding: 14px 14px 12px;
  margin: 12px 0;
}

.docbox h3{
  margin: 0 0 6px;
}

.current{
  margin: 6px 0 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

input[type="file"]{
  width: 100%;
  padding: 10px 0 2px;
}

/* Buttons */
.actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 6px;
}

button,
.btn{
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 70ms ease, background 120ms ease, box-shadow 120ms ease;
}

button.primary,
.btn.primary{
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(47,134,198,0.18);
}

button.primary:hover,
.btn.primary:hover{
  background: var(--primary-dark);
}

button:active,
.btn:active{
  transform: translateY(1px);
}

button.secondary,
.btn.secondary{
  background: #eef3fb;
  color: var(--text);
  border: 1px solid var(--border);
}

button.secondary:hover,
.btn.secondary:hover{
  background: #e6eefb;
}

/* Flash messages */
.flash{
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0;
  border: 1px solid var(--border);
  background: #fff;
}

.flash.success{
  background: var(--ok-bg);
  border-color: var(--ok-bd);
}

.flash.error{
  background: var(--err-bg);
  border-color: var(--err-bd);
}

/* Tables (admin pages often use these) */
table{
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

th, td{
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.95rem;
}

th{
  background: #f1f6ff;
  font-weight: 700;
}

tr:hover td{
  background: rgba(47,134,198,0.04);
}

/* Small screens */
@media (max-width: 560px){
  .container{ padding: 16px 14px 44px; }
  h1{ font-size: 1.45rem; }
  .header img{ height: 44px; }
  button, .btn{ width: 100%; justify-content: center; }
}
/* =========================================================
   Global header centering + responsive logo scaling
   Applies to all pages using the .header block
   ========================================================= */

.header{
  flex-direction: column;     /* logo on top, title underneath */
  align-items: center;         /* horizontal centering */
  text-align: center;
  gap: 10px;
}

.header img{
  height: 64px;               /* desktop default */
  width: auto;
  max-width: 100%;
}

/* Mobile: slightly smaller logo + tighter spacing */
@media (max-width: 560px){
  .header{
    gap: 8px;
  }
  .header img{
    height: 44px;             /* mobile logo height */
  }
  .header h1{
    font-size: 1.35rem;       /* reduce heading size slightly */
  }
}/* =========================================================
   Admin detail view – improve readability with margins
   ========================================================= */

.admin-content,
.admin-detail,
.admin-application {
  margin-left: 18px;
  margin-right: 18px;
}

/* Slightly tighter on small screens */
@media (max-width: 560px){
  .admin-content,
  .admin-detail,
  .admin-application {
    margin-left: 12px;
    margin-right: 12px;
  }
}
