:root{
  --bg:#eef4fa;
  --panel:#ffffff;
  --text:#132c52;
  --muted:#667a97;
  --line:#d8e3ef;
  --navy:#102e5f;
  --navy-2:#173f7d;
  --gold:#cc9b36;
  --gold-2:#b98924;
  --shadow:0 18px 46px rgba(16,46,95,.10);
  --blue-soft:#edf2ff;
  --green-soft:#edf8f0;
  --orange-soft:#fff4e8;
  --purple-soft:#f4edff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Arial,sans-serif;background:linear-gradient(180deg,#edf3f9,#f4f8fc);color:var(--text)}
a{text-decoration:none;color:inherit}
svg{width:20px;height:20px;display:block}

.login-screen{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
  background:
    radial-gradient(circle at top left,rgba(204,155,54,.16),transparent 28%),
    linear-gradient(135deg,var(--navy),var(--navy-2));
}
.login-card{
  width:min(470px,100%);
  background:rgba(255,255,255,.98);
  border-radius:30px;
  padding:34px;
  box-shadow:0 30px 70px rgba(0,0,0,.24);
}
.login-brand{display:flex;align-items:center;gap:16px;margin-bottom:24px}
.login-logo{
  width:68px;height:68px;border-radius:20px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--gold),#e6cc78);
  color:#142949;font-size:28px;font-weight:900;
}
.login-brand h1{margin:0;font-size:28px;color:var(--navy)}
.login-brand p{margin:4px 0 0;color:var(--muted)}
.login-form{display:grid;gap:12px}
.login-form label{font-weight:800;color:var(--navy)}
.login-form input{
  height:56px;border:1px solid var(--line);
  border-radius:18px;padding:0 16px;font-size:15px;background:#fff;outline:none;
}
.login-submit{
  margin-top:8px;height:56px;border:none;border-radius:18px;
  background:linear-gradient(135deg,var(--navy),var(--navy-2));
  color:#fff;font-weight:900;font-size:16px;cursor:pointer;
}
.login-note{
  margin-top:16px;padding:14px 16px;border-radius:16px;
  background:#f7fafd;border:1px solid var(--line);color:var(--muted);
}
.back-home{display:inline-block;margin-top:18px;color:var(--navy);font-weight:800}

