body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.navbar-profile {
    margin-left: auto;
    display: flex;
    align-items: center;
}
.navbar {
    background: #7d29c2; /* Talland purple */
    padding: 0 48px;
    height: 80px;
    display: flex;
    align-items: center;
}

/* styling for the list items ('Overzicht', 'Reserveren') */
.navbar-list {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 0 1 auto;
    justify-content: flex-start;
}
.navbar-list li {
    margin-right: 40px;
}
.navbar-list li:last-child {
    margin-right: 0;
}

.navbar-list li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: color 0.2s;
}

ul, li {
    list-style: none;
}

/* styling for the talland logo */
.navbar-logo img.talland-logo {
    height: 60px;
    margin-right: 24px;
}

/* styling for the profile icon and dropdown menu */
.profile-menu {
    position: absolute;
    margin: 0;
    padding: 8px 0;
    top: 70px;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    min-width: 170px;
    z-index: 100;
    display: none;
}

.profile-menu li a {
    color: #7d29c2;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    display: block;
    padding: 10px 18px;
    cursor: pointer;
}

.profile-menu li a:hover,
.profile-menu button:hover {
    background: #f3e8ff;
}

/* styling for the logout button */
.profile-menu button {
    background: #e53935;
    color: #fff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

.profile-menu button:hover {
    background: #b71c1c;
}

/* dropdown menu for Reserveren*/
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    min-width: 160px;
    padding: 8px 0;
    z-index: 90;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    color: #7d29c2;
    text-decoration: none;
    display: block;
    padding: 10px 18px;
    width: 100%;
}

.dropdown-menu li a:hover {
    background: #f3e8ff;
}

/* makes the dropdown visible when clicked */
.dropdown-menu.show {
    display: block;
}

/* hide hamburger menu by default */
.navbar-toggle {
    display: none;
}

/* mobile device styling */
@media (max-width: 768px) {
    .navbar {
        height: 56px;
        padding: 0 16px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* hide talland logo on mobile */
    .navbar-logo {
        display: none;
    }
    .navbar-toggle {
        display: flex;
        align-items: center;
        position: relative;
        margin-left: 8px;
        z-index: 102;
        background: none;
        border: none;
        height: 40px;
    }
    .navbar-toggle-icon {
        display: block;
        width: 32px;
        height: 4px;
        background: #fff;
        position: relative;
    }
    .navbar-toggle-icon::before,
    .navbar-toggle-icon::after {
        content: '';
        display: block;
        width: 32px;
        height: 4px;
        background: #fff;
        position: absolute;
        left: 0;
    }
    .navbar-toggle-icon::before {
        top: -10px;
    }
    .navbar-toggle-icon::after {
        top: 10px;
    }
    .navbar-profile {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 101;
        display: flex;
        align-items: center;
    }
    .navbar-list {
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0;
        width: 100%;
        background: #7d29c2;
        display: none;
        z-index: 99;
    }
    .navbar-list.navbar-list-open {
        display: flex;
    }
    .navbar-list li {
        margin: 0;
    }
}