/* ════════════════════════════════════════════
   OFFA 2026 SUMMER SCHOOL — Navy & Gold Theme
   ════════════════════════════════════════════ */

:root {
    --navy:        #0b1829;
    --navy-2:      #0f2240;
    --navy-3:      #162d50;
    --navy-4:      #1e3a6e;
    --gold:        #c9a84c;
    --gold-2:      #e2c278;
    --gold-3:      #f5dfa0;
    --gold-pale:   #fdf3d7;
    --white:       #ffffff;
    --bg:          #f0f4f9;
    --text:        #1a2332;
    --muted:       #6b7a8d;
    --border:      #dce4ef;
    --success:     #059669;
    --danger:      #dc2626;
    --warning-bg:  #fffbeb;
    --warning-txt: #92400e;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.navbar {
    background: var(--navy);
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.navbar .brand {
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: .3px;
}
.navbar .brand .nav-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--navy-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    overflow: hidden;
}
.navbar .brand .nav-logo img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}
.navbar .brand span { color: var(--white); }
.navbar .brand span span { color: var(--gold); }
.navbar nav { display: flex; align-items: center; gap: 4px; }
.navbar nav a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    margin-left: 4px;
    font-size: .88rem;
    padding: 7px 14px;
    border-radius: 6px;
    transition: all .15s;
    font-weight: 500;
}
.navbar nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.navbar nav span {
    color: rgba(255,255,255,.45);
    font-size: .82rem;
    padding: 0 8px;
}

/* ══════════════════════════════
   LOGIN PORTAL
══════════════════════════════ */
.login-portal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    position: relative;
    overflow: hidden;
    padding: 20px;
}
.login-portal::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,.08);
    top: -200px; right: -200px;
    pointer-events: none;
}
.login-portal::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,.06);
    bottom: -150px; left: -150px;
    pointer-events: none;
}
.portal-box {
    background: var(--navy-2);
    border: 1px solid rgba(201,168,76,.25);
    border-radius: 20px;
    padding: 52px 46px;
    width: 100%;
    max-width: 470px;
    box-shadow: 0 28px 70px rgba(0,0,0,.5);
    position: relative;
    z-index: 1;
    text-align: center;
}
.portal-logo { margin: 0 auto 22px; }
.portal-logo img {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
}
.portal-logo .logo-placeholder {
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 3px dashed var(--gold);
    background: rgba(201,168,76,.08);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--gold); font-size: .7rem; gap: 4px;
    margin: 0 auto;
}
.portal-logo .logo-placeholder span { font-size: 2.2rem; }
.portal-school-name {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
    letter-spacing: .3px;
}
.portal-school-name em { color: var(--gold); font-style: normal; }
.portal-tagline {
    color: rgba(255,255,255,.4);
    font-size: .78rem;
    margin-bottom: 32px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.portal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}
.portal-divider span { color: rgba(255,255,255,.3); font-size: .78rem; white-space: nowrap; }
.portal-divider::before,
.portal-divider::after {
    content: ''; flex: 1; height: 1px;
    background: rgba(201,168,76,.2);
}
.portal-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 26px;
}
.portal-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    transition: transform .15s, box-shadow .15s;
    border: 1.5px solid transparent;
}
.portal-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.portal-btn .btn-ico {
    font-size: 1.4rem;
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.portal-btn .btn-text { text-align: left; }
.portal-btn .btn-text small {
    display: block; font-weight: 400;
    font-size: .75rem; opacity: .75; margin-top: 2px;
}
.portal-btn-admin {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.portal-btn-admin .btn-ico { background: rgba(0,0,0,.12); }
.portal-btn-admin:hover { background: var(--gold-2); }
.portal-btn-staff {
    background: transparent;
    color: var(--white);
    border-color: rgba(201,168,76,.4);
}
.portal-btn-staff .btn-ico { background: rgba(201,168,76,.1); }
.portal-btn-staff:hover { background: rgba(201,168,76,.07); border-color: var(--gold); }
.portal-apply-link {
    font-size: .86rem;
    color: rgba(255,255,255,.4);
}
.portal-apply-link a {
    color: var(--gold); font-weight: 700; text-decoration: none;
}
.portal-apply-link a:hover { text-decoration: underline; }
.portal-footer-text {
    margin-top: 28px;
    font-size: .74rem;
    color: rgba(255,255,255,.2);
    line-height: 1.8;
}
.portal-footer-text a { color: rgba(201,168,76,.4); text-decoration: none; }
.portal-contacts {
    margin-top: 20px;
    padding: 14px 18px;
    border: 1px solid rgba(201,168,76,.2);
    border-radius: 12px;
    background: rgba(201,168,76,.05);
    display: flex; flex-direction: column; gap: 8px;
}
.contact-row {
    display: flex; align-items: center; gap: 8px;
    font-size: .82rem; flex-wrap: wrap; justify-content: center;
}
.contact-role {
    color: var(--gold); font-weight: 700;
    font-size: .72rem; text-transform: uppercase;
    letter-spacing: .5px; min-width: 90px; text-align: right;
}
.contact-row a {
    color: rgba(255,255,255,.7); text-decoration: none; font-size: .85rem;
}
.contact-row a:hover { color: var(--white); }

/* ══════════════════════════════
   FORMS
══════════════════════════════ */
.form-wrap {
    max-width: 520px;
    margin: 50px auto;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 4px 28px rgba(0,0,0,.1);
    padding: 42px 46px;
    border-top: 4px solid var(--gold);
}
.form-wrap h2 {
    text-align: center;
    color: var(--navy);
    margin-bottom: 6px;
    font-size: 1.5rem;
    font-weight: 800;
}
.form-wrap p.sub {
    text-align: center;
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: .86rem;
    color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea,
.apply-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: .95rem;
    background: #fafbfd;
    color: var(--text);
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.apply-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,.18);
    background: var(--white);
}
.form-group input:disabled { background: #f0f0f0; cursor: not-allowed; }
.form-group textarea { resize: vertical; min-height: 80px; }
.btn-submit {
    width: 100%;
    padding: 13px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .4px;
    transition: background .2s, box-shadow .2s, transform .15s;
}
.btn-submit:hover {
    background: var(--navy-3);
    box-shadow: 0 4px 18px rgba(11,24,41,.3);
    transform: translateY(-1px);
}
.form-footer {
    text-align: center;
    margin-top: 16px;
    font-size: .88rem;
    color: var(--muted);
}
.form-footer a { color: var(--gold); font-weight: 700; text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }

/* Section labels inside forms */
.section-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 700;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold-pale);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ══════════════════════════════
   ALERTS
══════════════════════════════ */
.alert {
    padding: 13px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: .9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: var(--gold-pale); color: var(--warning-txt); border: 1px solid #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ══════════════════════════════
   DASHBOARD LAYOUT
══════════════════════════════ */
.dashboard {
    display: flex;
    min-height: calc(100vh - 67px);
}
.sidebar {
    width: 256px;
    background: var(--navy);
    color: var(--white);
    padding: 22px 0;
    flex-shrink: 0;
    border-right: 1px solid rgba(201,168,76,.12);
}
.sidebar .menu-label {
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    padding: 14px 22px 5px;
    opacity: .75;
}
.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .91rem;
    font-weight: 500;
    transition: background .15s, color .15s, border-color .15s;
    border-left: 3px solid transparent;
}
.sidebar a:hover {
    background: rgba(201,168,76,.07);
    color: var(--white);
    border-left-color: rgba(201,168,76,.4);
}
.sidebar a.active {
    background: rgba(201,168,76,.12);
    color: var(--gold-2);
    border-left-color: var(--gold);
    font-weight: 700;
}
.sidebar a .icon { font-size: 1rem; }
.main-content {
    flex: 1;
    padding: 34px 38px;
    overflow-y: auto;
    background: var(--bg);
}
.page-title {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 28px;
    font-weight: 800;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--gold-pale);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ══════════════════════════════
   STAT CARDS
══════════════════════════════ */
.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    padding: 22px 24px;
    flex: 1 1 180px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-left: 4px solid var(--gold);
    transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.1); transform: translateY(-2px); }
