/* ── Wrapper: nav left, presave right ── */
#navPresaveWrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

/* ── Nav Tabs (left side) ── */
#differentFormsNav {
    flex: 0 1 auto;
    min-width: 200px;
    max-width: 50%;
}
#differentFormsNav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}
#differentFormsNav ul li {
    flex: 1;
    display: flex;
    transition: flex 0.3s ease;
}
#differentFormsNav ul li:hover,
#differentFormsNav ul li:focus-within,
#differentFormsNav ul li:active {
    flex: 1.2;
}

/* keep all your existing #differentFormsNav ul li a styles unchanged */

/* ── Presave (right side) ── */
#presave {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background-color: rgb(255, 235, 185);
    border: 2px groove black;
    border-radius: 8px;
}
#presave div {
    display: flex;
    align-items: center;
    gap: 4px;
}
#presave label {
    cursor: pointer;
    font-size: 0.9rem;
    color: darkred;
    font-weight: bold;
}
#presaveLinks {
    display: flex;
    gap: 8px;
}
#presaveLinks a {
    text-decoration: none;
    padding: 4px 10px;
    background-color: darkred;
    color: whitesmoke;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}
#presaveLinks a:hover {
    background-color: darksalmon;
    color: rgb(0, 51, 153);
}

/* ── Responsive: stack on small screens ── */
@media only screen and (max-width: 549px) {
    #navPresaveWrapper {
        flex-direction: column;
        align-items: stretch;
    }
    #differentFormsNav {
        max-width: 100%;
    }
    #presave {
        justify-content: center;
    }
}