:root {
    font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
    color: #253247;
    background-color: #f5f7fb;
    font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: #1766ad; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    padding: 15px clamp(16px, 4vw, 48px);
    border-bottom: 1px solid #e4e9f2;
}

.brand-link { display: flex; align-items: center; gap: 11px; color: inherit; }
.brand-link:hover { text-decoration: none; }
.brand-icon, .large-brand {
    display: grid;
    place-items: center;
    background: #155eab;
    color: #fff;
    border-radius: 10px;
    font-weight: 750;
}
.brand-icon { width: 44px; height: 44px; font-size: 14px; }
.brand-text { display: grid; gap: 0; line-height: 1.35; }
.brand-text strong { font-size: 15px; color: #1a3452; }
.brand-text small { font-size: 12px; color: #66758a; }
.student-link { font-size: 14px; font-weight: 600; }

.main-content { max-width: 1180px; margin: 0 auto; padding: 38px 24px 65px; min-height: calc(100vh - 159px); }
h1 { margin: 7px 0 8px; font-size: clamp(26px, 3vw, 33px); line-height: 1.2; color: #142d4d; }
h2 { margin: 0 0 7px; font-size: 20px; color: #163b64; }
p { margin: 0; color: #68778a; }
.eyebrow { font-size: 11px; letter-spacing: 1.4px; color: #2473bf; font-weight: 800; }
.heading-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 30px; }

.panel { border: 1px solid #e0e7f0; background: #fff; border-radius: 14px; box-shadow: 0 6px 28px rgba(25, 54, 87, .04); }
.panel-heading { display: flex; justify-content: space-between; padding: 24px 26px 15px; }

.btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    padding: 10px 17px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: #1767b3; color: #fff; border-color: #1767b3; }
.btn-primary:hover { background: #12518c; border-color: #12518c; }
.btn-outline { background: #fff; color: #19558c; border-color: #ccd9e8; }
.btn-outline:hover { background: #edf5fe; }
.btn-dark { background: #263e5c; color: #fff; border-color: #263e5c; }
.btn-dark:hover { background: #182a42; }
.btn-block { width: 100%; padding: 13px; }

.search-form { padding: 0 26px 24px; }
.search-form label, .field label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 8px; color: #344961; }
.search-controls { display: flex; gap: 9px; }
input[type="text"], input[type="password"] {
    width: 100%;
    border: 1px solid #cbd8e8;
    background: #fff;
    color: #1e3047;
    border-radius: 8px;
    padding: 11px 13px;
    outline: none;
    font-size: 14px;
    min-width: 0;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #2c86d6; outline-offset: 2px; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
thead { background: #f6f9fd; }
th { color: #536983; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; }
th, td { padding: 16px 26px; border-bottom: 1px solid #edf1f6; }
th:last-child, td:last-child { text-align: right; }
.user-name { font-weight: 650; color: #283c56; }
.status { padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status.confirmed { background: #e5f5ed; color: #19754b; }
.status.unconfirmed { background: #fff3de; color: #966212; }
.empty { text-align: center !important; padding: 40px 18px; color: #76869a; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 25px; font-size: 13px; color: #6d7c8e; }
.pagination-buttons { display: flex; gap: 8px; }
.footnote { margin-top: 16px; font-size: 12px; }

.notice { border-radius: 10px; padding: 15px 18px; margin: 15px 0 25px; font-size: 13px; }
.notice.warning { background: #fff8e8; color: #775018; border: 1px solid #f2d89b; }
.notice.error { background: #fff0f0; color: #9d2c2c; border: 1px solid #f0c1c1; }
.inline-form { display: inline-flex; margin-left: 14px; }

.login-layout { max-width: 450px; margin: 15px auto 50px; }
.login-heading { text-align: center; padding: 20px 0 27px; }
.large-brand { width: 64px; height: 64px; margin: 0 auto 16px; font-size: 19px; }
.login-heading h1 { margin-top: 13px; }
.login-panel { padding: 30px; }
.login-panel h2 { margin-bottom: 5px; }
.login-panel > p { margin-bottom: 25px; font-size: 13px; }
.field { margin-bottom: 21px; }
.login-footnote { margin-top: 23px; font-size: 12px; text-align: center; }

.confirm-container { max-width: 630px; margin: 25px auto; }
.back-link { display: inline-block; font-size: 13px; margin-bottom: 20px; }
.confirm-panel { padding: 30px; }
.confirm-panel p { margin: 12px 0 21px; }
.details { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 17px 0; border-top: 1px solid #edf1f6; border-bottom: 1px solid #edf1f6; }
.details dt { font-size: 13px; color: #7a8795; }
.details dd { margin: 0; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.actions { display: flex; gap: 10px; }
.footer { text-align: center; color: #8b97a6; font-size: 12px; padding: 20px; }

@media (max-width: 700px) {
    .main-content { padding: 25px 12px 45px; }
    .topbar { padding: 12px; }
    .brand-text strong { font-size: 13px; }
    .brand-text small, .student-link { font-size: 11px; }
    .heading-row { align-items: flex-start; }
    .heading-row > form { padding-top: 7px; }
    .panel-heading, .search-form { padding-left: 17px; padding-right: 17px; }
    .search-controls { flex-wrap: wrap; }
    .search-controls input { flex-basis: 100%; }
    th, td { padding: 13px 16px; }
    .pagination { padding: 14px; }
    .login-panel, .confirm-panel { padding: 22px; }
    .notice .inline-form { display: block; margin: 12px 0 0; }
}

/* User deletion controls */
.row-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.btn-danger-outline { background: #fff; color: #a12c33; border-color: #e9b4b8; }
.btn-danger-outline:hover { background: #fff0f0; }
.btn-danger { background: #b42330; color: #fff; border-color: #b42330; }
.btn-danger:hover { background: #941d29; border-color: #941d29; }
.danger-text { color: #a12c33; }
.delete-confirm-identity { font-family: Consolas, monospace; color: #702632; font-size: 15px; font-weight: 700; margin: 8px 0 12px; overflow-wrap: anywhere; }
.notice.success { background: #ebf8f0; border: 1px solid #b6dfc6; color: #18643c; }
@media (max-width: 700px) {
    .row-actions { flex-wrap: wrap; }
    .row-actions .btn { flex-grow: 1; }
}
