:root {
    --bg: #ECE7D1;
    --topbar: #8A7650;
    --sidebar: #DBCEA5;

    --text: #3f3525;
    --muted: rgba(63, 53, 37, .68);

    --card: #f8f4e7;
    --shadow: 0 10px 25px rgba(63, 53, 37, .10);

    --radius: 12px;

    --link: #6d5d42;

    --btn-bg: rgba(255, 250, 240, .55);
    --btn-border: rgba(63, 53, 37, .14);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;

    font-family: "Inter", sans-serif;

    line-height: 1.5;
    letter-spacing: -0.01em;

    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== Topbar ===== */

.topbar {
    height: 64px;

    background: var(--topbar);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 18px;

    box-shadow: 0 2px 10px rgba(63, 53, 37, .08);
}

.topbar__left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    background: rgba(255, 255, 255, .20);

    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;

    font-size: 22px;

    backdrop-filter: blur(6px);
}

.brand {
    color: #fdfaf2;

    font-size: 20px;
    font-weight: 800;
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.muted {
    color: var(--muted);
}

/* ===== Layout ===== */

.layout {
    display: grid;
    grid-template-columns: 290px 1fr;

    min-height: calc(100vh - 64px);
}

/* ===== Sidebar ===== */

.sidebar {
    padding: 16px;

    background: var(--sidebar);

    border-right: 1px solid rgba(63, 53, 37, .08);
}

.menu {
    padding: 0;

    background: transparent;

    border: none;
    border-radius: 0;
}

.menu-section {
    margin-bottom: 18px;
    padding: 14px;

    background: rgba(255, 250, 240, .42);

    border: 1px solid rgba(63, 53, 37, .08);
    border-radius: 16px;

    backdrop-filter: blur(10px);
}

.menu-section:last-child {
    margin-bottom: 0;
}

.menu-section__title {
    display: block;

    margin-bottom: 14px;
    padding: 10px 12px;

    background: rgba(255, 255, 255, .60);

    border: 1px solid rgba(63, 53, 37, .06);
    border-radius: 12px;

    color: #5a4d37;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .08em;

    box-shadow: 0 3px 8px rgba(63, 53, 37, .05);

    cursor: default;
    user-select: none;
    pointer-events: none;
}

.menu__link {
    display: block;

    padding: 11px 12px;
    margin-bottom: 6px;

    border-radius: 12px;

    color: var(--link);

    font-weight: 600;
    line-height: 1.25;

    transition: .2s ease;
}

.menu__link:last-child {
    margin-bottom: 0;
}

.menu__link:hover {
    background: rgba(255, 255, 255, .58);

    transform: translateX(4px);
}

/* ===== Content ===== */

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

    min-height: calc(100vh - 64px);

    padding: 22px 26px;
}

.content__card {
    min-height: 240px;

    padding: 24px;

    background: var(--card);

    border: 1px solid rgba(63, 53, 37, .06);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

/* ===== Messages ===== */

.messages {
    margin: 0 0 18px;
    padding: 0;

    list-style: none;
}

.message {
    margin-bottom: 10px;
    padding: 12px 14px;

    border-radius: 10px;

    font-weight: 600;
}

.message--success {
    background: #dfe8d6;
    color: #536147;
}

.message--error {
    background: #f3d8d3;
    color: #8a4b42;
}

.message--warning {
    background: #f4e7bf;
    color: #8c6b2f;
}

.message--info {
    background: #dddccf;
    color: #5d5b4f;
}

/* ===== Footer ===== */

.footer {
    margin-top: auto;

    padding-top: 26px;
}

.footer-card {
    padding: 26px 20px;

    background: #8E977D;

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 16px;

    text-align: center;

    box-shadow: 0 8px 20px rgba(63, 53, 37, .10);
}

.footer-title {
    margin: 0 0 10px;

    font-size: 22px;
    font-weight: 800;

    color: #fdfaf2;
}

.footer-text {
    max-width: 520px;

    margin: 0 auto 22px;

    color: rgba(255, 250, 240, .82);

    font-size: 15px;
    font-weight: 500;

    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;

    flex-wrap: wrap;

    margin-bottom: 18px;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 11px 14px;

    background: rgba(255, 255, 255, .14);

    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;

    color: #fffdf7;

    font-weight: 600;

    transition: .2s ease;
}

a.footer-social:hover {
    background: rgba(255, 255, 255, .24);

    transform: translateY(-2px);
}

.footer-social--static {
    cursor: default;
}

a.footer-social--static:hover {
    background: rgba(255, 255, 255, .14);

    transform: none;
}

.footer-social__icon {
    font-size: 20px;
}

.footer-copy {
    color: rgba(255, 250, 240, .72);

    font-size: 13px;
    font-weight: 600;
}

/* ===== Buttons ===== */

.logout {
    margin: 0;
}

.btn {
    appearance: none;

    padding: 10px 14px;

    background: var(--btn-bg);

    border: 1px solid var(--btn-border);
    border-radius: 10px;

    color: #fdfaf2;

    cursor: pointer;

    font-weight: 600;

    transition: .2s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, .18);
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 12px;
    }

    .content {
        min-height: auto;
        padding: 14px 12px;
    }

    .footer {
        margin-top: 24px;
    }

    .footer-links {
        flex-direction: column;
    }
}

