/* AntiguanTalk admin panel — colours taken from the Antigua & Barbuda flag */
:root {
    --black: #111;
    --red: #ce1126;
    --gold: #fcd116;
    --blue: #0072c6;
    --bg: #f5f6f8;
    --card: #fff;
    --text: #1d1f23;
    --muted: #6b7079;
    --border: #e1e4e8;
    --radius: 8px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a { color: var(--blue); }

h1 { font-size: 1.5rem; margin: 0 0 1rem; }

/* Top bar */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--black); color: #fff; padding: .75rem 1.25rem;
}
.brand { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.brand span, h1 span { color: var(--gold); font-weight: 400; }
.who { display: flex; align-items: center; gap: 1rem; font-size: .9rem; }
.stripe { height: 4px; background: linear-gradient(90deg, var(--red) 0 33%, var(--gold) 33% 66%, var(--blue) 66%); }

/* Layout */
.shell { display: flex; min-height: calc(100vh - 54px); }
.sidenav {
    width: 210px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--border);
    padding: 1rem 0;
}
.sidenav a {
    display: flex; justify-content: space-between; align-items: center;
    padding: .55rem 1.25rem; color: var(--text); text-decoration: none;
}
.sidenav a:hover { background: var(--bg); }
.sidenav a.active { background: var(--bg); border-left: 3px solid var(--red); font-weight: 600; }
.sidenav small { color: var(--muted); font-size: .7rem; text-transform: uppercase; }
main { flex: 1; padding: 1.5rem 2rem; max-width: 1100px; }

/* Cards */
.card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem;
}
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.stat { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
a.stat:hover { border-color: var(--blue); }
.stat .num { font-size: 2rem; font-weight: 700; }
.stat .label { color: var(--muted); font-size: .9rem; }
.stat.attention { border-left: 4px solid var(--gold); }

/* Forms */
label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
input[type=email], input[type=password], input[type=text] {
    width: 100%; padding: .6rem .7rem; border: 1px solid var(--border); border-radius: 6px;
    font: inherit;
}
input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.btn {
    margin-top: 1.25rem; width: 100%; padding: .7rem; border: 0; border-radius: 6px;
    background: var(--black); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { background: #333; }
.btn-link {
    background: none; border: 0; color: var(--gold); font: inherit; cursor: pointer; padding: 0;
    text-decoration: underline;
}
form.inline { display: inline; margin: 0; }

/* Notices */
.notice { padding: .7rem .9rem; border-radius: 6px; background: #eef5fc; margin: 1rem 0; }
.notice.error { background: #fdecee; color: #8a0c1b; }
.muted { color: var(--muted); }

/* Sign-in page */
.auth-wrap { min-height: calc(100vh - 4px); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-card { width: 100%; max-width: 380px; }

@media (max-width: 700px) {
    .shell { flex-direction: column; }
    .sidenav { width: 100%; display: flex; overflow-x: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--border); }
    .sidenav a { white-space: nowrap; }
    .sidenav a.active { border-left: 0; border-bottom: 3px solid var(--red); }
    main { padding: 1rem; }
}
