:root {
    --brand-gold: #c69c37;
    --brand-brown: #3a2417;
    --brand-cream: #f7f0e3;
    --brand-deep: #1d140f;
}

body {
    background:
        radial-gradient(circle at top right, rgba(198, 156, 55, 0.16), transparent 22%),
        linear-gradient(180deg, #fff9ef 0%, #f5eee6 100%);
    color: #23160f;
    font-family: "Tahoma", sans-serif;
}

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.auth-shell {
    width: min(100%, 520px);
    padding: 1.25rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    padding: 2.25rem;
}

.auth-brand,
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-brand {
    flex-direction: column;
    text-align: center;
    margin-bottom: 1rem;
}

.sidebar-brand {
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.brand-logo,
.auth-logo {
    display: block;
    object-fit: contain;
    background: #2a1a11;
    border: 1px solid rgba(198, 156, 55, 0.28);
    box-shadow: 0 12px 24px rgba(18, 10, 7, 0.18);
}

.brand-logo {
    width: min(100%, 210px);
    max-width: 210px;
    height: auto;
    border-radius: 24px;
    padding: 0.3rem;
}

.auth-logo {
    width: min(100%, 260px);
    max-width: 260px;
    height: auto;
    border-radius: 20px;
    padding: 0.35rem;
}

.brand-title {
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.admin-shell {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 100vh;
}

.sidebar-panel {
    background: linear-gradient(180deg, #1c130e, #3b2418);
    color: #fff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.55rem;
}

.sidebar-link {
    color: #f4e7cc;
    text-decoration: none;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-brand small {
    color: rgba(244, 231, 204, 0.88);
}

.topbar-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-user {
    min-width: 140px;
}

.sidebar-footer {
    margin-top: auto;
}

.content-panel {
    display: flex;
    flex-direction: column;
}

.content-topbar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    margin: 1rem;
    border-radius: 22px;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-card {
    background:
        linear-gradient(135deg, rgba(29, 20, 15, 0.97), rgba(79, 49, 31, 0.92)),
        url("https://images.unsplash.com/photo-1494976388531-d1058494cdd8?auto=format&fit=crop&w=1400&q=80") center/cover;
    border-radius: 24px;
    color: #fff;
    padding: 2rem;
    min-height: 220px;
    display: flex;
    align-items: end;
    box-shadow: 0 18px 40px rgba(41, 24, 17, 0.16);
}

.eyebrow {
    color: var(--brand-gold);
    letter-spacing: 0.08em;
}

.stat-card,
.summary-line {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(198, 156, 55, 0.18);
    border-radius: 18px;
    padding: 1rem 1.1rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 100%;
}

.stat-card strong,
.summary-line strong {
    font-size: 1.4rem;
    color: var(--brand-brown);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.card {
    border-radius: 22px;
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 22px 22px 0 0 !important;
}

.permission-box {
    border: 1px solid rgba(198, 156, 55, 0.2);
    border-radius: 18px;
    padding: 1rem;
    background: #fffdf9;
}

.btn-primary {
    background: linear-gradient(90deg, var(--brand-brown), var(--brand-gold));
    border: none;
}

.table > :not(caption) > * > * {
    padding: 0.9rem 0.7rem;
}

@media (max-width: 991.98px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar-brand {
        align-items: center;
    }

    .brand-logo {
        max-width: 180px;
    }

    .auth-logo {
        max-width: 220px;
    }
}
