/* EDDS Admin — clean, functional, on-brand */

:root {
    --red: #8c2b23;
    --red-dark: #6e1f19;
    --gold: #e0952f;
    --cream: #f8f2e4;
    --paper: #fffdf7;
    --ink: #2b241f;
    --ink-soft: #6b5f53;
    --line: #e8ddc8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--cream);
}

h1 { font-size: 1.7rem; margin: 0 0 20px; }
h2 { font-size: 1.25rem; margin: 30px 0 14px; }

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

/* top bar */
.admin-bar {
    background: var(--red-dark);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    flex-wrap: wrap;
}
.admin-bar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 12px 0;
    color: var(--cream);
    text-decoration: none;
}
.admin-bar__brand img { width: 34px; height: 34px; }
.admin-bar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-bar nav a {
    color: var(--cream);
    text-decoration: none;
    padding: 16px 14px;
    font-weight: 600;
    font-size: 0.95rem;
}
.admin-bar nav a:hover, .admin-bar nav a.is-active { background: var(--red); }
.admin-bar__user { font-size: 0.88rem; opacity: 0.9; }
.admin-bar__user a { color: #f3c77e; }

main.admin-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px 60px;
}

/* stat cards */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 2px 8px rgba(43, 36, 31, 0.06);
}
.stat-card__num { font-size: 2rem; font-weight: 700; color: var(--red); line-height: 1.15; }
.stat-card__label { color: var(--ink-soft); font-size: 0.9rem; margin-top: 2px; }

/* tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(43, 36, 31, 0.06);
    font-size: 0.93rem;
}
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th {
    background: var(--cream);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink-soft);
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fdf8ec; }

/* forms */
form p, .field { margin: 0 0 16px; }
label { font-weight: 600; font-size: 0.93rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="time"], input[type="tel"], select, textarea {
    width: 100%;
    max-width: 560px;
    padding: 10px 12px;
    font-size: 0.98rem;
    font-family: inherit;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    background: #fff;
    margin-top: 4px;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(224, 149, 47, 0.22);
}
input[type="checkbox"] { width: auto; }
select { width: auto; min-width: 220px; }

button, .btn {
    display: inline-block;
    background: var(--red);
    color: var(--cream);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    padding: 11px 26px;
    cursor: pointer;
    text-decoration: none;
}
button:hover, .btn:hover { background: var(--red-dark); }

/* status pills */
.pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 999px;
}
.pill--published { background: #e4eede; color: #3f5d3a; }
.pill--draft { background: #eee7d8; color: #6b5f53; }
.pill--cancelled { background: #fbeae8; color: #8c2b23; }
.pill--past { background: #e4e4e4; color: #555; }

/* alerts */
.admin-alert { border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; font-weight: 600; }
.admin-alert--ok { background: #e4eede; border: 1.5px solid #3f5d3a; color: #3f5d3a; }
.admin-alert--error { background: #fbeae8; border: 1.5px solid var(--red); color: var(--red-dark); }
.admin-alert ul { margin: 0; padding-left: 18px; }

/* login */
.login-card {
    max-width: 400px;
    margin: 8vh auto 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(43, 36, 31, 0.12);
    text-align: center;
}
.login-card img { width: 90px; height: 90px; margin: 0 auto 10px; display: block; }
.login-card h1 { font-size: 1.4rem; }
.login-card form { text-align: left; }
.login-card button { width: 100%; margin-top: 6px; }

.table-scroll { overflow-x: auto; }
