/* ── Lyonsden Security design tokens (placeholder brand — reskin here) ── */
:root {
    --ls-navy:       #101826;   /* primary dark */
    --ls-navy-2:     #1b2739;   /* panels on dark */
    --ls-steel:      #37475d;   /* secondary */
    --ls-slate:      #5b6b80;   /* muted text */
    --ls-amber:      #f5a623;   /* accent / CTA */
    --ls-amber-dark: #d98e0f;
    --ls-bg:         #f3f5f8;   /* app background */
    --ls-line:       #dde3ea;
    --ls-danger:     #d64545;
    --ls-ok:         #2f9e63;
    --ls-radius:     12px;
    --ls-shadow:     0 2px 10px rgba(16, 24, 38, .08);
    --ls-font-head:  'Barlow Semi Condensed', sans-serif;
    --ls-font-body:  'Inter', sans-serif;
}

html, body {
    font-family: var(--ls-font-body);
    background: var(--ls-bg);
    color: var(--ls-navy);
}

h1, h2, h3, h4 { font-family: var(--ls-font-head); font-weight: 700; }

a { color: var(--ls-steel); }
a:hover { color: var(--ls-navy); }

/* ── Buttons ── */
.btn-ls-amber {
    background: var(--ls-amber);
    border: none;
    color: var(--ls-navy);
    font-weight: 700;
}
.btn-ls-amber:hover, .btn-ls-amber:focus { background: var(--ls-amber-dark); color: var(--ls-navy); }

/* ── App shell ── */
.ls-shell { min-height: 100vh; display: flex; flex-direction: column; }

.ls-topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: .55rem 1rem;
    background: var(--ls-navy); color: #fff;
    position: sticky; top: 0; z-index: 1030;
    padding-top: calc(.55rem + env(safe-area-inset-top));
}

.ls-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.ls-brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px;
    background: var(--ls-amber); color: var(--ls-navy);
    font-family: var(--ls-font-head); font-weight: 700; font-size: 1rem;
}
.ls-brand-mark-lg { width: 56px; height: 56px; font-size: 1.6rem; border-radius: 12px; }
/* Uploaded logo sits on a white chip so dark artwork reads on the dark bar */
.ls-brand-chip {
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border-radius: 8px; padding: .2rem .5rem; height: 38px;
}
.ls-brand-chip img { max-height: 30px; max-width: 150px; width: auto; }
.ls-brand-chip-lg { height: 72px; padding: .4rem .9rem; }
.ls-brand-chip-lg img { max-height: 58px; max-width: 260px; }
.auth-logo { max-width: 260px; max-height: 110px; margin-bottom: .9rem; }
.ls-brand-name {
    font-family: var(--ls-font-head); font-weight: 700; letter-spacing: .04em;
    color: #fff; font-size: 1.02rem; white-space: nowrap;
}
.ls-brand-name span { color: var(--ls-amber); }

