 :root{--navy:#10294b;--green:#16743b;--gold:#ef9a23}
body{background:#f4f7fb;color:#18283d;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.topbar{background:linear-gradient(110deg,#0c2445,#145b37);box-shadow:0 5px 20px #10294b20}
.navbar-brand img{width:48px;height:48px;object-fit:contain;background:#fff;border-radius:50%;padding:2px}
.navbar-brand{font-weight:750;line-height:1.1}.navbar-brand small{font-size:.68rem;font-weight:500;color:#dce9e2}
.hero{background:linear-gradient(120deg,#10294b 0%,#145b37 100%);color:white;border-radius:24px;padding:clamp(24px,5vw,54px);position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;width:300px;height:300px;border:35px solid #ffffff12;border-radius:50%;right:-70px;top:-120px}
.hero-logo{width:94px;height:94px;object-fit:contain;background:#fff;border-radius:50%;padding:4px}
.stat-card,.panel{background:#fff;border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 8px 24px #152c4710}
.stat-card{padding:20px;height:100%}.stat-value{font-size:2rem;font-weight:800;line-height:1.2}.stat-label{font-size:.85rem;color:#64748b}
.coordinator-row{background:#fff;border:1px solid #e5eaf1;border-radius:18px;padding:16px;display:flex;gap:18px;align-items:center;box-shadow:0 5px 18px #10294b0b}
.coordinator-photo{width:112px;height:144px;object-fit:cover;border-radius:12px;background:#edf1f5;flex:0 0 auto}
.coordinator-info{flex:1;min-width:0}.coordinator-name{font-size:1.15rem;font-weight:800;color:#10294b}
.photo-action{width:44px;height:44px;border-radius:13px;background:#eaf7ef;color:#16743b;display:grid;place-items:center;text-decoration:none;font-size:1.25rem}
.vacant-icon{width:112px;height:144px;border-radius:12px;background:#fff5e5;color:#c27b12;display:grid;place-items:center;font-size:2.3rem;flex:0 0 auto}
.pill{border-radius:50px;padding:5px 11px;font-size:.75rem;font-weight:700}
.footer{background:#10294b;color:#dce6f1}
.form-control,.form-select{min-height:44px;border-radius:11px}
.btn{border-radius:11px;font-weight:650}.section-title{font-weight:800;color:#10294b}
@media(max-width:575px){.coordinator-row{gap:11px;padding:11px;align-items:flex-start}.coordinator-photo,.vacant-icon{width:82px;height:108px}.coordinator-name{font-size:1rem}.coordinator-info .small{font-size:.78rem}.photo-action{width:36px;height:36px}}

.login-wrap{min-height:calc(100vh - 190px);display:flex;align-items:center;justify-content:center}
.login-card{width:100%;max-width:560px;background:#fff;border:1px solid #e5ebf1;border-radius:24px;padding:clamp(22px,4vw,38px);box-shadow:0 18px 55px #10294b16}
.login-brand img{width:104px;height:104px;object-fit:contain;margin-bottom:12px}
.login-brand .eyebrow{font-size:.72rem;font-weight:800;letter-spacing:.12em;color:#d28a0c}
.login-brand h1{font-size:clamp(1.35rem,4vw,1.8rem);font-weight:850;color:#10294b;margin:.35rem 0}
.login-brand p{color:#64748b;margin-bottom:24px}
.login-types{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.login-type{position:relative;cursor:pointer}
.login-type input{position:absolute;opacity:0;pointer-events:none}
.login-type span{height:100%;min-height:100px;border:1px solid #dfe7ef;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:5px;transition:.15s}
.login-type i{font-size:1.35rem;color:#16743b}
.login-type b{color:#17324f}.login-type small{color:#718096;font-size:.76rem}
.login-type input:checked+span{border:2px solid #16743b;background:#f0f8f2;box-shadow:0 0 0 3px #16743b12}
.login-type-admin{grid-column:1/-1}.login-type-admin span{min-height:76px;flex-direction:row;align-items:center}.login-type-admin small{margin-left:auto}
.pin-input{height:52px;font-size:1.15rem;letter-spacing:.2em}
.login-foot{font-size:.72rem;color:#8290a1;margin-top:22px}

/* Public registration form refinements */
.registration-form .form-label{font-weight:650;color:#24364b}
.union-choice{border-color:#cbd5e1}
.union-designation{background:#fbfdff}
#mandal_id:disabled{background-color:#f1f5f9;color:#64748b}

/* vNext: prominent coordinator photo download */
.photo-download-btn{min-height:48px;padding:.7rem 1.1rem;font-weight:700;border-radius:.7rem;white-space:nowrap}
@media(max-width:576px){.photo-download-btn{width:100%;justify-content:center}}

/* Directory photo replacement controls */
.directory-photo-actions{min-width:190px}
.photo-reupload-btn{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-weight:700}
.reupload-form{margin:0}
@media(max-width:575px){.directory-photo-actions{width:100%;min-width:0}.directory-photo-actions .photo-download-btn,.directory-photo-actions .photo-reupload-btn{width:100%}}

/* Equal-size coordinator directory actions */
.directory-photo-actions{width: min(100%, 355px); min-width: 230px;}
.directory-action-btn{width:100%; min-height:48px; display:flex; align-items:center; justify-content:center; font-weight:700; border-radius:.7rem; white-space:nowrap;}
.directory-photo-actions form{width:100%;}
.directory-photo-actions .directory-action-btn{width:100%;}
@media(max-width:575px){.directory-photo-actions{width:100%;min-width:0}.directory-action-btn{width:100%;}}

/* Sortable tables */
.sortable-th{cursor:pointer;user-select:none;white-space:nowrap}
.sortable-th:after{content:"\2195";opacity:.35;margin-left:6px;font-size:.8em}
.sortable-th[data-dir="asc"]:after{content:"\25B2";opacity:1;color:#16743b}
.sortable-th[data-dir="desc"]:after{content:"\25BC";opacity:1;color:#16743b}

/* Pending / info numbers were Bootstrap's pale yellow/cyan and almost invisible on white cards */
.text-warning{color:#b45309!important}
.text-info{color:#0e7490!important}
