/* ====================================================================
   NGJCI Membership Portal — admin styles (loaded after style.css)
   ==================================================================== */
body.admin { background: #eef1f5; }

.admin-topbar {
    background: var(--navy); color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 22px; border-bottom: 3px solid var(--gold);
    position: sticky; top: 0; z-index: 10;
}
.admin-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.admin-brand .brand-mark {
    background: var(--gold); color: var(--navy); width: 40px; height: 40px;
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800;
}
.admin-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-nav a { color: #fff; text-decoration: none; font-size: 14px; padding: 7px 12px; border-radius: 6px; }
.admin-nav a:hover { background: rgba(255,255,255,.12); }
.admin-nav .logout { background: var(--gold); color: var(--navy); font-weight: 600; }
.admin-nav .logout:hover { background: var(--gold-dark); color: #fff; }
.admin-user { font-size: 13px; opacity: .9; padding: 0 6px; }

.admin-main { max-width: 1180px; margin: 0 auto; padding: 24px 22px 48px; }
.admin-footer { text-align: center; color: var(--muted); font-size: 12px; padding: 18px; }

/* ---- Login ---- */
.login-wrap { max-width: 380px; margin: 8vh auto; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 30px; }
.login-card h1 { text-align: center; margin-bottom: 4px; }
.login-card .sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 20px; }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat {
    background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px;
    box-shadow: var(--shadow);
}
.stat .num { font-size: 26px; font-weight: 800; color: var(--navy); }
.stat .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat.clickable { cursor: pointer; transition: border-color .15s; text-decoration: none; display: block; }
.stat.clickable:hover { border-color: var(--navy-light); }

/* ---- Toolbar ---- */
.toolbar {
    display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
    background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px;
    margin-bottom: 18px; box-shadow: var(--shadow);
}
.toolbar .field { margin: 0; }
.toolbar .grow { flex: 1; min-width: 180px; }

/* ---- Application table ---- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.list thead th { background: #f5f7fa; color: #44505f; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
table.list tbody tr:hover { background: #f7fafd; }
table.list a.ref { font-weight: 700; color: var(--navy); text-decoration: none; }
table.list a.ref:hover { text-decoration: underline; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px;
    text-decoration: none; color: var(--navy); font-size: 14px; background: #fff;
}
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- Detail view ---- */
.detail-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
    flex-wrap: wrap; margin-bottom: 18px;
}
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; }
.info-card h3 { margin: 0 0 12px; color: var(--navy); font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.doc-list li:last-child { border-bottom: 0; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 0 0 14px 18px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }
.timeline .t-date { font-size: 12px; color: var(--muted); }
.timeline .t-note { font-size: 13px; }

@media (max-width: 880px) {
    .detail-grid { grid-template-columns: 1fr; }
    .kv { grid-template-columns: 1fr; gap: 2px; }
    .kv dt { font-weight: 600; margin-top: 8px; }
}

/* ====================================================================
   ADMIN POLISH — softer cards, hovers, refined tables (matches public)
   ==================================================================== */
.admin-main > h1 { font-size: 24px; color: var(--navy); margin-bottom: 18px; }

/* Stat tiles */
.stat {
    border-radius: 12px; padding: 18px 20px;
    box-shadow: 0 1px 2px rgba(16, 32, 56, .05), 0 4px 12px rgba(16, 32, 56, .04);
    transition: transform .12s, box-shadow .12s, border-color .12s;
}
.stat .num { font-size: 28px; }
.stat.clickable:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(16, 32, 56, .10); border-color: #c7d2e0; }

/* Toolbar + table panel */
.toolbar { border-radius: 12px; }
.panel { border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 32, 56, .05), 0 6px 16px rgba(16, 32, 56, .04); }
table.list thead th { background: #f3f6fa; letter-spacing: .04em; }
table.list tbody tr { transition: background .12s; }
table.list tbody td { padding-top: 13px; padding-bottom: 13px; }

/* Detail view */
.detail-head {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 18px 22px; box-shadow: 0 1px 2px rgba(16, 32, 56, .05), 0 6px 16px rgba(16, 32, 56, .04);
}
.info-card {
    border-radius: 12px; padding: 20px 22px;
    box-shadow: 0 1px 2px rgba(16, 32, 56, .05), 0 6px 16px rgba(16, 32, 56, .04);
}
.info-card h3 { font-size: 15px; }

/* Login */
.login-card { border-radius: 14px; box-shadow: 0 12px 34px rgba(15, 42, 74, .14); padding: 32px; }
.login-card h1 { color: var(--navy); }

.badge { padding: 4px 11px; }
