body {
    font-family: 'Arial', sans-serif;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    box-sizing: border-box;
    background-image: url('achtergrond.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Algemene container styling */
.container, .auth-container {
    background-color: rgba(255, 255, 255, 0.85); /* 15% transparant */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    text-align: center;
}

h1 {
    color: #00796b;
    margin-bottom: 15px;
    font-size: 2.2em;
}

p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #eee;
}

li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1em;
    color: #444;
}

li:last-child {
    border-bottom: none;
}

li.betaald span {
    text-decoration: line-through;
    color: #888;
}

input[type="checkbox"] {
    width: 25px;
    height: 25px;
    cursor: pointer;
    accent-color: #00796b;
    margin-left: 15px;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 1.8em;
    }
    p, li {
        font-size: 1em;
    }
    li {
        padding: 12px 0;
    }
    input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
}

h2 {
    color: #00796b;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.financial-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 300px;
}

.input-group label {
    font-size: 1em;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.financial-inputs input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1.1em;
    box-sizing: border-box;
}

.financial-inputs input[type="number"]:focus {
    outline: none;
    border-color: #00796b;
    box-shadow: 0 0 5px rgba(0, 121, 107, 0.3);
}

button#updateTotaal {
    background-color: #00796b;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    width: 100%;
    max-width: 200px;
}

button#updateTotaal:hover {
    background-color: #004d40;
}

.total-display {
    background-color: #e0f2f7;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid #b2ebf2;
}

.total-display h3 {
    margin: 0;
    color: #00796b;
    font-size: 1.6em;
}

.total-display #totaalBedrag {
    font-weight: bold;
    color: #004d40;
    font-size: 1.8em;
}

@media (max-width: 600px) {
    .financial-inputs {
        gap: 10px;
    }
    .input-group {
        max-width: 100%;
    }
    button#updateTotaal {
        font-size: 1em;
        padding: 10px 20px;
        max-width: 180px;
    }
    .total-display h3 {
        font-size: 1.4em;
    }
    .total-display #totaalBedrag {
        font-size: 1.6em;
    }
}

.auth-page {
    display: none;
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.85); /* Ook hier 15% transparant */
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-page.active {
    display: block;
}

.auth-container {
    padding: 20px;
}

.auth-container h2 {
    color: #00796b;
    margin-bottom: 25px;
    font-size: 2em;
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-container .input-group {
    text-align: left;
    margin-bottom: 10px;
}

.auth-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.auth-container input[type="text"],
.auth-container input[type="password"] {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1.1em;
}

.auth-container button {
    background-color: #00796b;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.auth-container button:hover {
    background-color: #004d40;
}

.auth-container p {
    margin-top: 20px;
    font-size: 0.95em;
    color: #666;
}

.auth-container a {
    color: #00796b;
    text-decoration: none;
    font-weight: bold;
}

.auth-container a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

.logout-button {
    background-color: #d32f2f;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 30px;
}

.logout-button:hover {
    background-color: #b71c1c;
}

body .container {
    margin: 20px auto;
}

@media (max-width: 600px) {
    .auth-page {
        margin: 20px auto;
        padding: 20px;
    }
    .auth-container h2 {
        font-size: 1.8em;
    }
    .auth-container input[type="text"],
    .auth-container input[type="password"],
    .auth-container button {
        font-size: 1em;
        padding: 10px;
    }
}

/* Nieuwe CSS voor gebruikersinfo header en profielpagina */
.user-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 10px; /* Ruimte tussen avatar/naam en saldo */
}

.user-avatar-container {
    display: flex;
    align-items: center;
    gap: 5px; /* Ruimte tussen avatar en naam */
    cursor: pointer; /* Zorgt dat het klikbaar lijkt */
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00796b;
}

.username-display {
    font-weight: bold;
    color: #00796b;
    font-size: 1.2em;
}

.saldo-display {
    font-size: 1.1em;
    color: #555;
    margin-left: 20px; /* Ruimte tussen gebruikersnaam/avatar en saldo */
}

.profile-button {
    background-color: #00796b;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
}

.profile-button:hover {
    background-color: #004d40;
}

/* Styling voor de Profielpagina */
#profilePage {
    text-align: left; /* Zorgt dat tekst links uitgelijnd is binnen de container */
}

.profile-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.current-avatar-section, .avatar-upload-section, .payday-settings-section {
    margin-bottom: 30px;
}

.current-avatar-section h3, .avatar-upload-section h3, .payday-settings-section h3 {
    color: #00796b;
    margin-bottom: 15px;
    font-size: 1.4em;
    text-align: center;
}

.large-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00796b;
    display: block;
    margin: 0 auto 20px auto; /* Centreer de avatar */
}

.standard-avatars {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap; /* Zorgt voor omslag op kleinere schermen */
}

.standard-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.standard-avatar:hover {
    border-color: #00796b;
    transform: scale(1.1);
}

.standard-avatar.selected {
    border-color: #00796b;
    box-shadow: 0 0 8px rgba(0, 121, 107, 0.5);
}

.button-small {
    background-color: #00796b;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    width: auto; /* Aanpassen aan content */
    display: inline-block; /* Voor inline weergave */
}

.button-small:hover {
    background-color: #004d40;
}

/* Nieuwe CSS voor Weekdag Kiezer */
.weekday-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap; /* Zorgt voor omslag op kleinere schermen */
}

.weekday-selector button {
    background-color: #e0f2f7;
    color: #00796b;
    padding: 12px 18px;
    border: 1px solid #b2ebf2;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    min-width: 80px; /* Zorgt voor consistente breedte */
}

.weekday-selector button:hover {
    background-color: #c7ecee;
    border-color: #00796b;
}

.weekday-selector button.selected {
    background-color: #00796b;
    color: white;
    border-color: #004d40;
    box-shadow: 0 4px 10px rgba(0, 121, 107, 0.2);
    font-weight: bold;
}