.ls-topnav { display: flex; gap: .25rem; }
.ls-topnav a {
    color: #c9d3e0; text-decoration: none; font-size: .9rem; font-weight: 600;
    padding: .45rem .8rem; border-radius: 8px;
}
.ls-topnav a:hover { color: #fff; background: var(--ls-navy-2); }
.ls-topnav a.active { color: var(--ls-amber); background: var(--ls-navy-2); }
.ls-topnav a i { margin-right: .35rem; }

.ls-topbar-user { display: flex; align-items: center; gap: .75rem; }
.ls-user-name { font-size: .85rem; color: #c9d3e0; }
.ls-logout-btn {
    background: none; border: none; color: #c9d3e0; font-size: 1rem;
    padding: .4rem .55rem; border-radius: 8px; cursor: pointer;
}
.ls-logout-btn:hover { color: #fff; background: var(--ls-navy-2); }

.ls-main { flex: 1; padding: 1.25rem 1rem 2rem; max-width: 1280px; }

.ls-footer {
    padding: .8rem 1rem; text-align: center;
    font-size: .78rem; color: var(--ls-slate);
    border-top: 1px solid var(--ls-line);
}

/* ── Guard (mobile) shell ── */
.ls-shell-guard { background: var(--ls-bg); }
.ls-main-guard {
    flex: 1; padding: 1rem 1rem calc(76px + env(safe-area-inset-bottom));
    max-width: 560px; margin: 0 auto; width: 100%;
}
.ls-guard-title { font-size: 1.35rem; margin: .25rem 0 1rem; }

.ls-bottomnav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
    display: flex; justify-content: space-around;
    background: var(--ls-navy);
    padding: .4rem 0 calc(.4rem + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(16, 24, 38, .25);
}
.ls-bottomnav a {
    display: flex; flex-direction: column; align-items: center; gap: .15rem;
    color: #8fa0b5; text-decoration: none; font-size: .68rem; font-weight: 600;
    padding: .3rem .9rem; border-radius: 10px; min-width: 64px;
}
.ls-bottomnav a i { font-size: 1.15rem; }
.ls-bottomnav a.active { color: var(--ls-amber); }

/* ── Cards ── */
.ls-card {
    background: #fff; border: 1px solid var(--ls-line);
    border-radius: var(--ls-radius); box-shadow: var(--ls-shadow);
    padding: 1.1rem 1.25rem;
}
.ls-card-stat { display: flex; align-items: center; gap: 1rem; }
.ls-card-stat > i { font-size: 1.6rem; color: var(--ls-amber); width: 2.2rem; text-align: center; }
.ls-stat-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ls-slate); }
.ls-stat-value { font-size: 1.6rem; font-weight: 700; font-family: var(--ls-font-head); line-height: 1.1; }
.ls-stat-hint  { font-size: .75rem; color: var(--ls-slate); }

.ls-card-empty { text-align: center; padding: 2.25rem 1rem; }
.ls-card-empty i { font-size: 2rem; color: var(--ls-slate); margin-bottom: .6rem; }

.ls-card-title { font-size: 1.05rem; margin-bottom: .9rem; }
.ls-brand-preview {
    display: flex; align-items: center; gap: .55rem;
    padding: .8rem 1rem; border-radius: 10px;
}
.ls-page-head { margin-bottom: 1.25rem; }
.ls-page-head h1 { font-size: 1.55rem; margin-bottom: .15rem; }
.ls-muted { color: var(--ls-slate); }

/* ── RAG + list rows + tables ── */
.ls-rag-dot {
    display: inline-block; width: 12px; height: 12px; border-radius: 50%;
    vertical-align: middle;
}
.rag-green { background: var(--ls-ok); }
.rag-amber { background: var(--ls-amber); }
.rag-red   { background: var(--ls-danger); }

.ls-item-row {
    display: flex; justify-content: space-between; align-items: center; gap: .75rem;
    padding: .45rem 0; border-bottom: 1px solid var(--ls-line);
}
.ls-item-row:last-of-type { border-bottom: none; }

.ls-table th {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
    color: var(--ls-slate); font-weight: 700; border-bottom-width: 2px;
}

.ls-card-link { text-decoration: none; color: inherit; display: flex; }
.ls-card-link:hover { border-color: var(--ls-amber); color: inherit; }

/* ── Events / roster ── */
.ls-map { height: 300px; border-radius: 10px; }
.ls-shift-block {
    border: 1px solid var(--ls-line); border-radius: 10px;
    padding: .7rem .9rem; margin-bottom: .7rem;
}
.ls-invite-panel {
    background: var(--ls-bg); border-radius: 8px;
    padding: .5rem .75rem; margin-top: .5rem;
}
.ls-guard-section { font-size: 1.05rem; margin: 1.1rem 0 .6rem; }
.ls-shift-card { border-left: 4px solid var(--ls-amber); }
.ls-briefing-card { border-left: 4px solid var(--ls-steel); }

/* ── Shift day ── */
.ls-incident-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem;
}
.ls-incident-btn {
    display: flex; flex-direction: column; align-items: center; gap: .35rem;
    background: #fff; border: 2px solid var(--ls-line); border-radius: 12px;
    padding: .9rem .5rem; font-size: .82rem; font-weight: 600; color: var(--ls-navy);
    cursor: pointer; min-height: 84px;
}
.ls-incident-btn i { font-size: 1.4rem; color: var(--ls-steel); }
.ls-incident-btn.active { border-color: var(--ls-amber); background: #fff8ec; }
.ls-incident-btn.active i { color: var(--ls-amber-dark); }

.ls-welfare-prompt {
    background: #eafbf1; border: 2px solid var(--ls-ok); border-radius: 12px;
    padding: .9rem; margin-top: .5rem;
}

/* ── Release notes ── */
.ls-release-card { margin-bottom: 1rem; }
.ls-release-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.ls-release-head h2 { font-size: 1.15rem; margin: 0; }

/* ── Auth page ── */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(160deg, var(--ls-navy) 0%, var(--ls-steel) 100%);
}
.auth-card {
    background: #fff; border-radius: var(--ls-radius);
    box-shadow: 0 8px 40px rgba(0, 0, 0, .35);
    padding: 2.25rem 2rem; width: 100%; max-width: 420px;
}
.auth-card-header { text-align: center; margin-bottom: 1.6rem; }
.auth-card-header .ls-brand-mark-lg { margin-bottom: .8rem; }
.auth-title { font-size: 1.35rem; letter-spacing: .05em; margin-bottom: .2rem; }
.auth-title-accent { color: var(--ls-amber-dark); }
.auth-subtitle { color: var(--ls-slate); font-size: .9rem; margin: 0; }
.auth-foot { text-align: center; margin: 1.4rem 0 0; font-size: .75rem; color: var(--ls-slate); }

.auth-pw-wrap { position: relative; }
.auth-pw-toggle {
    position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--ls-steel); font-size: .8rem;
    font-weight: 600; cursor: pointer; padding: .2rem .4rem;
}

/* ── Blazor reconnect modal ── */
#components-reconnect-modal { border: none; border-radius: var(--ls-radius); padding: 1.5rem 2rem; text-align: center; }
#components-reconnect-modal::backdrop { background: rgba(16, 24, 38, .6); }
