/* Base (mobile) layout */

.applicaties{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Scrollable navbar - mobile first */
.applicaties-navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem; /* space between items */
    overflow-x: auto; /* horizontal scroll if needed */
    padding: 0.5rem;
    background: var(--color-offwhite);
    border-radius: 10px;
    box-shadow: inset 0 0 5px var(--shadow-black);
    scrollbar-width: thin; /* Firefox */
}

.applicaties-navbar::-webkit-scrollbar {
    height: 6px; /* horizontal scrollbar height */
}

.applicaties-navbar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

/* Each item stays fixed size, prevents shrinking too much */
.applicaties-navbar .item {
    flex: 0 0 auto; /* do not shrink */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    min-width: 7.5rem;
    max-width: 7.5rem;
    transition: background-color 0.2s, color 0.2s;
}

/* Icon styling remains */
.applicaties-navbar .item i {
    font-size: 1.2rem;
    color: var(--color-gray-dark);
}

.applicaties-navbar .item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    color: var(--color-gray-dark);
    text-decoration: none;
}

/* Hover and active states */
.applicaties-navbar .item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.applicaties-navbar .item.active {
    background-color: var(--color-black);
}

.applicaties-navbar .item.active i,
.applicaties-navbar .item.active a {
    color: var(--color-white);
}


/* Leden css */ 

/* -------------------- Leden Page / MyTeam Styles -------------------- */
.wrap_commissie_items {
    background: var(--color-white);
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#commissie-select {
    width: 100%;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Members container */
.myteam-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* -------------------- Leden Cards (Mobile First) -------------------- */
.myteam-card {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    align-items: center;
    background: var(--color-white);
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 1rem;
    gap: 0.6rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.myteam-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Member image */
.myteam-card-pic img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-white);
    outline: 2px solid var(--color-black);
}

/* Text info */
.myteam-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
}

.myteam-card-text .member-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-black);
}

.myteam-card-text .member-role {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
}

/* Buttons under email */
.button-container-kaart {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.button-container-kaart .item a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.button-container-kaart .item a:hover {
    background: var(--color-gray-dark);
    transform: translateY(-1px);
}
/* -------------------- Delete Confirmation Modal -------------------- */
.modal-overlay {
    display: none; /* hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.25s ease;;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}


.modal-content {
    background: var(--color-white);
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    font-size: 0.95rem;
    color: var(--color-black);
    transform: scale(0.8);
    transition: transform 0.25s ease;
}

.modal-content ul li{
    list-style: none;
    margin: 1rem;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-cancel, .btn-delete {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-cancel {
    background: var(--color-offwhite);
    color: var(--color-black);
}

.btn-cancel:hover {
    background: var(--color-gray-light);
}

.btn-delete {
    background: var(--color-black);
    color: var(--color-white);
}

.btn-delete:hover {
    background: var(--color-gray-dark);
    transform: translateY(-1px);
}

/* Hide committees initially (JS will toggle) */
.committee_content {
    display: none;
}

/* -------------------- New Member Form -------------------- */
.new_member {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.new_member h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 1rem;
}

.new_member .wrap_items {
    background: var(--color-white);
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.new_member form .item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.new_member label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-black);
}

.new_member input.textinput,
.new_member select.textinput,
.new_member textarea.textinput {
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.new_member input.textinput:focus,
.new_member select.textinput:focus,
.new_member textarea.textinput:focus {
    outline: none;
    border-color: var(--color-black);
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
}

.new_member .button {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    margin:  1rem 0 0 0;
    background: var(--color-black);
    color: var(--color-white);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.new_member .button:hover {
    background: var(--color-gray-dark);
    transform: translateY(-1px);
}

/* Optional: textarea auto height */
.new_member textarea.textinput {
    min-height: 60px;
    resize: vertical;
}


/* -------------------- Events New / Edit Form -------------------- */
.new_event {
    background: var(--color-white);
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.new_event form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.new_event .event .item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.new_event .event label {
    font-weight: 600;
    color: var(--color-black);
    font-size: 0.95rem;
}

.new_event .event input.textinput,
.new_event .event textarea.textinput,
.new_event .event select.textinput {
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
}

.new_event .event textarea.textinput {
    min-height: 80px;
    resize: vertical;
}

.new_event input.button {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--color-black);
    color: var(--color-white);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.new_event input.button:hover {
    background: var(--color-gray-dark);
    transform: translateY(-1px);
}

/* -------------------- Edit Event Form -------------------- */

#edit_event-select {
    width: 100%;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.edit_event {
    background: var(--color-white);
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edit_event form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edit_event .event .item,
.edit_event .event select.textinput,
.edit_event .event input.textinput,
.edit_event .event textarea.textinput {
    width: 100%;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.edit_event label {
    font-weight: 600;
    color: var(--color-black);
    font-size: 0.95rem;
}

.edit_event input.button {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--color-black);
    color: var(--color-white);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.edit_event input.button:hover {
    background: var(--color-gray-dark);
    transform: translateY(-1px);
}

/* Dropdown select at the top */
.edit_event .event-selection {
    margin-bottom: 1rem;
}

.edit_event .event-selection select.textinput {
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
}


/* ===== AVG Page Styles ===== */
.wrap-avg {
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #333333;
    line-height: 1.6;
}

.wrap-avg h2 {
    color: var(--color-black); 
    margin-bottom: 1rem;
    text-align: center;
}

.wrap-avg h3 {
    font-size: 1.5rem;
    color: var(--color-black);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.wrap-avg h4 {
    font-size: 1.25rem;
    color: var(--color-gray-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.AVG-tekst p {
    margin-bottom: 1rem;
}

.avg-section {
    margin-bottom: 2rem;
}

.avg-list, .avg-list ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.avg-list li {
    margin-bottom: 0.5rem;
}

.avg-paragraaf {
    margin-top: 1.5rem;
}

.wrap-avg form {
    text-align: center;
    margin-top: 2rem;
}

.wrap-avg .accept_avg input.button {
    padding: 0.6rem 1rem;
    border: none;
    width: 100%;
    border-radius: 8px;
    background: var(--color-black);
    color: var(--color-white);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.wrap-avg .accept_avg input.button:hover {
    background: var(--color-gray-dark);
    transform: translateY(-1px);
}



/* -------------------- Desktop layout (≥992px) -------------------- */
@media (min-width: 768px) {
    .applicaites {
        gap: 2rem;
    }

    .applicaites-navbar {
        align-items: flex-start;
        width: 100%;
        padding: 1rem;
    }

    .applicaites-navbar .item {
        width: 100%;
        justify-content: flex-start;
        gap: 0.8rem;
        padding: 0.6rem 0.8rem;
    }

    .applicaites-navbar .item i {
        font-size: 1.2rem;
    }

    .applicaites-navbar .item a {
        font-size: 0.95rem;
    }

    .applicaites .main {
        padding: 1.5rem;
    }

    .wrap_commissie_items {
        gap: 2rem;
    }

    .myteam-card {
        flex-direction: column;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }

    .myteam-card-text {
        align-items: center;
    }

    .button-container-kaart {
        justify-content: center;
    }

    .wrap_items {
        padding: 2rem;
    }
}