/* UpLeaders projects admin */
:root { --navy: #0F2D52; --deep: #0B2140; --gold: #F5A11C; --ink: #1F2937; --muted: #5A6B82; --line: #E3E7EE; --bg: #F4F7FB; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Montserrat, Arial, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; }
.adm-top { display: flex; align-items: center; gap: 18px; padding: 14px 28px; background: var(--deep); color: #fff; }
.adm-logo { height: 30px; }
.adm-top-title { font-weight: 600; opacity: 0.8; }
.adm-user { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.adm-main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 80px; }
.adm-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-bar.is-small { margin-bottom: 10px; }
.adm-bar h1 { margin: 0; font-size: 26px; color: var(--navy); }
.adm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.adm-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.adm-card h2 { margin: 0 0 14px; font-size: 18px; color: var(--navy); }
.adm-bar.is-small h2 { margin: 0; }
.adm-center { max-width: 440px; margin: 60px auto; text-align: center; }
.adm-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 10px 20px; font: 700 14px Montserrat, Arial;
  background: var(--gold); color: var(--deep); cursor: pointer; text-decoration: none; }
.adm-btn.is-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.adm-top .adm-btn.is-ghost { color: #fff; }
.adm-btn.is-small { padding: 6px 14px; font-size: 13px; }
.adm-btn.is-danger { background: #B42318; color: #fff; }
.adm-link { border: 0; background: none; color: var(--navy); font: 600 13px Montserrat, Arial; text-decoration: underline; cursor: pointer; padding: 0; }
.adm-table { width: 100%; border-collapse: collapse; }
.adm-table th { text-align: left; font-size: 13px; color: var(--muted); padding: 8px; border-bottom: 2px solid var(--line); }
.adm-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-right { text-align: right; }
.adm-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--line); }
.adm-pill.is-on { background: var(--gold); color: var(--deep); }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.adm-grid.is-tight { margin-bottom: 10px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.adm-check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
input, textarea { font: 15px Montserrat, Arial; color: var(--ink); border: 1px solid #CBD3DE; border-radius: 8px; padding: 9px 11px; width: 100%; background: #fff; }
input[type=checkbox] { width: 18px; height: 18px; }
input[type=file] { border: 0; padding: 0; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.adm-tabs { display: flex; gap: 6px; }
.adm-tabs button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 16px; font: 600 13px Montserrat, Arial; cursor: pointer; }
.adm-tabs button.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.adm-cover { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.adm-cover img { width: 240px; aspect-ratio: 3/2; object-fit: cover; border-radius: 10px; background: var(--bg); }
.adm-hint { font-size: 13px; color: var(--muted); }
.adm-component { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.adm-wp td input:not([type=checkbox]) { padding: 6px 8px; font-size: 14px; }
.adm-wp .is-code { width: 64px; }
.adm-wp th, .adm-wp td { text-align: center; }
.adm-wp th:nth-child(2), .adm-wp th:nth-child(3) { text-align: left; }
.adm-budget input { padding: 6px 8px; }
.adm-files { padding-left: 18px; }
.adm-files li { margin-bottom: 6px; }
.adm-msg { padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.adm-msg.is-ok { background: #E8F5EC; color: #1E6B3A; }
.adm-msg.is-error, .adm-error { background: #FDECEA; color: #B42318; padding: 10px 14px; border-radius: 10px; }
@media (max-width: 720px) { .adm-top { flex-wrap: wrap; } .adm-wp { display: block; overflow-x: auto; } }

[hidden] { display: none !important; }

/* login screen */
body:has(#login:not([hidden])) .adm-top { display: none; }
body:has(#login:not([hidden])) { background: linear-gradient(135deg, #24609E 0%, #0B2140 100%); min-height: 100vh; }
body:has(#login:not([hidden])) .adm-main { padding: 0; max-width: none; }
.adm-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.adm-login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 40px 36px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }
.adm-login-logo { height: 44px; margin-bottom: 26px; }
.adm-login-card h1 { margin: 0 0 10px; font-size: 22px; color: var(--navy); }
.adm-login-card > p { color: var(--muted); line-height: 1.6; margin: 0 0 26px; }
.adm-google { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px 18px; border: 1.5px solid #CBD3DE;
  border-radius: 12px; background: #fff; font: 700 15px Montserrat, Arial; color: var(--ink); cursor: pointer; }
.adm-google:hover { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(245, 161, 28, 0.35); }
.adm-google svg { width: 22px; height: 22px; }
.adm-login-card .adm-error { margin-top: 16px; text-align: left; }
.adm-login-note { font-size: 13px; color: var(--muted); margin: 22px 0 0 !important; }
.adm-login-back { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--navy); }
.adm-google:disabled { opacity: 0.6; cursor: wait; }

/* email and password form */
.adm-login-form { text-align: left; }
.adm-login-form label { margin-bottom: 14px; }
.adm-login-submit { width: 100%; justify-content: center; padding: 13px 18px; font-size: 15px; margin-top: 4px; }
.adm-login-submit:disabled { opacity: 0.6; cursor: wait; }
.adm-forgot { display: block; margin: 14px auto 0; }
.adm-login-card .adm-msg { margin-top: 16px; text-align: left; font-size: 14px; }

/* signed documents */
.adm-section-gap { margin-top: 36px; }
.adm-docs td small { color: var(--muted); }
.adm-upload { display: inline-flex; align-items: center; cursor: pointer; margin: 0; flex-direction: row; color: inherit; font-weight: inherit; }
.adm-upload input { display: none; }
.adm-docs .adm-actions { justify-content: flex-end; }