.stat-card .stat-icon {
    font-size: 1.8rem;
    width: 54px; height: 54px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; flex-shrink: 0;
}
.stat-icon.blue   { background: #e8f0fe; }
.stat-icon.green  { background: #e6f4ea; }
.stat-icon.orange { background: var(--gold-pale); }
.stat-icon.red    { background: #fce8e6; }
.stat-card .stat-info h3 { font-size: 1.8rem; color: var(--navy); font-weight: 800; line-height: 1; }
.stat-card .stat-info p  { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ══════════════════════════════
   TABLES
══════════════════════════════ */
.table-wrap {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    overflow: hidden;
    border: 1px solid var(--border);
}
.table-wrap .table-header {
    padding: 18px 22px;
    border-bottom: 2px solid var(--gold-pale);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fdf8ee, var(--white));
}
.table-wrap .table-header h3 {
    font-size: 1rem;
    color: var(--navy);
    font-weight: 700;
}
table { width: 100%; border-collapse: collapse; }
thead th {
    background: var(--navy);
    color: var(--gold-2);
    text-align: left;
    padding: 13px 18px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
}
tbody td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
    color: var(--text);
    vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--gold-pale); }

/* ══════════════════════════════
   BADGES
══════════════════════════════ */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .3px;
}
.badge-pending  { background: var(--gold-pale); color: var(--warning-txt); border: 1px solid #fde68a; }
.badge-approved { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.badge-rejected { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ══════════════════════════════
   ACTION BUTTONS
══════════════════════════════ */
.btn-action {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin-right: 4px;
    transition: opacity .15s, transform .1s;
}
.btn-action:hover { opacity: .85; transform: translateY(-1px); }
.btn-approve { background: #059669; color: #fff; }
.btn-reject  { background: #dc2626; color: #fff; }
.btn-view    { background: var(--navy); color: var(--gold-2); }
.btn-approve:hover { background: #047857; }
.btn-reject:hover  { background: #b91c1c; }
.btn-view:hover    { background: var(--navy-3); }

/* ══════════════════════════════
   DEPARTMENT TAGS
══════════════════════════════ */
.dept-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: .74rem;
    font-weight: 700;
    text-transform: capitalize;
}
.dept-primary   { background: #dbeafe; color: #1e3a8a; }
.dept-secondary { background: #d1fae5; color: #065f46; }
.dept-junior    { background: var(--gold-pale); color: var(--warning-txt); }

/* ══════════════════════════════
   STAFF/ADMIN DETAIL TABLE
══════════════════════════════ */
.table-wrap table tbody td strong {
    color: var(--navy);
    font-weight: 700;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
    background: var(--navy);
    color: rgba(255,255,255,.3);
    text-align: center;
    padding: 20px;
    font-size: .82rem;
    border-top: 3px solid var(--gold);
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 768px) {
    .sidebar { width: 200px; }
    .main-content { padding: 20px 16px; }
    .form-wrap { padding: 28px 20px; margin: 20px auto; }
    .stats { gap: 12px; }
    .stat-card { flex: 1 1 140px; padding: 16px; }
    thead { display: none; }
    tbody td { display: block; padding: 8px 16px; }
    tbody td::before { content: attr(data-label); font-weight: 700; color: var(--navy); margin-right: 8px; }
}
