/* Mechanist Apprentice Logbook — brand theme (black + #F04664) */

:root {
    --brand-black: #14161a;
    --brand-black-2: #1f2228;
    --brand-accent: #F04664;
    --brand-accent-dark: #d5324f;
    --brand-accent-soft: #fdeaee;

    --bs-primary: var(--brand-accent);
    --bs-primary-rgb: 240, 70, 100;
    --bs-link-color: var(--brand-accent-dark);
    --bs-link-hover-color: var(--brand-accent);
}

body {
    background: #f6f7f9;
    color: #23262b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Navbar ---- */
.app-navbar {
    background: var(--brand-black);
    border-bottom: 3px solid var(--brand-accent);
}
/* The MECHANIST wordmark, as in the staff / enrolment admin portal. */
.app-navbar .navbar-brand {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 9px;
    line-height: 1.1;
    text-decoration: none;
}
.brand-mark {
    font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -.02em;
    color: var(--brand-accent);
}
.brand-sub {
    color: rgba(255, 255, 255, .6);
    font-size: .7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .13em;
}
.app-navbar .nav-link { color: rgba(255, 255, 255, .8); font-weight: 500; }
.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus { color: #fff; }
.app-navbar .nav-user { color: rgba(255, 255, 255, .75); font-size: .9rem; }

/* ---- Role badge ---- */
.role-badge {
    display: inline-block;
    margin-left: .35rem;
    padding: .12rem .5rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
}
.role-admin   { background: #6f42c1; }
.role-trainer { background: var(--brand-accent); }
.role-student { background: #0d99a8; }

/* ---- Buttons / accents ---- */
.btn-brand {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}
.btn-brand:hover,
.btn-brand:focus {
    background: var(--brand-accent-dark);
    border-color: var(--brand-accent-dark);
    color: #fff;
}
.btn-outline-brand {
    color: var(--brand-accent-dark);
    border-color: var(--brand-accent);
}
.btn-outline-brand:hover {
    background: var(--brand-accent);
    color: #fff;
}
a { color: var(--brand-accent-dark); }

/* ---- Cards ---- */
.card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(20, 22, 26, .08), 0 8px 24px rgba(20, 22, 26, .05);
}
.card-accent-top { border-top: 4px solid var(--brand-accent); }

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-black);
}
.stat-label {
    color: #6b7280;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .6px;
}

/* ---- Dev login role tiles ---- */
.login-tile {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    transition: transform .08s ease, box-shadow .12s ease;
}
.login-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(240, 70, 100, .18);
}

/* ---- Logbook entries / photos / tags ---- */
.entry-card {
    transition: transform .08s ease, box-shadow .12s ease;
    border-left: 4px solid transparent;
}
.entry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(20, 22, 26, .1);
    border-left-color: var(--brand-accent);
}
.cat-tag {
    display: inline-block;
    background: var(--brand-accent-soft);
    color: var(--brand-accent-dark);
    border: 1px solid rgba(240, 70, 100, .25);
    border-radius: 999px;
    padding: .1rem .6rem;
    font-size: .75rem;
    font-weight: 600;
    margin: 0 .3rem .3rem 0;
}
.photo-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    background: #e9ecef;
    border: 1px solid rgba(0, 0, 0, .08);
}
.more-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-weight: 700;
    font-size: .85rem;
}
.photo-full {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, .08);
}

/* ---- Assessment workspace ---- */
.criterion {
    padding: .6rem 0;
    border-bottom: 1px solid #eef0f2;
}
.criterion:last-of-type { border-bottom: 0; }
.criterion-note {
    margin-top: .4rem;
    margin-left: 1.6rem;
    max-width: calc(100% - 1.6rem);
}
.evidence-item {
    padding: .6rem 0;
    border-bottom: 1px solid #eef0f2;
}
.evidence-item:last-of-type { border-bottom: 0; }

/* ---- Footer ---- */
.app-footer {
    margin-top: auto;
    background: var(--brand-black);
    color: rgba(255, 255, 255, .6);
    padding: .9rem 0;
    font-size: .82rem;
}
.app-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.env-badge {
    background: var(--brand-accent);
    color: #fff;
    font-weight: 700;
    font-size: .65rem;
    padding: .1rem .45rem;
    border-radius: 4px;
    letter-spacing: 1px;
}
