/* Traffic Shamadhan · Admin portal: Green / Red / Yellow identity */
:root{--adm-green:#064b3b;--adm-green2:#086148;--adm-red:#c8272b;--adm-yellow:#f6ba24;--adm-text:#142a2b;--adm-muted:#72828a;--adm-border:#e4e9e7;--adm-bg:#f4f7f5}
*{box-sizing:border-box}
.admin-body,.admin-auth-body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:var(--adm-bg);color:var(--adm-text);margin:0}
.admin-body a,.admin-auth-body a{text-decoration:none}
.admin-shell{min-height:100vh;display:grid;grid-template-columns:254px minmax(0,1fr)}
.admin-sidebar{background:linear-gradient(160deg,#053f33 0%,#052d27 100%);color:#fff;display:flex;flex-direction:column;min-height:100vh;padding:28px 18px;position:sticky;top:0;height:100vh}
.admin-brand{display:flex;align-items:center;gap:12px;padding:5px 9px 31px;color:#fff!important;border-bottom:1px solid #ffffff1c}
.admin-brand strong{display:block;font-size:17px;letter-spacing:-.03em;line-height:1.25}.admin-brand em{font-style:normal;color:var(--adm-yellow)}.admin-brand small{display:block;margin-top:6px;letter-spacing:.1em;font-size:9px;color:#bad6cc;font-weight:700}
.admin-signal,.auth-signal{display:flex;flex-direction:column;gap:4px;width:33px;align-items:center;flex-shrink:0;background:#fff1;padding:7px 8px;border-radius:9px;border:1px solid #ffffff37}.admin-signal i,.auth-signal i{height:9px;width:9px;border-radius:50%;display:block;background:#e54443}.admin-signal i:nth-child(2),.auth-signal i:nth-child(2){background:#f9c33b}.admin-signal i:nth-child(3),.auth-signal i:nth-child(3){background:#26bb65}
.admin-sidebar-label{font-weight:800;font-size:10px;letter-spacing:.18em;color:#7db0a1;margin:34px 14px 14px}.admin-side-links{display:grid;gap:6px}.admin-side-links a{display:flex;align-items:center;gap:12px;border-radius:8px;padding:13px 14px;color:#c7ddd5;font-size:13px;font-weight:650;transition:background .15s}.admin-side-links a:hover{color:white;background:#ffffff17}.admin-side-links a.selected{color:#10392e;background:var(--adm-yellow);font-weight:800}.admin-nav-symbol{display:inline-flex;align-items:center;justify-content:center;width:20px;font-size:18px;font-weight:400}
.admin-sidebar-bottom{margin-top:auto;display:grid;gap:16px;padding:20px 13px 3px;border-top:1px solid #ffffff20;font-size:12px}.admin-sidebar-bottom a{color:#bdd8ce}.admin-access-chip{display:flex;align-items:center;gap:8px;color:#cce4d8}.admin-access-dot{width:7px;height:7px;border-radius:50%;background:#65df91;box-shadow:0 0 0 4px #65df9119}
.admin-workspace{min-width:0;display:flex;flex-direction:column}.admin-topbar{min-height:92px;background:#fff;border-bottom:1px solid var(--adm-border);display:flex;justify-content:space-between;align-items:center;padding:16px 38px;gap:20px}.admin-topbar-kicker{font-size:10px;letter-spacing:.14em;font-weight:800;color:#7f9690}.admin-topbar-heading{font-size:18px;font-weight:750;letter-spacing:-.02em;color:var(--adm-green);margin-top:5px}.admin-user-menu{display:flex;align-items:center;gap:12px}.admin-user-avatar{width:39px;height:39px;flex-shrink:0;display:grid;place-items:center;color:#06523e;background:#e9f5ee;border-radius:50%;font-weight:800}.admin-user-copy strong,.admin-user-copy small{display:block}.admin-user-copy strong{font-size:12px}.admin-user-copy small{font-size:10px;color:var(--adm-muted)}.admin-user-menu form{margin:0 0 0 16px}.admin-signout{background:#fff;border:1px solid #d6e2db;border-radius:7px;font-size:11px;font-weight:750;color:var(--adm-green);padding:9px 14px}.admin-signout:hover{border-color:var(--adm-green)}
.admin-main{padding:32px 38px 55px;flex:1;max-width:1500px;width:100%;margin:0 auto}.admin-page-lead{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:26px}.admin-overline{font-size:10px;font-weight:800;letter-spacing:.13em;color:#38816a}.admin-page-lead h1{font-size:30px;line-height:1.25;letter-spacing:-.04em;margin:6px 0 7px;font-weight:800;color:#17362d}.admin-page-lead p,.admin-panel-heading p{font-size:12px;color:var(--adm-muted);margin:0;line-height:1.75}.admin-date-label{font-size:11px;color:#718b82;white-space:nowrap}.admin-date-label span{color:var(--adm-yellow);font-weight:900}
.admin-stats-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.admin-stat{position:relative;overflow:hidden;display:block;min-width:0;border-radius:12px;background:#fff;padding:22px 19px;border:1px solid var(--adm-border);box-shadow:0 7px 18px #1f3e3110;color:var(--adm-text)}.admin-stat:hover{color:var(--adm-text);transform:translateY(-2px);box-shadow:0 12px 26px #244d361a}.admin-stat>span{display:block;font-size:11px;font-weight:750;color:#71847d}.admin-stat strong{display:block;font-size:32px;font-weight:800;letter-spacing:-.04em;margin:9px 0 3px}.admin-stat small{display:block;color:#9aa9a3;font-size:10px}.stat-color{position:absolute;left:0;top:0;right:0;height:3px;background:#27785b}.stat-color.amber{background:var(--adm-yellow)}.stat-color.red{background:var(--adm-red)}.stat-color.green{background:#269b5d}.stat-color.blue{background:#4d9cc7}
.admin-table-panel{background:#fff;border:1px solid var(--adm-border);border-radius:13px;margin-top:25px;overflow:hidden;box-shadow:0 7px 24px #1a42300d}.admin-panel-heading{padding:25px 27px;display:flex;align-items:center;justify-content:space-between;gap:15px}.admin-panel-heading h2{font-size:21px;letter-spacing:-.025em;margin:5px 0 7px;color:#17372c;font-weight:790}.admin-panel-heading p{max-width:760px}.admin-outlined-link{display:inline-block;white-space:nowrap;font-size:11px;font-weight:800;color:var(--adm-green);border:1px solid #c4dbcd;padding:10px 14px;border-radius:7px}.admin-outlined-link:hover{background:#eef7f1;color:var(--adm-green)}
.admin-table-filters{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:14px 27px;border-top:1px solid var(--adm-border);border-bottom:1px solid var(--adm-border);background:#f9fbfa}.admin-station-count{font-size:12px;color:#647b71}.admin-station-count strong{font-size:16px;color:var(--adm-green)}.admin-filters-right{display:flex;align-items:center;gap:8px}.admin-filters-right .form-select,.admin-filters-right .form-control{font-size:12px;min-height:36px;border:1px solid #dae6df}.admin-filters-right .form-select{width:135px}.admin-filters-right .form-control{width:240px}.admin-filter-btn{background:var(--adm-green);border:0;border-radius:6px;color:#fff;font-weight:750;font-size:12px;padding:9px 15px}.admin-clear-filter{color:var(--adm-green);font-weight:750;font-size:12px}
.admin-station-table{font-size:12px;--bs-table-border-color:#edf1ee}.admin-station-table th{white-space:nowrap;font-size:9.5px;font-weight:850;text-transform:uppercase;letter-spacing:.06em;background:#f8faf9;color:#759087;padding:14px 13px}.admin-station-table th:first-child,.admin-station-table td:first-child{padding-left:27px}.admin-station-table td{padding:17px 13px;vertical-align:middle;color:#41574e}.admin-station-main{display:flex;gap:7px;align-items:center}.admin-station-main strong{color:#203c30;font-size:12px}.admin-station-sub{display:block;color:#829389;font-size:10px;margin-top:4px;max-width:240px}.admin-region-chip{display:inline-block;font-size:10px;font-weight:750;padding:5px 8px;background:#eff4ef;color:#387058;border-radius:5px}.admin-inactive-chip{font-size:9px;background:#ffeaea;color:#9e3434;border-radius:5px;padding:4px 6px}.admin-tnum{font-variant-numeric:tabular-nums;font-weight:650}.admin-green-val{color:#148349}.admin-average-time{display:inline-block;white-space:nowrap;color:#176747;font-weight:850;background:#e9f6ee;padding:6px 9px;border-radius:6px;font-variant-numeric:tabular-nums}.admin-row-actions{display:grid;gap:7px}.admin-row-actions a{font-size:11px;font-weight:750;color:var(--adm-green);white-space:nowrap}.admin-row-actions a:hover{text-decoration:underline}.admin-table-foot{display:flex;justify-content:space-between;padding:16px 27px;gap:15px;color:#94a29a;font-size:10px;border-top:1px solid var(--adm-border)}
.admin-footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--adm-border);background:#fff;padding:16px 38px;color:#91a198;font-size:10px}.admin-mobile-nav{display:none}
/* Keep existing admin edit/index pages fully functional on this layout. */
.admin-main .page-content-space{padding-top:0;padding-bottom:0}.admin-main .btn-civic-navy{background:var(--adm-green);border-color:var(--adm-green)}.admin-main .table-action{color:var(--adm-green)}
.admin-auth-body{background:#fff}.admin-auth-shell{display:grid;grid-template-columns:49% 51%;min-height:100vh}.admin-auth-brand{background:radial-gradient(circle at 80% 15%,#0d6348 0,#043b30 52%,#052b27 100%);color:white;display:flex;flex-direction:column;justify-content:space-between;padding:46px max(40px,7vw);position:relative;overflow:hidden}.admin-auth-brand:after{content:"";position:absolute;width:500px;height:500px;border:70px solid #ffffff08;border-radius:50%;bottom:-250px;right:-220px;pointer-events:none}.auth-home-link{color:#cde3d9;font-size:12px;font-weight:700}.auth-home-link:hover{color:#fff}.admin-auth-brand-content{max-width:520px;position:relative;z-index:1}.admin-auth-tag{font-size:10px;font-weight:800;letter-spacing:.14em;color:#e3f3ec;display:flex;align-items:center;gap:7px}.auth-led{height:8px;width:8px;border-radius:50%;display:inline-block;background:#e44144}.auth-led.amber{background:#efbc30}.auth-led.green{background:#2aba6e;margin-right:7px}.admin-auth-brand h1{font-size:clamp(36px,4.4vw,67px);line-height:1.1;letter-spacing:-.052em;font-weight:780;margin:25px 0}.admin-auth-brand h1 span{color:var(--adm-yellow)}.admin-auth-brand p{color:#bfd9cd;font-size:14px;line-height:1.9;max-width:430px}.admin-auth-highlights{display:flex;gap:30px;border-top:1px solid #ffffff24;padding-top:24px;margin-top:35px}.admin-auth-highlights>div{display:grid;gap:6px}.admin-auth-highlights strong{color:var(--adm-yellow);font-size:13px}.admin-auth-highlights span{color:#ddece5;font-size:12px}.admin-auth-brand-footer{color:#95b9aa;font-size:10px;font-weight:750;letter-spacing:.11em}.admin-auth-brand-footer span{color:var(--adm-yellow)}
.admin-auth-form-panel{display:flex;justify-content:center;align-items:center;padding:42px 35px}.admin-auth-form-wrap{max-width:440px;width:100%}.admin-auth-logo{display:flex;align-items:center;gap:12px;margin-bottom:58px}.admin-auth-logo strong{display:block;color:var(--adm-green);font-size:24px;letter-spacing:-.045em}.admin-auth-logo strong em{color:var(--adm-red);font-style:normal}.admin-auth-logo small{display:block;font-weight:750;font-size:11px;color:#6f8579;letter-spacing:.04em}.auth-signal{background:#0a4c3e;min-height:49px}.admin-auth-eyebrow{color:#1d7a56;font-size:10px;font-weight:800;letter-spacing:.11em}.admin-auth-form-wrap h2{font-size:29px;letter-spacing:-.035em;font-weight:790;color:#18372b;margin:12px 0}.admin-auth-intro{color:#829289;font-size:13px;line-height:1.75;margin-bottom:31px}.admin-auth-intro a{color:#126449;font-weight:750}.admin-auth-form-wrap .form-label{font-size:12px;color:#3c5447}.admin-auth-form-wrap .admin-input{border:1px solid #d7e4da;min-height:47px;border-radius:7px;font-size:13px}.admin-auth-form-wrap .admin-input:focus{box-shadow:0 0 0 3px #13805d1a;border-color:#137354}.admin-protected-label{font-size:10px;color:#91a79a}.admin-login-button{width:100%;background:var(--adm-green);color:#fff;border:0;border-radius:8px;padding:14px 20px;display:flex;justify-content:space-between;align-items:center;font-weight:750;font-size:13px;margin-top:23px}.admin-login-button:hover{background:#08674d}.admin-auth-secure{margin-top:24px;padding:15px;background:#f1f7f3;border:1px solid #e0ebe4;border-radius:7px;color:#6c8879;font-size:10px}.admin-auth-secure span{color:#229b5d;margin-right:5px}
@media(max-width:1200px){.admin-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-shell{grid-template-columns:224px minmax(0,1fr)}.admin-topbar,.admin-main{padding-left:24px;padding-right:24px}.admin-auth-brand{padding:35px}}
@media(max-width:900px){.admin-shell{grid-template-columns:1fr}.admin-sidebar{display:none}.admin-topbar{min-height:74px}.admin-mobile-nav{display:block;background:white;border-bottom:1px solid var(--adm-border);padding:12px 24px}.admin-mobile-nav summary{cursor:pointer;color:var(--adm-green);font-size:12px;font-weight:800}.admin-mobile-nav nav{display:grid;padding-top:12px;gap:5px}.admin-mobile-nav nav a{padding:10px 0;color:var(--adm-green);font-size:12px}.admin-auth-shell{grid-template-columns:1fr}.admin-auth-brand{min-height:290px;padding:28px 30px}.admin-auth-brand h1{font-size:38px;margin:14px 0}.admin-auth-brand p{font-size:12px}.admin-auth-highlights{display:none}.admin-auth-form-panel{padding:38px 24px}.admin-auth-logo{margin-bottom:28px}}
@media(max-width:620px){.admin-user-copy,.admin-user-avatar{display:none}.admin-topbar{padding:14px 17px}.admin-main{padding:22px 15px 40px}.admin-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.admin-stat{padding:16px}.admin-stat strong{font-size:27px}.admin-page-lead{display:block}.admin-page-lead h1{font-size:25px}.admin-date-label{margin-top:10px}.admin-panel-heading{padding:17px;display:block}.admin-outlined-link{margin-top:12px}.admin-table-filters{display:block;padding:13px 17px}.admin-filters-right{flex-wrap:wrap;margin-top:12px}.admin-filters-right .form-control{flex:1;min-width:145px;width:auto}.admin-filters-right .form-select{min-width:110px}.admin-station-table{min-width:980px}.admin-table-foot{flex-direction:column;padding:13px 17px}.admin-footer{padding:15px;flex-direction:column}.admin-auth-brand{min-height:245px}.admin-auth-form-panel{padding:30px 17px}.admin-auth-form-wrap h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){*{transition-duration:.01ms!important}}
