:root {
    --bg-light: rgb(244, 231, 166);
    --bg-dark: rgb(97, 15, 12);
    --bg-blue: rgb(181, 199, 225);
    --bg-green: rgb(107, 117, 52);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Times New Roman", Times, serif;
    background-color: var(--bg-blue);
    color: #333;
    line-height: 1.6;
    height: 800px;
}

/* Layout */
.container {
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Header & Nav */
header {
    background-color: var(--bg-dark);
    padding: 60px 20px 120px;
    text-align: center;
}

.header-content h1 {
    color: var(--bg-light);
    font-size: clamp(32px, 6vw, 60px);
    margin: 0;
}

nav {
    position: absolute;
    top: 20px;
    left: 60px;
    display: flex;
    gap: 10px;
}

nav a {
    text-decoration: none;
    padding: 6px 16px;
    color: var(--bg-light);
    background-color: rgba(0,0,0,0.25);
    border-radius: 6px;
    font-weight: bold;
}

/* Admin controls */
.admin-controls {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    z-index: 1000;
    background-color: transparent;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: none;
}

.admin-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-light);
    border: 1px solid rgba(244, 231, 166, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.admin-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--bg-light);
}
#adminStatus {
    color: var(--bg-light);
    font-size: 12px;
    margin-left: 8px;
}

/* Main content */
main {
    padding: 40px 20px;
    height: 100%;
    background-color: var(--bg-blue);
}

section {
    max-width: 700px;
    margin: 0 auto 40px;
}

section h2 {
    margin-bottom: 10px;
    font-size: 36px;
    color: var(--bg-dark);
}

section p {
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--bg-dark);
}

/* RSVP Form */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input, textarea {
    padding: 14px;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--bg-blue);
    border-radius: 12px;
    border: none;
}

input::placeholder, textarea::placeholder {
    color: var(--bg-blue);
}

button {
    background-color: var(--bg-green);
    color: var(--bg-light);
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
}

button:hover { opacity: 0.9; }

#rsvpStatus { margin-top: 12px; font-size: 16px; }

/* Aanwezigheidslijst */
.attendees-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.attendee-item {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--bg-green);
}

.attendee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.attendee-header h3 {
    color: var(--bg-dark);
    font-size: 22px;
    margin: 0;
}

.guest-count {
    background-color: var(--bg-green);
    color: var(--bg-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.attendee-message {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin: 10px 0;
    font-style: italic;
}

.you {
    font-size: 12px;
    color: var(--bg-green);
    margin-left: 8px;
    font-weight: normal;
}

.attendee-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.edit-btn, .delete-btn {
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
}

.edit-btn {
    background-color: var(--bg-green);
    color: var(--bg-light);
}

.delete-btn {
    background-color: var(--bg-dark);
    color: var(--bg-light);
}

.edit-btn:hover, .delete-btn:hover {
    opacity: 0.85;
}

footer {
    text-align: center;
    padding: 40px 0px;
    background-color: var(--bg-dark);
    color: var(--bg-light);
    min-height: fit-content;
    position: relative; 
    bottom: 0px;
    width: 100%;
}

/* Responsive */
@media (max-width: 600px) {
    header {
        padding: 40px 16px 80px;
    }
    nav {
        position: relative;
        justify-content: center;
        left: auto;
        top: auto;
        margin: 8px auto 16px;
        flex-wrap: wrap;
    }
    .admin-controls {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        gap: 6px;
    }
    .admin-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
    #adminStatus {
        font-size: 11px;
        margin-left: 4px;
    }
    section {
        padding: 0 6px;
    }
    section h2 {
        font-size: 28px;
    }
    section p {
        font-size: 16px;
    }
    input, textarea {
        padding: 12px;
        font-size: 14px;
    }
    button {
        font-size: 16px;
        padding: 10px;
    }
}

@media (min-width: 601px) and (max-width: 1200px) {
    header {
        padding: 50px 20px 100px;
    }
    nav {
        left: 30px;
        top: 18px;
    }
    .admin-controls {
        top: 12px;
        right: 16px;
    }
    section h2 {
        font-size: 32px;
    }
    section p {
        font-size: 17px;
    }
    input, textarea {
        padding: 13px;
        font-size: 15px;
    }
    button {
        font-size: 17px;
    }
}

@media (min-width: 1201px) {
    header {
        padding: 70px 24px 140px;
    }
    .admin-controls {
        top: 18px;
        right: 24px;
    }
    section h2 {
        font-size: 38px;
    }
    section p {
        font-size: 19px;
    }
}

