/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --arch-blue:       #1e6fd9;
    --arch-blue-mid:   #2e8bef;
    --arch-blue-light: #5aaeff;
    --arch-blue-hover: #1a60c4;
    --bg-page:         #f0f4f8;
}

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-page);
    min-height: 100vh;
    margin: 0;
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar-arch {
    background: linear-gradient(135deg, var(--arch-blue) 0%, var(--arch-blue-mid) 100%);
    box-shadow: 0 2px 14px rgba(30, 111, 217, 0.28);
    padding: 0.55rem 1.5rem;
}

.navbar-arch .navbar-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-arch .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.15),
        0 2px 10px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s, box-shadow 0.25s;
    flex-shrink: 0;
}

.navbar-arch .navbar-brand:hover .brand-logo {
    transform: rotate(-6deg) scale(1.08);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.28),
        0 4px 16px rgba(0, 0, 0, 0.45);
}

.navbar-arch .nav-link {
    color: rgba(255, 255, 255, 0.80) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.48rem 1rem;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.navbar-arch .nav-link:hover,
.navbar-arch .nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff !important;
}

.navbar-arch .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.38);
}
.navbar-arch .navbar-toggler-icon { filter: invert(1); }

/* ── Page wrapper ──────────────────────────────────────────── */
.page-wrapper { padding: 24px 18px 52px; }

/* ── Navbar user section ───────────────────────────────────── */
.nav-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-username {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.9);
    font-size: 0.88rem;
    font-weight: 500;
}

.nav-role-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 20px;
}

.nav-role-badge.nav-role-admin {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.nav-role-badge.nav-role-user {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
}

.btn-nav-logout {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 7px;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
}

.btn-nav-logout:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

/* ── Shared button ─────────────────────────────────────────── */
.btn-arch {
    background: linear-gradient(135deg, var(--arch-blue), var(--arch-blue-mid));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 9px 20px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.btn-arch:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }
.btn-arch:active { transform: translateY(0); }
