/* === Reset, base styles === */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #f2f0ed;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #101010;
    font-size: 1.05rem;
    min-height: 100vh;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 600;
    color: #111;
    margin-top: 0;
    margin-bottom: 0.6em;
}

a {
    color: #16b98a;
    text-decoration: none;
    transition: color 0.15s;
}
a:hover, a:focus {
    color: #129e7a;
    text-decoration: underline;
}

/* Top Navbar */
.top-navbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f2f0ed;
    padding: 0 40px;
    min-height: 68px;
    border-bottom: 1px solid #111;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-logo img {
    height: 28px;
    display: block;
}
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links li a {
    text-decoration: none;
    color: #111;
    font-size: 0.97rem;
    font-weight: 500;
    padding: 6px 0;
    transition: font-weight 0.12s;
    border-bottom: none;
}
.nav-links li a:hover,
.nav-links li a.active {
    font-weight: 700;
    color: #111;
    border-bottom: none;
}
.nav-user img {
    height: 28px;
    width: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #e0e0e0;
    border: 1.5px solid #eee;
}

/* Burger styles (hidden on desktop) */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    z-index: 1201;
}
.burger span {
    display: block;
    width: 22px;
    height: 3px;
    background: #111;
    border-radius: 2px;
    margin: 3px 0;
    transition: 0.2s;
}

/* Mobile nav overlay (right slide-in) */
.mobile-nav,
.mobile-nav-backdrop {
    display: none;
}
@media (max-width: 700px) {
    .nav-links {
        display: none !important;
    }
    .nav-user {
        display: none !important;
    }
    .burger {
        display: flex;
    }
    .mobile-nav,
    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 1200;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s;
    }
    .mobile-nav.open,
    .mobile-nav-backdrop.open {
        pointer-events: all;
        opacity: 1;
    }
    .mobile-nav {
        background: #f2f0ed;
        width: 84vw;
        max-width: 340px;
        height: 100vh;
        box-shadow: -2px 0 24px 0 rgba(0,0,0,0.09);
        right: 0; /* Open from right */
        top: 0;
        left: auto;
        transform: translateX(100%);
        transition: transform 0.21s cubic-bezier(.55,.1,.31,1.1), opacity 0.2s;
        opacity: 0;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 36px 22px 22px 22px;
    }
    .mobile-nav.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: all;
    }
    .mobile-nav nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 32px;
        font-size: 1.11rem;
    }
    .mobile-nav nav ul li a {
        color: #111;
        text-decoration: none;
        font-weight: 500;
        transition: font-weight 0.12s;
    }
    .mobile-nav nav ul li a:hover,
    .mobile-nav nav ul li a.active {
        font-weight: 700;
        color: #111;
    }
    .mobile-nav-user {
        margin-top: auto;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        padding-top: 24px;
        padding-bottom: 12px;
    }
    .mobile-nav-user img {
        height: 38px;
        width: 38px;
        border-radius: 50%;
        border: 1.5px solid #eee;
    }
    .mobile-nav-backdrop {
        background: rgba(50,50,50,0.17);
        z-index: 1199;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.21s;
    }
    .mobile-nav-backdrop.open {
        opacity: 1;
        pointer-events: all;
    }
}

/* Flash messages (login errors) */
.flash-messages {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    width: 100%;
    text-align: center;
}

.flash-messages li {
    color: #e74c3c;
    font-weight: 500;
    font-size: 1.07rem;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.section-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.07);
    padding: 24px 32px 24px 32px;
    margin-top: 26px;
    margin-bottom: 0;
}
.section-title {
    display: flex;
    align-items: center;
    font-size: 1.18rem;
    font-weight: 600;
    color: #16b98a;
    margin-bottom: 16px;
    gap: 8px;
}
.section-title .material-icons {
    font-size: 1.3em;
}

.blueprint-detail-wrapper {
    max-width: 820px;
    margin: 48px auto 0 auto;
    padding: 0 24px;
}

.submit-button {
    background: #52ffc5;
    color: #111;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    border-radius: 6px;
    padding: 14px 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 10px 0 rgba(82,255,197,0.10);
    padding-left: 1em;
    padding-right: 1em;
}

