/* ============================================================
   GLOBAL RESET
============================================================ */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden !important;
    background: #f5f5f5;
    font-family: Arial, sans-serif;
}

/* ============================================================
   NAVBAR (SHARED)
============================================================ */

.centered-nav {
    background: #ffffff;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    gap: 28px;
    border-bottom: 1px solid #ccc;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5000;
}

.centered-nav a {
    font-size: 28px;
    color: #000;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
}

.centered-nav a.active {
    background: #f5f5f5;
    border: 1px solid #999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ============================================================
   CONTENT AREA
============================================================ */

.content {
    margin-top: 80px !important;   /* Just below navbar */
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;

    background: white;
    padding: 30px 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* ============================================================
   MEMBERS PAGE LAYOUT — ALWAYS VERTICAL
============================================================ */

.members-layout {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
    align-items: center;
}

/* ============================================================
   INFO BOX (BEITRÄGE)
============================================================ */

.contrib-box {
    width: 100%;
    max-width: 480px;
    border: 1px solid #000;
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);

    /* NEW: little spacing before the button row */
    margin-bottom: 20px !important;
}

/* ============================================================
   FORM BOX
============================================================ */

.members-form-box {
    width: 100%;
    max-width: 480px;

    /* NEW: ensures tiny spacing on all devices */
    margin-top: 6px !important;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.save-btn, .remove-btn, .update-btn {
    flex: 1;
    padding: 10px;
    font-size: 15px;
    border-radius: 6px;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.save-btn {
    background: #4CAF50;
}

.remove-btn {
    background: #d9534f;
}

.remove-btn:disabled {
    background: #888;
}

.update-btn {
    background: #0b4fa8;
}

/* FORM FIELDS */

.form-field {
    margin-bottom: 15px;
}

.form-field label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.fixed-input {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* ============================================================
   MEMBERS LIST
============================================================ */

.members-list-box {
    width: 100%;
    max-width: 480px;
}

.members-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-item {
    padding: 14px;
    background: #f2f2f2;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
}

.member-item:hover {
    background: #e0e0e0;
}

/* ============================================================
   MOBILE ONLY
============================================================ */

@media (max-width: 900px) {

    .content {
        padding: 20px;
        margin-top: 80px !important;
    }

    .members-layout {
        gap: 25px;
    }

    .contrib-box,
    .members-form-box,
    .members-list-box {
        width: 100% !important;
        max-width: 480px !important;
    }

    .member-item {
        padding: 16px !important;
    }
}
