:root{--navy:#101c3a;--navy2:#17264b;--blue:#315efb;--ink:#172033;--muted:#78839a;--line:#e8ecf3;--bg:#f4f6fb;--green:#16a36a}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'Hind Siliguri',Inter,sans-serif}button,input,textarea,select{font:inherit}.hidden{display:none!important}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:22px;background:radial-gradient(circle at 20% 10%,#dce7ff,transparent 35%),linear-gradient(135deg,#101c3a,#1c3970)}.login-card{background:#fff;width:min(440px,100%);padding:38px;border-radius:22px;box-shadow:0 25px 80px #06133355}.brand-mark{height:58px;width:58px;border-radius:17px;background:linear-gradient(135deg,#315efb,#6b8cff);display:grid;place-items:center;color:#fff;font-size:30px;font-weight:700;margin-bottom:18px}.brand-mark.small{height:40px;width:40px;border-radius:12px;font-size:22px;margin:0}.eyebrow{font:700 10px Inter,sans-serif;letter-spacing:2px;color:#5274dc;margin:0 0 8px}.login-card h1{font-size:25px;margin:0}.muted,.login-card>p{color:var(--muted)}label{display:block;font-weight:600;margin:17px 0 7px}input,textarea,select{width:100%;border:1px solid #dfe4ee;border-radius:10px;padding:12px 13px;margin-top:7px;outline:none;background:#fff}input:focus,textarea:focus,select:focus{border-color:#6685ff;box-shadow:0 0 0 3px #315efb18}.primary,.secondary,.logout,.view-site{border:0;border-radius:10px;padding:10px 16px;cursor:pointer;text-decoration:none;font-weight:600}.primary{background:var(--blue);color:#fff}.primary:hover{background:#244bd5}.wide{width:100%;margin-top:22px;padding:13px}.wide span{float:right}.secondary{background:#edf1fa;color:#35415b}.message{color:#d33b4b;min-height:20px}.back-link{color:#4766cf;text-decoration:none;font-size:14px}.shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:254px;background:var(--navy);color:#fff;padding:22px 15px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 25px;border-bottom:1px solid #ffffff19}.brand b{display:block;font-size:16px}.brand small{font:600 9px Inter;color:#91a5d5;letter-spacing:1.5px}.side-label{font-size:11px;color:#7f91bd;padding:22px 12px 8px}.sidebar nav{display:grid;gap:4px;overflow:auto}.sidebar nav button{border:0;background:transparent;color:#c4cee5;text-align:left;padding:11px 13px;border-radius:9px;cursor:pointer;font-size:14px}.sidebar nav button i{display:inline-block;width:25px;font-style:normal;color:#91aaff}.sidebar nav button:hover,.sidebar nav button.active{background:#315efb;color:#fff}.side-bottom{margin-top:auto;border-top:1px solid #ffffff19;padding:17px 8px 0;font-size:12px;color:#c3cee8}.side-bottom b{color:#35d39a;float:right}.side-bottom small{display:block;color:#7184b1;font:10px Inter;margin:8px 0 0}.online-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#35d39a;margin-right:6px}.main{margin-left:254px;padding:0 30px 40px}.topbar{height:82px;display:flex;align-items:center;gap:15px;border-bottom:1px solid var(--line);margin-bottom:26px}.topbar small{font:600 9px Inter;color:#929bb0;letter-spacing:1.2px}.topbar h2{margin:3px 0 0;font-size:20px}.top-actions{margin-left:auto;display:flex;gap:10px;align-items:center}.view-site{color:#40547c;background:#fff;border:1px solid var(--line);font-size:13px}.logout{background:#fff0f0;color:#c44848}.icon-btn{border:0;background:transparent;font-size:22px;cursor:pointer;color:#34415c}.topbar #menuBtn{display:none}.welcome{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(110deg,#1a2c56,#315efb);border-radius:18px;color:#fff;padding:26px 30px;margin-bottom:22px}.welcome .eyebrow{color:#a9bcff}.welcome h1{margin:0;font-size:25px}.welcome p:not(.eyebrow){margin:5px 0 0;color:#d1dcff}.welcome-date{font:700 10px Inter;letter-spacing:1px;color:#c5d2ff}.welcome-date b{display:block;color:#5df0b6;margin-top:8px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:22px}.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;display:flex;align-items:center;justify-content:space-between}.stat strong{display:block;font:800 26px Inter;color:#172b55}.stat span{color:#7b879c;font-size:13px}.stat i{font-style:normal;background:#eef2ff;color:#4568e8;border-radius:12px;padding:12px;font-size:20px}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;margin-bottom:18px}.panel-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:18px}.panel-head h3{margin:0;font-size:18px}.panel-head p{margin:3px 0 0;color:var(--muted);font-size:13px}.page-tiles{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.tile{border:1px solid var(--line);border-radius:12px;padding:15px 10px;cursor:pointer;transition:.2s}.tile:hover{border-color:#8da3ff;background:#f8f9ff;transform:translateY(-2px)}.tile i{display:block;font-style:normal;color:#4969e8;font-size:20px;margin-bottom:9px}.tile b{display:block;font-size:13px}.tile small{color:#8490a5;font-size:11px}.note-panel{background:#f8faff;border-color:#e1e8ff}.note-panel p{color:#6c7890;margin-bottom:0;font-size:13px}.table-tools{display:flex;gap:8px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px;white-space:nowrap}th,td{text-align:left;padding:12px 13px;border-bottom:1px solid var(--line);max-width:280px;overflow:hidden;text-overflow:ellipsis}th{background:#f7f8fc;color:#66728a;font-weight:700}td{color:#38445a}.actions{display:flex;gap:6px}.actions button{border:0;border-radius:7px;padding:6px 9px;cursor:pointer;background:#eef2ff}.actions button:last-child{background:#fff0f0}.modal{position:fixed;inset:0;background:#101a32a8;z-index:10;display:none;place-items:center;padding:16px}.modal.show{display:grid}.modal-card{width:min(650px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:17px;padding:22px}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-head h3{margin:0}.fields{display:grid;grid-template-columns:1fr 1fr;gap:4px 15px}.field{min-width:0}.field textarea{min-height:90px}.field:has(textarea){grid-column:1/-1}.field label{font-size:13px}.field input[type=checkbox]{width:auto}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.toast{position:fixed;bottom:22px;right:22px;background:#17264b;color:#fff;padding:12px 18px;border-radius:10px;display:none;z-index:20;max-width:calc(100vw - 44px);font-size:13px}@media(max-width:900px){.sidebar{transform:translateX(-100%);transition:.25s}.sidebar.open{transform:translateX(0)}.main{margin-left:0;padding:0 16px 30px}.topbar #menuBtn{display:block}.page-tiles{grid-template-columns:repeat(3,1fr)}}@media(max-width:560px){.topbar{height:70px}.topbar h2{font-size:17px}.view-site{display:none}.welcome{padding:20px;align-items:flex-start}.welcome h1{font-size:20px}.welcome-date{font-size:8px}.stats{grid-template-columns:repeat(2,1fr);gap:9px}.stat{padding:13px}.stat strong{font-size:21px}.page-tiles{grid-template-columns:repeat(2,1fr)}.panel{padding:15px}.panel-head{align-items:flex-start;flex-direction:column}.table-tools{width:100%}.table-tools button{flex:1;padding:9px 7px;font-size:12px}.fields{grid-template-columns:1fr}.field:has(textarea){grid-column:auto}.login-card{padding:27px}}
/* CMS editor controls */
#pageFilter{width:auto;min-width:150px;max-width:220px;margin:0;padding:9px 11px;font-size:13px}
.upload-label{display:block!important;margin:8px 0 0!important;padding:9px 11px;border:1px dashed #b9c7e8;border-radius:9px;background:#f8faff;color:#52658f;font-size:12px!important}
.upload-label input[type=file]{border:0;padding:5px 0;margin:3px 0 0;background:transparent;font-size:12px}
.tile{width:100%;text-align:left;background:#fff;color:inherit;font-family:inherit}
.tile:focus-visible{outline:3px solid #8ca5ff;outline-offset:2px}
button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:560px){#pageFilter{width:100%;max-width:none}.table-tools{flex-wrap:wrap}}
.cms-page-hint{margin:0 0 14px;padding:10px 13px;border-radius:9px;background:#eef4ff;color:#3e5689;font-size:13px;line-height:1.55}
.cms-page-hint.warning{background:#fff4e5;color:#8a4b12;border:1px solid #f2d4a7}
/* Page editor: clear, numbered cards in the same order as the public page */
#contentSearch{display:block;margin:0 0 16px;max-width:520px;background:#fff}
.content-card-mode table{display:none}
#contentCards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0 4px}
.content-card{min-width:0;border:1px solid #e2e8f3;border-radius:14px;padding:16px;background:#fff;box-shadow:0 3px 12px #1b2d5010}
.content-card-top{display:flex;align-items:center;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.content-number{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eaf0ff;color:#315efb;font:800 12px Inter,sans-serif}
.content-type{font-size:11px;font-weight:700;color:#24734f;background:#e8f8f0;padding:4px 9px;border-radius:20px}
.content-key{font:10px Inter,sans-serif;color:#929bb0;margin-left:auto;overflow-wrap:anywhere}
.content-card h4{font-size:15px;line-height:1.45;margin:0 0 9px;color:#1b2944}
.content-card-preview{min-height:48px;max-height:100px;overflow:auto;padding:10px 11px;border-radius:9px;background:#f6f8fc;color:#536078;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.content-value{display:block}
.content-card-actions{display:flex;gap:8px;margin-top:12px}
.content-card-actions button{font-size:12px;padding:8px 12px}
.content-empty{grid-column:1/-1;text-align:center;padding:35px 15px;border:1px dashed #cbd5e5;border-radius:12px;color:#7a879d}
@media(max-width:700px){#contentCards{grid-template-columns:1fr;gap:10px}.content-card{padding:14px}.content-card-actions button{flex:1}}

/* Friendly media editor + visitor analytics */
.media-upload-box{margin-top:8px;padding:12px;border:1px dashed #b9c8e8;border-radius:12px;background:#f8faff}
.media-upload-box .upload-label{display:block;margin:0;color:#294baf;font-size:13px;font-weight:700}
.media-upload-box .upload-label input{display:block;width:100%;margin-top:8px;background:#fff;border:1px solid #dce4f4}
.media-upload-box small{display:block;color:#74819a;font-size:11px;line-height:1.5;margin-top:6px}
.media-preview{margin-top:9px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.media-preview img,.media-preview video{display:block;max-width:100%;max-height:170px;border-radius:9px;object-fit:contain;background:#101828}
.media-preview a{color:#315efb;font-size:12px;font-weight:700;text-decoration:none}
.field-media>label:first-child{margin-bottom:5px}
.check-field{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid #e4e9f2;border-radius:10px;background:#fafbfe}
.check-field input{margin:0;width:18px;height:18px}
.visit-stat{border-color:#dce6ff;background:linear-gradient(145deg,#fff,#f7f9ff)}
.visit-stat i{background:#e8efff;color:#315efb}
.visit-warning{grid-column:1/-1;border-color:#f2d9a6;background:#fffaf0}
.visit-warning i{background:#fff0cc;color:#a86b00}
.cms-video-frame{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:10px;background:#101828;margin:8px 0}
.cms-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.cms-video-player{display:block;width:100%;max-height:360px;border-radius:10px;background:#101828;margin:8px 0}
@media(min-width:1200px){.stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:560px){.media-preview img,.media-preview video{max-height:130px}.media-upload-box{padding:10px}}

.content-card-thumb{display:block;max-width:100%;width:auto;max-height:110px;object-fit:contain;border-radius:8px;background:#eef1f7}.content-media-link{display:block;overflow-wrap:anywhere}

/* 2026 Easy CMS redesign — grouped editing, clear hierarchy, responsive controls */
:root{--accent:#5b6cff;--accent2:#8b5cf6;--ink:#17213d;--soft:#f3f6fc;--line:#e4e9f4}
body{background:radial-gradient(circle at 85% 0%,#edf1ff 0,transparent 32%),#f5f7fc;color:var(--ink)}
.sidebar{background:linear-gradient(180deg,#07132d 0%,#101d43 65%,#172451 100%);box-shadow:8px 0 30px #14234b12}
.brand-mark{background:linear-gradient(135deg,#536dff,#9b5cff);box-shadow:0 8px 24px #536dff55}
.sidebar nav button{border:1px solid transparent;transition:all .18s ease}
.sidebar nav button:hover{background:#ffffff12;border-color:#ffffff18;transform:translateX(2px)}
.sidebar nav button.active{background:linear-gradient(100deg,#536dff,#7657f5);box-shadow:0 8px 20px #536dff40}
.topbar{border-bottom-color:#e1e7f2}
.topbar h2{font-weight:800;letter-spacing:-.3px}
.welcome{background:linear-gradient(115deg,#111d42 0%,#344dd0 55%,#7558ed 100%);box-shadow:0 16px 38px #3048b52a;border:1px solid #ffffff30;position:relative;overflow:hidden}
.welcome:after{content:"";position:absolute;width:250px;height:250px;border:1px solid #ffffff22;border-radius:50%;right:9%;top:-155px;box-shadow:0 0 0 30px #ffffff09,0 0 0 65px #ffffff06}
.stat{border-radius:18px;box-shadow:0 5px 20px #1b2b5010;transition:transform .18s,box-shadow .18s}
.stat:hover{transform:translateY(-3px);box-shadow:0 12px 28px #1b2b5018}
.stat strong{letter-spacing:-1px}
.panel{border-radius:20px;box-shadow:0 6px 24px #1b2b5009}
.tile{border-radius:15px;min-height:118px;padding:17px;background:linear-gradient(150deg,#fff,#f9faff);box-shadow:0 3px 12px #17213d08}
.tile i{width:36px;height:36px;display:grid;place-items:center;background:#edf0ff;border-radius:11px;margin-bottom:12px}
.tile:hover{border-color:#8e9cff;background:#f5f6ff;box-shadow:0 10px 22px #536dff16}
.primary{background:linear-gradient(110deg,#4e64ef,#7658ed);box-shadow:0 5px 13px #536dff25}
.primary:hover{filter:brightness(1.05);transform:translateY(-1px)}
.secondary{border:1px solid #dce3f1;background:#fff;color:#34446a;border-radius:10px}
.table-tools select,.table-tools button{border-radius:10px}
.content-card-mode table{display:none}
#contentCards{display:block;gap:0}
.content-group{margin:14px 0 20px;padding:16px;border:1px solid #e1e7f3;border-radius:18px;background:linear-gradient(145deg,#fff,#fbfcff);box-shadow:0 5px 20px #1b2b5008}
.content-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 2px 14px;margin-bottom:14px;border-bottom:1px solid #edf0f6}
.content-group-head>div>span{font:700 9px Inter,sans-serif;letter-spacing:1.4px;color:#7180b9;text-transform:uppercase}
.content-group-head h3{font-size:17px;margin:3px 0;color:#1c2a4b}
.content-group-head small{color:#8490a7;font-size:11px}
.group-count{display:grid;place-items:center;min-width:34px;height:34px;padding:0 8px;border-radius:11px;background:#eef0ff;color:#5a62d9;font:800 12px Inter}
.content-group-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.content-card{border-radius:13px;padding:13px;border-color:#e8edf6;box-shadow:none;background:#fff}
.content-card h4{font-size:13px;margin-bottom:7px}
.content-card-preview{min-height:38px;max-height:78px;font-size:11px;background:#f7f8fc}
.content-card-actions button{padding:7px 12px;border-radius:8px}
.content-key{display:none}
#contentSearch{max-width:100%;border-radius:12px;padding:12px 14px;margin:0 0 12px}
.cms-page-hint{border-radius:12px;padding:13px 15px;background:linear-gradient(100deg,#eef1ff,#f7f4ff);border:1px solid #e0e4ff}
.cms-page-hint button{margin-top:10px;border-radius:9px}
.application-card{padding:18px;margin:12px 0;border:1px solid #e1e7f2;border-radius:17px;background:linear-gradient(145deg,#fff,#fbfcff);box-shadow:0 5px 18px #1b2b500a}
.application-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.application-code{font:700 10px Inter,sans-serif;color:#6877c9;letter-spacing:.5px}
.application-card h3{font-size:18px;margin:4px 0;color:#18264a}
.application-card p,.application-meta{margin:0;color:#7b879d;font-size:12px}
.application-status{padding:6px 10px;border-radius:30px;font-size:11px;font-weight:700;white-space:nowrap;background:#fff4d9;color:#9b6b00}
.status-approved{background:#e5f8ed;color:#16824a}.status-rejected{background:#ffebee;color:#c0394b}
.application-meta{padding-top:12px;margin-top:12px;border-top:1px solid #edf0f6}
.application-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.application-actions button{border-radius:9px;padding:8px 13px;font-size:12px}
.danger{border:1px solid #ffd6dc;background:#fff1f3;color:#c23d52;border-radius:10px;cursor:pointer}
.application-detail-modal{width:min(780px,100%)}
.application-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:15px}
.application-detail-item{padding:12px;border:1px solid #e8edf5;border-radius:11px;background:#fafbfe;min-width:0}
.application-detail-item small{display:block;color:#75819a;font-size:11px;margin-bottom:5px}
.application-detail-item strong{display:block;color:#1d2b4b;font-size:13px;overflow-wrap:anywhere;white-space:pre-wrap}
.application-photo{display:flex;align-items:center;gap:12px;padding:12px;background:#f5f7fc;border-radius:12px;color:#62708b;font-size:12px}
.application-photo img{width:78px;height:94px;object-fit:cover;border-radius:9px;border:1px solid #e1e6f0}
.media-upload-box{border-radius:13px;background:#f7f8ff;border-color:#dce2ff}
.modal-card{border:1px solid #e3e8f3;box-shadow:0 24px 70px #0a163b40}
@media(max-width:900px){.sidebar{box-shadow:15px 0 40px #07132d40}.main{padding-left:16px;padding-right:16px}}
@media(max-width:650px){.content-group{padding:12px}.content-group-grid{grid-template-columns:1fr}.content-card{padding:12px}.application-card{padding:14px}.application-card-top{flex-direction:column}.application-actions button{flex:1}.application-detail-grid{grid-template-columns:1fr}.welcome{padding:20px}.welcome-date{display:none}.stat{min-width:0}}

/* Reference-inspired green organization dashboard */
:root{--green:#08734e;--green-deep:#034b37;--green-bright:#19a84a;--accent:#087c55;--accent2:#18a85a;--ink:#152b27;--soft:#f2f6f4;--line:#e3ebe7}
body{background:#f1f5f8;color:var(--ink)}
.sidebar{background:linear-gradient(180deg,#064d39 0%,#003d30 100%);box-shadow:8px 0 26px #063d2f18}
.brand-mark{background:linear-gradient(145deg,#13a45b,#08714e);box-shadow:0 8px 20px #002e2240}
.sidebar nav button{color:#e0eee8;border-radius:10px;padding:11px 12px}
.sidebar nav button i{color:#c3ead4}
.sidebar nav button:hover{background:#ffffff16;border-color:#ffffff18;transform:translateX(2px)}
.sidebar nav button.active{background:linear-gradient(100deg,#13a52c,#07943d);box-shadow:0 7px 18px #001f1638;color:#fff}
.side-bottom{border-color:#ffffff25}
.topbar{background:#fff;margin:0 -30px 22px;padding:0 30px;border-bottom:1px solid #e6ece9}
.topbar h2{font-weight:800}
.admin-banner{min-height:142px;border-radius:16px;margin:0 0 18px;padding:24px 30px;display:flex;align-items:center;justify-content:space-between;overflow:hidden;color:#064c35;background:linear-gradient(105deg,#f8fff9 0%,#e4f5e7 44%,#d5f0dd 100%);border:1px solid #d6eadc;position:relative}
.admin-banner:after{content:"";position:absolute;width:310px;height:310px;border:1px solid #0b87551a;border-radius:50%;right:15%;top:-190px;box-shadow:0 0 0 35px #0b87550a,0 0 0 75px #0b875506}
.admin-banner span{font:800 10px Inter,sans-serif;letter-spacing:2px;color:#26855a}
.admin-banner h1{font-size:27px;margin:6px 0 3px;font-weight:800}
.admin-banner p{margin:0;color:#527064;font-size:14px}
.banner-mark{width:84px;height:84px;border:3px solid #fff;outline:1px solid #b8dcc5;border-radius:25px;display:grid;place-items:center;background:linear-gradient(145deg,#0b9d51,#07543c);color:#fff;font-size:42px;font-weight:800;box-shadow:0 8px 24px #07543c30;z-index:1}
.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.stat{border-radius:14px;box-shadow:0 4px 15px #193e2c0b;border-color:#e5ece8;padding:16px}
.stat strong{color:#07563d;font-size:25px}
.stat i{background:#e7f6ed;color:#07824a;border-radius:12px}
.stat.visit-stat{background:linear-gradient(145deg,#fff,#f3fbf6);border-color:#dceee2}
.stat.visit-stat i{background:#e4f6eb;color:#07934d}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:14px;align-items:stretch}
.dashboard-grid .panel{margin-bottom:15px}
.panel{border:1px solid #e4ebe7;border-radius:15px;box-shadow:0 4px 18px #153d2b09;padding:18px}
.panel-head h3{font-size:17px;font-weight:800}
.live-pill,.page-count{font-size:11px;font-weight:700;color:#16814b;background:#e8f7ed;border-radius:30px;padding:6px 10px;white-space:nowrap}
.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.quick-actions button{min-height:86px;border:1px solid #e4ece7;border-radius:12px;background:#f8fbf9;color:#08724b;font-size:25px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;transition:.18s}
.quick-actions button span{font-size:12px;font-weight:700;color:#28483b}
.quick-actions button:hover{transform:translateY(-2px);border-color:#9bd3ae;background:#effaf2}
.visit-chart{min-height:190px}
.visit-chart svg{width:100%;height:auto;display:block;overflow:visible}
.visit-chart svg line{stroke:#e6eee9;stroke-width:1}
.visit-chart svg text{font:10px Inter,sans-serif;fill:#77877f}
.visit-chart polyline{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.visit-chart .line-views{stroke:#159c50}
.visit-chart .line-visitors{stroke:#1684df;stroke-width:2.5}
.chart-legend{display:flex;gap:18px;justify-content:center;color:#63756b;font-size:12px;margin:0 0 8px}
.chart-legend span{display:flex;align-items:center;gap:6px}
.chart-legend i{width:8px;height:8px;border-radius:50%;display:inline-block}
.legend-view{background:#159c50}.legend-visitor{background:#1684df}
.chart-totals{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #edf1ee;padding-top:10px;color:#718178;font-size:11px}
.chart-totals b{color:#145c3d}
.chart-empty{padding:38px 12px;text-align:center;color:#87958d;font-size:13px}
.page-tiles{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.tile{border-radius:12px;min-height:100px;border-color:#e5ece8;background:linear-gradient(145deg,#fff,#f8fcf9)}
.tile i{color:#087b4f;background:#e7f6ed}
.tile:hover{border-color:#8ccda2;background:#f2fbf5;box-shadow:0 8px 18px #087b4f12}
.primary{background:linear-gradient(110deg,#07814e,#13a451);box-shadow:0 4px 12px #087b4f24}
.primary:hover{background:#066c43}
.secondary{border:1px solid #dce8e0;background:#f7faf8;color:#345548}
.cms-page-hint{background:#eef8f1;border-color:#d8eddf;color:#285c42}
.content-group{border-color:#e2ebe5;background:#fff}
.content-group-head h3{color:#135b3d}
.content-type{background:#e8f7ee;color:#087847}
.content-number{background:#e8f5ec;color:#087d4c}
.content-card{border-color:#e7eee9}
.application-card{border-color:#e0ebe4;background:#fff}
.application-status{background:#fff4dc;color:#946400}
.status-approved{background:#e5f8ed;color:#16824a}.status-rejected{background:#ffebee;color:#c0394b}
.modal-card{border:1px solid #e2ebe5;box-shadow:0 24px 70px #073b2b30}
@media(max-width:1100px){.dashboard-grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(3,minmax(0,1fr))}.page-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.topbar{margin:0 -16px 18px;padding:0 16px}.admin-banner{padding:20px}.page-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.admin-banner{min-height:120px;padding:16px}.admin-banner h1{font-size:21px}.admin-banner p{font-size:12px;max-width:250px}.banner-mark{width:58px;height:58px;border-radius:18px;font-size:30px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-totals{flex-direction:column}.page-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.panel{padding:14px}}


/* Dedicated announcement editor — styled to match the green reference dashboard. */
.ticker-settings-screen{max-width:1000px;margin:22px auto}
.ticker-settings-card{background:#fff;border:1px solid #dcebe1;border-radius:18px;padding:clamp(18px,3vw,30px);box-shadow:0 8px 28px #073b2b0d}
.ticker-settings-heading{display:flex;align-items:flex-start;gap:15px;padding-bottom:20px;border-bottom:1px solid #e8f0eb;margin-bottom:22px}
.ticker-settings-icon{width:52px;height:52px;flex:0 0 52px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,#e8f8ee,#d5f0df);font-size:25px}
.ticker-settings-heading p{font:800 9px Inter,sans-serif;letter-spacing:1.7px;color:#238653;margin:0 0 5px}
.ticker-settings-heading h3{font-size:21px;margin:0 0 6px;color:#104d36}
.ticker-settings-heading small{font-size:13px;color:#687f73;line-height:1.7}
.ticker-settings-form{display:grid;gap:17px}
.ticker-settings-form label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#214b39}
.ticker-settings-form input,.ticker-settings-form textarea{width:100%;border:1px solid #d7e6dc;border-radius:12px;background:#fbfdfb;padding:13px 14px;font:500 14px 'Hind Siliguri',sans-serif;color:#173c2c;outline:none}
.ticker-settings-form input:focus,.ticker-settings-form textarea:focus{border-color:#4eaa70;box-shadow:0 0 0 3px #4eaa7018;background:#fff}
.ticker-settings-form textarea{resize:vertical;min-height:130px;line-height:1.7}
.ticker-settings-form label small{font-size:11px;font-weight:400;color:#789084}
.ticker-live-preview{display:flex;min-height:48px;overflow:hidden;border-radius:11px;background:#063d30;color:#fff;align-items:stretch}
.ticker-preview-label{display:flex;align-items:center;padding:0 15px;background:#f4a900;color:#25200e;font-size:13px;font-weight:800;white-space:nowrap}
.ticker-preview-window{display:flex;align-items:center;min-width:0;padding:8px 15px;overflow:hidden}
.ticker-preview-window span{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ticker-settings-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;padding-top:5px}
.ticker-settings-actions>span{font-size:12px;color:#6f8879}
.ticker-settings-actions button{padding:12px 18px;border-radius:11px}
@media(max-width:600px){.ticker-settings-heading h3{font-size:18px}.ticker-settings-actions{align-items:stretch;flex-direction:column}.ticker-settings-actions button{width:100%}.ticker-live-preview{flex-direction:column}.ticker-preview-label{min-height:38px}.ticker-preview-window{min-height:42px}}


/* Global organization identity editor — aligned with the green reference dashboard. */
.identity-settings-screen{max-width:1120px;margin:22px auto}
.identity-settings-card{background:#fff;border:1px solid #dcebe1;border-radius:18px;padding:clamp(18px,3vw,30px);box-shadow:0 8px 28px #073b2b0d}
.identity-settings-heading{display:flex;align-items:flex-start;gap:15px;padding-bottom:20px;border-bottom:1px solid #e8f0eb;margin-bottom:22px}
.identity-settings-icon{width:52px;height:52px;flex:0 0 52px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,#e8f8ee,#d5f0df);font-size:25px}
.identity-settings-heading p{font:800 9px Inter,sans-serif;letter-spacing:1.7px;color:#238653;margin:0 0 5px}
.identity-settings-heading h3{font-size:21px;margin:0 0 6px;color:#104d36}
.identity-settings-heading small{font-size:13px;color:#687f73;line-height:1.7}
.identity-settings-form{display:grid;gap:16px}
.identity-section-title{font-size:15px;font-weight:800;color:#104d36;border-left:4px solid #19a256;padding:7px 11px;background:#f1faf4;border-radius:0 9px 9px 0;margin-top:7px}
.identity-settings-form label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#214b39}
.identity-settings-form input,.identity-settings-form textarea{width:100%;min-width:0;border:1px solid #d7e6dc;border-radius:11px;background:#fbfdfb;padding:12px 13px;font:500 14px 'Hind Siliguri',sans-serif;color:#173c2c;outline:none}
.identity-settings-form input:focus,.identity-settings-form textarea:focus{border-color:#4eaa70;box-shadow:0 0 0 3px #4eaa7018;background:#fff}
.identity-settings-form textarea{resize:vertical;line-height:1.7}
.identity-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.identity-upload{display:flex;align-items:center;gap:16px;flex-wrap:wrap;border:1px dashed #b9d8c4;border-radius:13px;padding:13px;background:#f8fcf9}
.identity-upload .upload-label{width:auto;min-width:220px}
.identity-logo-preview{width:88px;height:88px;border-radius:14px;background:#eef5f0;display:grid;place-items:center;overflow:hidden;border:1px solid #dbe9df}
.identity-logo-preview img{max-width:100%;max-height:100%;object-fit:contain}
.identity-upload small{color:#789084;font-size:11px}
.identity-settings-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;padding-top:10px;border-top:1px solid #e8f0eb}
.identity-settings-actions>span{font-size:12px;color:#6f8879}
.identity-settings-actions button{padding:12px 18px;border-radius:11px}
@media(max-width:650px){.identity-two-col{grid-template-columns:1fr}.identity-settings-heading h3{font-size:18px}.identity-settings-actions{align-items:stretch;flex-direction:column}.identity-settings-actions button{width:100%}.identity-upload{align-items:flex-start;flex-direction:column}}

/* Dashboard refinements: reference-style colored metrics and real recent content */
.stats .stat.metric-blue{background:linear-gradient(115deg,#1676df,#1470ca);border-color:#1676df;color:#fff}
.stats .stat.metric-green{background:linear-gradient(115deg,#22a64d,#168b42);border-color:#168b42;color:#fff}
.stats .stat.metric-orange{background:linear-gradient(115deg,#f8a900,#e99100);border-color:#e99100;color:#fff}
.stats .stat.metric-purple{background:linear-gradient(115deg,#8525d0,#6b19b7);border-color:#6b19b7;color:#fff}
.stats .stat.metric-blue strong,.stats .stat.metric-green strong,.stats .stat.metric-orange strong,.stats .stat.metric-purple strong{color:#fff}
.stats .stat.metric-blue span,.stats .stat.metric-green span,.stats .stat.metric-orange span,.stats .stat.metric-purple span{color:#ffffffdf}
.stats .stat.metric-blue i,.stats .stat.metric-green i,.stats .stat.metric-orange i,.stats .stat.metric-purple i{background:#ffffff24;color:#fff}
.dashboard-lower{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:14px;align-items:stretch}
.dashboard-lower .panel{min-width:0;margin-bottom:16px}
.dashboard-lower .panel-head{align-items:center;margin-bottom:12px}
.text-link{border:0;background:transparent;color:#08784d;font-weight:800;font-family:inherit;cursor:pointer;white-space:nowrap}
.recent-list{display:grid;gap:0}
.recent-item{display:flex;align-items:center;gap:11px;padding:10px 2px;border-bottom:1px solid #edf2ee;min-width:0}
.recent-item:last-child{border-bottom:0}
.recent-item>div{min-width:0;display:grid;gap:3px}
.recent-item b{font-size:13px;color:#183d2f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recent-item small{font-size:11px;color:#789084;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recent-icon{width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:#e8f7ed;color:#087b4f;display:grid;place-items:center;font-size:19px}
.recent-date{width:48px;height:48px;flex:0 0 48px;border-radius:10px;background:#e7f2ff;color:#1757a6;display:grid;place-content:center;text-align:center;font-size:18px;font-weight:800;line-height:1.1}
.recent-date small{font-size:9px;color:#426b9e}
.recent-avatar{width:42px;height:42px;flex:0 0 42px;object-fit:cover;border-radius:50%;border:2px solid #d9eee0}
#importAllPagesBtn{font-size:12px;padding:9px 12px;white-space:nowrap}
@media(max-width:1200px){.dashboard-lower{grid-template-columns:1fr 1fr}.dashboard-lower .panel:last-child{grid-column:1/-1}}
@media(max-width:760px){.dashboard-lower{grid-template-columns:1fr}.dashboard-lower .panel:last-child{grid-column:auto}#importAllPagesBtn{width:100%;white-space:normal}.dashboard-lower .panel-head{flex-direction:row;align-items:center}}

/* Compact, reference-like top banner with the real organization logo */
.welcome{display:none}
.admin-banner{background:linear-gradient(105deg,#f8fff9 0%,#e6f6e9 43%,#d3efdc 100%);min-height:154px}
.banner-mark{background:#fff;border-radius:50%;padding:8px;width:100px;height:100px;border:3px solid #fff;outline:2px solid #a9d8ba;position:relative;overflow:hidden}
.banner-mark img{width:100%;height:100%;object-fit:contain;display:none}
.banner-mark span{position:absolute;inset:0;display:grid;place-items:center;color:#08734e;font-size:42px;font-weight:800}
@media(max-width:560px){.banner-mark{width:70px;height:70px;padding:5px}.banner-mark span{font-size:30px}}

/* FINAL reference layout finishing: green organization sidebar + search / alerts / banner */
.brand-logo-wrap{width:44px;height:44px;flex:0 0 44px;border-radius:13px;background:#fff;display:grid;place-items:center;overflow:hidden;box-shadow:0 5px 16px #001f1830}
.brand-logo-img{width:100%;height:100%;object-fit:contain;padding:2px}
.brand-logo-wrap .brand-mark.small{width:100%;height:100%;border-radius:0;margin:0}
.topbar{gap:14px;min-height:78px;height:auto;padding-top:10px;padding-bottom:10px}
.topbar-title{min-width:160px}
.topbar-search{height:42px;max-width:420px;min-width:180px;flex:1;position:relative;margin-left:8px}
.topbar-search>span{position:absolute;left:14px;top:4px;z-index:1;font-size:25px;line-height:30px;color:#829186}
.topbar-search input{height:42px;margin:0;padding:0 15px 0 43px;border:1px solid #dce7e1;border-radius:24px;background:#f6f9f7;box-shadow:none;color:#244638;font-size:13px}
.topbar-search input:focus{border-color:#5ab782;box-shadow:0 0 0 3px #159c5015;background:#fff}
.top-actions{gap:10px}
.notification-btn{position:relative;width:42px;height:42px;border:1px solid #e4ebe7;border-radius:50%;background:#fff;color:#315447;display:grid;place-items:center;font-size:21px;cursor:pointer}
.notification-btn b{position:absolute;right:-3px;top:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:12px;background:#e83c4c;color:#fff;font:700 10px Inter;display:grid;place-items:center;border:2px solid #fff}
.notification-btn b.is-empty{display:none}
.admin-user-chip{display:flex;align-items:center;gap:8px;padding:3px 7px 3px 3px;border-radius:24px;background:#f5f8f6;border:1px solid #e7eee9;min-width:104px}
.admin-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#087c55,#19a84a);color:#fff;font:800 14px Inter}
.admin-user-chip b,.admin-user-chip small{display:block;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-user-chip b{font-size:12px;color:#234a38}.admin-user-chip small{font:9px Inter;color:#839188;margin-top:1px}
.search-hidden{display:none!important}
.admin-banner{background-image:linear-gradient(90deg,rgba(249,255,250,.97) 0%,rgba(241,252,243,.88) 46%,rgba(230,247,234,.62) 100%),url('../images/banner01.jpg');background-size:cover;background-position:center;min-height:166px;padding:22px 30px}
.admin-banner-brand{display:flex;align-items:center;gap:18px;position:relative;z-index:1;min-width:0}
.admin-banner .banner-mark{width:96px;height:96px;flex:0 0 96px;border-radius:50%;outline:0;border:4px solid #fff;background:#fff;box-shadow:0 5px 22px #064b3330;overflow:hidden}
.admin-banner .banner-mark img{width:100%;height:100%;object-fit:contain;padding:4px}
.admin-banner .banner-mark span{display:none}
.admin-banner-brand>div:last-child{min-width:0}
.admin-banner-brand h1{color:#07563c;line-height:1.2;font-size:clamp(21px,2.3vw,30px)}
.admin-banner-brand p{font-weight:700;color:#415f51}
.admin-banner-message{position:relative;z-index:1;max-width:270px;text-align:center;color:#07563c;padding:12px 16px;border-left:2px solid #0d724c;background:#ffffff5e;border-radius:0 12px 12px 0}
.admin-banner-message b,.admin-banner-message span,.admin-banner-message small{display:block}
.admin-banner-message b{font-size:20px;font-weight:800}
.admin-banner-message span{font-size:15px;font-weight:700}
.admin-banner-message small{font-size:10px;color:#668477;margin-top:5px}
.stats{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1180px){.topbar-search{max-width:300px}.admin-banner-message{max-width:230px}}
@media(max-width:900px){.topbar{flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.topbar-search{order:5;flex-basis:100%;max-width:none;margin:2px 0 0}.top-actions{margin-left:auto}.admin-banner-message{display:none}.admin-banner{min-height:135px}}
@media(max-width:600px){.topbar-title{min-width:0;flex:1}.topbar-title small{font-size:8px}.top-actions .view-site{display:none}.admin-user-chip{min-width:0;padding-right:5px}.admin-user-chip>span:last-child{display:none}.top-actions{gap:6px}.notification-btn{width:37px;height:37px}.admin-banner{padding:15px;min-height:112px}.admin-banner-brand{gap:11px}.admin-banner .banner-mark{width:66px;height:66px;flex-basis:66px}.admin-banner-brand h1{font-size:19px}.admin-banner-brand p{font-size:11px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Page-wise grouped editor: one section card contains all related text and media fields. */
.content-group-card{border:1px solid #dfeae3;border-radius:16px;background:#fff;padding:18px;box-shadow:0 5px 18px #063b2b0a;min-width:0}
.content-group-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding-bottom:12px;border-bottom:1px solid #edf2ee}
.content-group-head span:first-child{font:800 9px Inter,sans-serif;letter-spacing:1px;color:#16824c}
.content-group-head h3{margin:4px 0;font-size:17px;color:#124c35}
.content-group-head small{font-size:12px;color:#7a8b80}
.group-count{min-width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#e9f7ee;color:#08794a;font-weight:800}
.group-mini-list{display:grid;gap:8px;padding:13px 0}
.group-mini-row{display:flex;align-items:center;gap:10px;min-width:0;padding:8px;border-radius:10px;background:#f7faf8}
.group-mini-row span{min-width:0;display:grid;gap:2px}
.group-mini-row b{font-size:12px;color:#264536}
.group-mini-row small{font-size:11px;color:#7a8b80;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.group-mini-thumb{width:42px;height:36px;object-fit:cover;border-radius:7px;flex:0 0 42px}
.group-extra{display:block;text-align:center;color:#16824c;font-size:11px;font-weight:700}
.content-group-card .content-card-actions{margin-top:0}
.content-group-card .content-card-actions button{width:100%;padding:11px}
.group-editor-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:18px;grid-column:1/-1;align-items:start}
.group-editor-fields{display:grid;gap:12px;min-width:0}
.group-editor-help{margin:0;padding:12px 14px;background:#eef8f1;color:#315b43;border-radius:10px;font-size:13px;line-height:1.6}
.group-edit-field{padding:14px;border:1px solid #e0eae3;border-radius:13px;background:#fff;min-width:0}
.group-field-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}
.group-field-heading b{font-size:13px;color:#204a36}
.group-field-heading small{font-size:10px;background:#edf7f0;color:#16824c;padding:4px 8px;border-radius:20px}
.group-edit-field input:not([type=file]),.group-edit-field textarea{margin:0;width:100%;border:1px solid #dce8e0;border-radius:9px;padding:10px 12px;font:500 13px 'Hind Siliguri',sans-serif}
.group-edit-field textarea{min-height:80px;resize:vertical}
.group-upload{margin-top:8px}
.group-upload .upload-label{margin:0!important}
.group-field-preview{margin-top:9px;min-height:38px;max-height:100px;overflow:hidden;border-radius:8px;background:#f5f8f6;padding:7px 9px;color:#6c7e72;font-size:11px;overflow-wrap:anywhere}
.group-field-preview img,.group-field-preview video{max-width:100%;max-height:86px;object-fit:contain;display:block;border-radius:6px}
.group-live-preview{position:sticky;top:10px;border:1px solid #dfeae3;border-radius:13px;padding:10px;background:#f6faf7;min-width:0}
.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:9px}
.preview-toolbar b{font-size:12px;color:#174d36}
.preview-toolbar button{font-size:11px;padding:6px 9px;margin-left:4px}
.preview-toolbar button.active{background:#0b8b4c;color:#fff}
#contentPreviewFrame{display:block;width:100%;height:540px;border:1px solid #dce7df;border-radius:9px;background:#fff}
.group-live-preview.preview-mobile #contentPreviewFrame{width:390px;max-width:100%;height:650px;margin:auto}
.group-live-preview>small{display:block;color:#788a7e;font-size:10px;line-height:1.5;margin-top:8px}
#contentCards{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.donor-admin-card{display:grid;grid-template-columns:82px minmax(0,1fr) auto;gap:14px;align-items:center;border:1px solid #e0ebe4;border-radius:14px;padding:14px;margin:12px 0;background:#fff}
.donor-admin-photo{width:82px;height:82px;border-radius:13px;background:#edf6f0;display:grid;place-items:center;overflow:hidden;font-size:30px}
.donor-admin-photo img{width:100%;height:100%;object-fit:cover}
.donor-admin-info{min-width:0}.donor-admin-info h3{margin:0 0 3px;font-size:16px}.donor-admin-info>b{display:inline-block;background:#fff2e4;color:#b45309;padding:2px 9px;border-radius:20px;font-size:12px}.donor-admin-info p{margin:5px 0;font-size:12px;color:#68796e;overflow-wrap:anywhere}.donor-admin-info small{display:block;color:#75867b;font-size:11px}.donor-admin-info a{display:inline-block;color:#07834b;font-size:12px;margin-top:5px}.donor-admin-card .actions{flex-direction:column}
.application-actions{flex-wrap:wrap}.application-actions button{font-size:12px}
#applicationCards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
@media(max-width:900px){.group-editor-layout{grid-template-columns:1fr}.group-live-preview{position:static}.group-live-preview #contentPreviewFrame{height:420px}}
@media(max-width:700px){#contentCards,#applicationCards{grid-template-columns:1fr}.donor-admin-card{grid-template-columns:64px minmax(0,1fr)}.donor-admin-photo{width:64px;height:64px}.donor-admin-card .actions{grid-column:1/-1;flex-direction:row;justify-content:flex-end}.group-live-preview.preview-mobile #contentPreviewFrame{width:100%}}