.alert-box{
  padding:14px 16px;border-radius:16px;font-weight:700;margin-bottom:16px;
}
.alert-box.success{background:#ecf8ef;border:1px solid #c4e6cd;color:#187a48}
.alert-box.error{background:#fff2f2;border:1px solid #efcccc;color:#9f3232}

.admin-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:290px 1fr;
}
.admin-sidebar{
  background:linear-gradient(180deg,#112d5a,#0e2447);
  color:#fff;
  padding:24px 18px;
  border-right:1px solid rgba(255,255,255,.08);
  position:sticky;
  top:0;
  height:100vh;
}
.sidebar-brand{
  display:flex;gap:14px;align-items:center;
  padding-bottom:22px;margin-bottom:20px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.sidebar-logo{
  width:54px;height:54px;border-radius:18px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--gold),#e7ca75);
  color:#162c4f;font-size:24px;font-weight:900;
}
.sidebar-brand strong{display:block;font-size:20px}
.sidebar-brand span{display:block;color:rgba(255,255,255,.72);font-size:13px;margin-top:4px}
.sidebar-group{margin-bottom:24px}
.sidebar-label{
  font-size:12px;text-transform:uppercase;letter-spacing:.14em;
  color:rgba(255,255,255,.48);margin-bottom:10px;padding:0 8px;
}
.nav-item{
  display:flex;align-items:center;gap:12px;padding:14px 14px;border-radius:18px;
  color:rgba(255,255,255,.86);font-weight:800;transition:.18s ease;
}
.nav-item:hover{background:rgba(255,255,255,.08);color:#fff}
.nav-item.active{
  background:linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,.08));
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
}

.admin-main{padding:30px}
.page-topbar{
  display:flex;justify-content:space-between;align-items:flex-start;gap:20px;
  margin-bottom:26px;flex-wrap:wrap;
}
.page-eyebrow{
  color:var(--gold-2);font-weight:900;letter-spacing:.12em;
  text-transform:uppercase;font-size:12px;margin-bottom:10px;
}
.page-topbar h1{
  margin:0 0 10px;font-size:48px;line-height:1.02;color:var(--navy);
}
.page-topbar p{
  margin:0;color:var(--muted);max-width:760px;font-size:18px;line-height:1.55;
}
.topbar-actions{display:flex;gap:12px;flex-wrap:wrap}
.topbar-btn{
  min-height:50px;padding:0 20px;border-radius:18px;font-weight:800;
  display:inline-flex;align-items:center;justify-content:center;
}
.topbar-btn.light{background:#fff;border:1px solid var(--line);color:var(--navy)}
.topbar-btn.gold{background:linear-gradient(135deg,var(--gold),var(--gold-2));color:#fff}

.stats-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:20px;
}
.stat-card{
  background:var(--panel);border:1px solid var(--line);border-radius:24px;
  padding:24px;box-shadow:var(--shadow);
}
.stat-icon{
  width:56px;height:56px;border-radius:18px;display:grid;place-items:center;margin-bottom:16px;
}
.stat-icon.news{background:var(--blue-soft);color:#3159b6}
.stat-icon.lawyers{background:var(--green-soft);color:#1d7f4d}
.stat-icon.docs{background:var(--orange-soft);color:#b77714}
.stat-icon.training{background:var(--purple-soft);color:#7445cf}
.stat-value{font-size:50px;font-weight:900;line-height:1;color:var(--navy)}
.stat-label{margin-top:10px;color:var(--muted);font-weight:800;font-size:18px}

.shortcut-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:20px;
}
.shortcut-card{
  background:linear-gradient(180deg,#fff,#f9fbff);
  border:1px solid var(--line);
  border-radius:24px;
  padding:24px;
  box-shadow:var(--shadow);
}
.shortcut-icon{
  width:56px;height:56px;border-radius:18px;
  display:grid;place-items:center;
  background:#edf3ff;color:var(--navy);margin-bottom:16px;
}
.shortcut-card h3{margin:0 0 8px;color:var(--navy);font-size:24px}
.shortcut-card p{margin:0;color:var(--muted);line-height:1.6}

.dashboard-grid{
  display:grid;grid-template-columns:1.05fr .95fr;gap:18px;
}
.panel-card{
  background:var(--panel);border:1px solid var(--line);border-radius:24px;
  padding:24px;box-shadow:var(--shadow);
}
.panel-head{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  margin-bottom:16px;flex-wrap:wrap;
}
.panel-head h2{margin:0;font-size:28px;color:var(--navy)}
.panel-link{color:var(--navy);font-weight:800}
.panel-badge{
  background:#edf3ff;color:var(--navy);border:1px solid #d8e4f6;
  border-radius:999px;padding:8px 12px;font-size:12px;font-weight:900;
}

.list-stack,.activity-stack,.manage-table,.manage-sections{
  display:grid;gap:12px;
}
.list-item,.activity-item,.manage-row{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:14px 0;border-bottom:1px solid var(--line);flex-wrap:wrap;
}
.list-item:last-child,.activity-item:last-child,.manage-row:last-child{border-bottom:none}
.list-item strong,.activity-item strong,.manage-main strong{
  display:block;color:var(--text);margin-bottom:4px;font-size:18px;
}
.list-item span,.activity-item span,.manage-main span{
  display:block;color:var(--muted);font-size:14px;line-height:1.5;
}
.activity-icon{
  width:44px;height:44px;border-radius:16px;
  display:grid;place-items:center;
  background:#edf3ff;color:var(--navy);flex-shrink:0;
}
.empty-state{padding:16px 0;color:var(--muted);font-size:15px}

.forms-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:18px;
}
.form-card{
  background:linear-gradient(180deg,#fff,#f9fbff);border:1px solid var(--line);
  border-radius:24px;padding:24px;box-shadow:var(--shadow);display:grid;gap:14px;
}
.form-card-head{display:flex;align-items:center;gap:14px;margin-bottom:4px}
.form-card-head h3{margin:0 0 4px;font-size:28px;color:var(--navy)}
.form-card-head p{margin:0;color:var(--muted);line-height:1.5}
.form-icon{
  width:56px;height:56px;border-radius:18px;display:grid;place-items:center;
}
.form-icon.news{background:var(--blue-soft);color:#3159b6}
.form-icon.lawyers{background:var(--green-soft);color:#1d7f4d}
.form-icon.docs{background:var(--orange-soft);color:#b77714}
.form-icon.training{background:var(--purple-soft);color:#7445cf}
.form-card input,.form-card textarea{
  width:100%;border:1px solid var(--line);border-radius:18px;
  padding:15px 16px;font-size:15px;background:#fff;outline:none;
}
.form-card input[type=file]{padding:12px 14px}
.form-card textarea{min-height:130px;resize:vertical}
.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.primary-action{
  height:54px;border:none;border-radius:18px;
  background:linear-gradient(135deg,var(--navy),var(--navy-2));
  color:#fff;font-weight:900;font-size:16px;cursor:pointer;
}

.status-inline-form{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
}
.status-inline-form select{
  height:46px;min-width:180px;border:1px solid var(--line);
  border-radius:16px;padding:0 12px;background:#fff;
}
.status-inline-form button{
  height:46px;border:none;border-radius:16px;padding:0 16px;
  background:var(--navy);color:#fff;font-weight:800;cursor:pointer;
}

.status-badge{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:32px;padding:0 12px;border-radius:999px;
  font-size:12px;font-weight:900;white-space:nowrap;
}
.status-badge.small{min-height:28px;font-size:11px}
.status-active{background:#eaf8ef;color:#187746;border:1px solid #c2e5cb}
.status-review{background:#fff4e6;color:#9b6700;border:1px solid #ecd7ad}
.status-archived{background:#eef2f6;color:#5e6d7c;border:1px solid #d9e0e8}

@media (max-width:1280px){
  .stats-grid,.shortcut-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:1080px){
  .admin-shell{grid-template-columns:1fr}
  .admin-sidebar{position:static;height:auto}
  .dashboard-grid,.forms-grid{grid-template-columns:1fr}
}
@media (max-width:760px){
  .page-topbar h1{font-size:36px}
  .stats-grid,.shortcut-grid,.two-fields{grid-template-columns:1fr}
  .admin-main{padding:18px}
}
