.admin-page { background: #f3f5f1; }
.login-view[hidden], .dashboard[hidden], .view-panel[hidden] { display: none !important; }
.login-view { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-brand-panel { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 46px clamp(40px, 6vw, 90px); color: white; background: linear-gradient(145deg, rgba(8,45,37,.96), rgba(18,60,50,.78)), url('assets/official-uttarakhand-team.jpeg') center / cover; }
.admin-brand .brand-copy small { color: rgba(255,255,255,.58); }
.login-kicker { color: var(--saffron); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; }
.login-brand-panel h1 { margin: 25px 0; font-size: clamp(62px, 7vw, 102px); line-height: .84; }
.login-brand-panel h1 em { color: var(--saffron); font-weight: 400; }
.login-brand-panel div > p { max-width: 560px; color: rgba(255,255,255,.68); font-size: 18px; line-height: 1.6; }
.login-brand-panel > small { color: rgba(255,255,255,.48); }
.login-form-panel { display: grid; place-items: center; padding: 50px; background: var(--paper); }
.login-card { width: min(440px, 100%); }
.back-link { display: inline-block; margin-bottom: 55px; color: var(--muted); font-size: 13px; font-weight: 700; }
.login-card h2 { margin: 18px 0 12px; font-size: 50px; }
.login-card > p { color: var(--muted); }
.login-card label, .member-dialog label { display: flex; flex-direction: column; gap: 9px; margin-top: 24px; font-size: 12px; font-weight: 800; }
.login-card input, .member-dialog input, .member-dialog select { width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 8px; padding: 0 15px; color: var(--ink); background: white; outline: none; }
.login-card input:focus, .member-dialog input:focus, .member-dialog select:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(54,116,97,.12); }
.admin-button { width: 100%; margin-top: 24px; }
.login-error { min-height: 18px; margin: 12px 0 -12px; color: #b33f2a !important; font-size: 12px; }
.demo-note { margin-top: 24px; padding: 17px; display: grid; gap: 5px; border-radius: 8px; color: var(--muted); background: var(--cream); font-size: 12px; }
.demo-note strong { color: var(--ink); }

.dashboard { min-height: 100vh; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 10; display: flex; flex-direction: column; padding: 28px 20px; color: white; background: var(--forest-deep); }
.sidebar-brand { min-width: 0; padding: 0 8px 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sidebar-brand .brand-copy small { color: rgba(255,255,255,.46); }
.admin-nav { display: grid; gap: 7px; margin-top: 28px; }
.admin-nav button, .sidebar-bottom button, .sidebar-bottom a { width: 100%; display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 0; border-radius: 8px; color: rgba(255,255,255,.58); background: transparent; text-align: left; font-size: 13px; font-weight: 700; cursor: pointer; }
.admin-nav button:hover, .admin-nav button.active, .sidebar-bottom button:hover, .sidebar-bottom a:hover { color: white; background: rgba(255,255,255,.09); }
.admin-nav button.active { box-shadow: inset 3px 0 var(--saffron); }
.admin-nav button span { width: 18px; color: var(--saffron); font-size: 17px; }
.admin-nav button b { margin-left: auto; padding: 3px 7px; border-radius: 999px; color: var(--forest-deep); background: var(--saffron); font-size: 10px; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 5px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; }
.admin-main { min-height: 100vh; margin-left: 250px; }
.admin-topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); backdrop-filter: blur(16px); }
.admin-topbar > div:first-of-type { display: flex; flex-direction: column; }
.today-label { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.admin-topbar strong { margin-top: 3px; font-size: 13px; }
.admin-profile { display: flex; align-items: center; gap: 11px; }
.admin-profile > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--forest); font-size: 11px; font-weight: 900; }
.admin-profile div { display: flex; flex-direction: column; }
.admin-profile small { color: var(--muted); font-size: 10px; }
.admin-menu { display: none; border: 0; background: transparent; font-size: 22px; }
.admin-content { padding: 46px 42px 70px; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.admin-heading h1 { margin: 6px 0 8px; font-family: Georgia, serif; font-size: 44px; line-height: 1; font-weight: 500; letter-spacing: -.03em; }
.admin-heading p { margin: 0; color: var(--muted); }
.admin-eyebrow { color: var(--coral); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; }
.prototype-banner { display: flex; gap: 14px; margin-bottom: 24px; padding: 14px 18px; border: 1px solid rgba(245,181,76,.38); border-radius: 10px; color: #70582a; background: #fff8e7; font-size: 12px; line-height: 1.5; }
.prototype-banner strong { white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric-grid article { display: flex; align-items: center; gap: 17px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 12px 35px rgba(20,37,33,.04); }
.metric-icon { width: 43px; height: 43px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 10px; font-size: 18px; }
.metric-icon.green { color: #23614f; background: #e5f0eb; }.metric-icon.amber { color: #8d6722; background: #fff1cf; }.metric-icon.coral { color: #a9402d; background: #fae4df; }.metric-icon.blue { color: #345f81; background: #e4eff7; }
.metric-grid article div { display: flex; flex-direction: column; }
.metric-grid small { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.metric-grid strong { margin: 3px 0; font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.metric-grid em { color: var(--leaf); font-size: 9px; font-style: normal; }
.overview-grid { display: grid; grid-template-columns: 1.55fr .75fr; gap: 18px; margin-top: 18px; }
.admin-card { padding: 27px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.card-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.card-heading h2, .season-card h2 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.plain-button { border: 0; padding: 0; color: var(--leaf); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.recent-list { display: grid; }
.recent-person { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: var(--cream); font-size: 11px; font-weight: 900; }
.recent-person div { display: flex; flex-direction: column; }
.recent-person strong { font-size: 13px; }.recent-person small { color: var(--muted); font-size: 10px; }
.member-status { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; color: #24634f; background: #e6f2ec; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.member-status.Pending { color: #8b6524; background: #fff0cb; }.member-status.Expired { color: #974631; background: #f8e3dd; }
.season-card { color: white; background: var(--forest); }
.season-card .admin-eyebrow { color: var(--saffron); }
.season-card p { color: rgba(255,255,255,.63); line-height: 1.6; font-size: 13px; }
.season-progress { height: 6px; margin-top: 35px; border-radius: 10px; background: rgba(255,255,255,.14); overflow: hidden; }
.season-progress span { display: block; height: 100%; background: var(--saffron); }
.season-meta { display: flex; justify-content: space-between; margin: 9px 0 32px; color: rgba(255,255,255,.55); font-size: 10px; }
.season-card .plain-button { color: white; }
.heading-actions { display: flex; gap: 10px; }
.secondary-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: white; font-size: 11px; font-weight: 800; cursor: pointer; }
.directory-toolbar { display: grid; grid-template-columns: 1fr 180px 180px; gap: 12px; margin-bottom: 15px; }
.search-box { position: relative; }
.search-box span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input, .directory-toolbar select { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 0 15px; background: white; outline: none; }
.search-box input { padding-left: 43px; }
.table-card { border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 890px; border-collapse: collapse; }
th { padding: 14px 17px; color: var(--muted); background: #f8faf7; font-size: 9px; text-align: left; text-transform: uppercase; letter-spacing: .08em; }
td { padding: 17px; border-top: 1px solid var(--line); font-size: 12px; }
.member-cell { display: flex; align-items: center; gap: 11px; }.member-cell strong { font-size: 12px; }
.member-cell .avatar { width: 34px; height: 34px; }
.row-action { border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 18px; }
.table-footer { display: flex; justify-content: space-between; padding: 13px 17px; border-top: 1px solid var(--line); color: var(--muted); background: #f8faf7; font-size: 10px; }
.event-admin-list article, .news-admin-list article { display: grid; grid-template-columns: 105px 1fr auto; align-items: center; gap: 25px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.event-admin-list article:last-child, .news-admin-list article:last-child { border: 0; }
.event-admin-date { font-family: Georgia, serif; font-size: 25px; color: var(--coral); }
.event-admin-list small, .news-admin-list small { color: var(--coral); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.event-admin-list h3, .news-admin-list h3 { margin: 7px 0 5px; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }.event-admin-list p, .news-admin-list p { margin: 0; color: var(--muted); font-size: 11px; }
.document-icon { width: 62px; height: 70px; display: grid; place-items: center; border-radius: 6px; color: white; background: var(--coral); font-size: 11px; font-weight: 900; }.document-icon.story { background: var(--forest); }
.member-dialog { width: min(720px, calc(100% - 28px)); border: 0; border-radius: 14px; padding: 0; box-shadow: 0 30px 90px rgba(9,42,35,.26); }
.member-dialog::backdrop { background: rgba(7,29,24,.64); backdrop-filter: blur(4px); }
.member-dialog form { padding: 34px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.dialog-heading h2 { margin: 5px 0 0; font-size: 38px; }
.dialog-close { border: 0; color: var(--muted); background: transparent; font-size: 30px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 30px; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 99; padding: 14px 18px; border-radius: 8px; color: white; background: var(--forest-deep); box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .2s ease; font-size: 12px; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) { .metric-grid { grid-template-columns: 1fr 1fr; } .overview-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .login-view { grid-template-columns: 1fr; }.login-brand-panel { min-height: 430px; padding: 34px 28px; }.login-brand-panel h1 { font-size: 64px; }.login-form-panel { padding: 55px 25px; }.back-link { margin-bottom: 38px; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 20px 0 50px rgba(9,42,35,.18); }.admin-sidebar.open { transform: translateX(0); }.admin-main { margin-left: 0; }.admin-menu { display: block; }.admin-topbar { padding: 0 22px; justify-content: flex-start; gap: 20px; }.admin-profile { margin-left: auto; }.admin-content { padding: 35px 22px 60px; }.directory-toolbar { grid-template-columns: 1fr 1fr; }.search-box { grid-column: 1 / 3; }
}
@media (max-width: 560px) {
  .login-brand-panel { min-height: 380px; }.login-brand-panel h1 { font-size: 53px; }.login-brand-panel div > p { font-size: 15px; }.admin-profile div { display: none; }.admin-heading { align-items: flex-start; flex-direction: column; }.heading-actions { width: 100%; }.heading-actions > * { flex: 1; }.metric-grid { grid-template-columns: 1fr; }.directory-toolbar { grid-template-columns: 1fr; }.search-box { grid-column: auto; }.table-footer { flex-direction: column; gap: 5px; }.form-grid { grid-template-columns: 1fr; }.event-admin-list article, .news-admin-list article { grid-template-columns: 76px 1fr; }.event-admin-list article > button, .news-admin-list article > button, .news-admin-list article > a { grid-column: 2; justify-self: start; }.prototype-banner { flex-direction: column; }.member-dialog form { padding: 25px; }
}
