/* Patrol Operations Platform - security-operations look: navy, charcoal, white; red/green/amber for status */
:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --charcoal: #2b2f36;
  --green: #1e9e5a;
  --amber: #f0a500;
  --red: #d62839;
  --grey: #6c757d;
  --bs-primary: #12305a;
  --bs-primary-rgb: 18, 48, 90;
}
body { background: #eef1f5; color: #1c2430; font-size: 1rem; -webkit-text-size-adjust: 100%; }
a { color: #12529a; }
.app-nav { background: var(--navy); border-bottom: 3px solid var(--navy-2); padding-top: max(.5rem, env(safe-area-inset-top)); }
.app-nav .nav-link { color: rgba(255,255,255,.8); }
.app-nav .nav-link.active, .app-nav .nav-link:hover { color: #fff; }
.btn-primary { background: var(--navy-2); border-color: var(--navy-2); }
.btn-primary:hover, .btn-primary:focus { background: var(--navy); border-color: var(--navy); }
.btn-outline-primary { color: var(--navy-2); border-color: var(--navy-2); }
.btn-outline-primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.card { border: 0; border-radius: .75rem; box-shadow: 0 1px 3px rgba(11,31,58,.12); }
.card-header { background: #fff; border-bottom: 1px solid #e3e8ef; }
.form-control, .form-select { border-radius: .5rem; }
.form-control-lg, .btn-lg { min-height: 52px; }
.section-title { text-transform: uppercase; letter-spacing: .06em; color: var(--navy-2); border-bottom: 2px solid #dbe3ee; padding-bottom: .35rem; margin: 1.25rem 0 .75rem; }

/* Auth pages */
.auth-body { background: linear-gradient(160deg, var(--navy) 0%, #14305a 100%); min-height: 100vh; }
.auth-wrap { max-width: 520px; padding-top: 2rem; padding-bottom: 2rem; }
.auth-brand { font-size: 1.35rem; font-weight: 700; letter-spacing: .04em; }
.auth-card { border-radius: 1rem; }

/* Call sign - prominent everywhere */
.callsign { display: inline-block; font-family: "Consolas", "Courier New", monospace; font-weight: 800; letter-spacing: .08em; color: var(--navy); background: #e5ecf6; border: 2px solid var(--navy-2); border-radius: .5rem; padding: .1rem .6rem; }
.callsign-nav { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); font-size: 1.05rem; }
.callsign-sm { font-size: .9rem; padding: 0 .4rem; border-width: 1px; }
.callsign-lg { font-size: 1.6rem; }
.callsign-xl { font-size: 2.6rem; line-height: 1.15; padding: .1rem .9rem; }
.status-card .callsign { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.7); }

/* Patroller dashboard */
.status-card { border-radius: 1rem; color: #fff; padding: 1rem 1.1rem; }
.status-on { background: linear-gradient(135deg, #167a46, var(--green)); }
.status-off { background: linear-gradient(135deg, #3b4350, var(--charcoal)); }
.duty-pill { display: inline-block; font-weight: 800; letter-spacing: .08em; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.8); border-radius: 2rem; padding: .25rem .9rem; }
.gps-indicator { display: flex; align-items: center; gap: .6rem; background: #fff; border-radius: .75rem; padding: .7rem .9rem; box-shadow: 0 1px 3px rgba(11,31,58,.12); font-size: .92rem; }
.dot { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.dot-grey { background: #9aa3af; } .dot-green { background: var(--green); } .dot-amber { background: var(--amber); } .dot-red { background: var(--red); }
.action-btn { width: 100%; min-height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 1rem; padding: .75rem; text-decoration: none; }
.action-title { font-weight: 800; letter-spacing: .04em; font-size: 1.02rem; text-align: center; }
.action-sub { font-size: .75rem; opacity: .85; margin-top: .2rem; }
.action-btn:disabled { opacity: .55; }

/* Management tiles */
.stat-tile { background: #fff; border-radius: .9rem; padding: .9rem 1rem; box-shadow: 0 1px 3px rgba(11,31,58,.12); border-left: 6px solid var(--navy-2); height: 100%; }
.stat-num { font-size: 2.1rem; font-weight: 800; line-height: 1; color: var(--navy); }
.stat-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--grey); margin-top: .3rem; }
.tile-green { border-left-color: var(--green); } .tile-amber { border-left-color: var(--amber); } .tile-red { border-left-color: var(--red); }

.clickable-row { cursor: pointer; }
.notif-unread { background: #eaf2ff; border-left: 4px solid var(--navy-2); }
.policy-text { max-height: 320px; overflow: auto; background: #fff; font-size: .92rem; }
.perm-col { width: 150px; }
.vehicle-row { background: #f6f8fb !important; }
dt { font-weight: 600; color: #4a5566; }
@media (min-width: 992px) { .callsign-xl { font-size: 3rem; } }
@media print { .app-nav, footer, .btn { display: none !important; } body { background: #fff; } }
