/* Header stijlen */
header {
    background-color: rgba(26, 71, 42, 0.9);
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Grotere logo op alle apparaten */
.logo {
    height: 100px; /* Vergroot de hoogte op desktop */
    width: auto;
    transition: all 0.3s ease;
}

.slogan {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 5px;
    color: #c8e6c9;
}

.login-container {
    max-width: 300px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form .form-group {
    margin-bottom: 10px;
}

.login-form input {
    padding: 8px;
    border: 1px solid #4a7260;
    border-radius: 4px;
    width: 100%;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-login, .btn-register {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-login {
    background-color: #4CAF50;
    color: white;
    flex: 1;
}

.btn-login:hover {
    background-color: #45a049;
}

.btn-register {
    background-color: #5d8b75;
    color: white;
    flex: 1;
}

.btn-register:hover {
    background-color: #4a7260;
}

.form-links {
    margin-top: 10px;
    text-align: center;
    font-size: 0.8rem;
}

.form-links a {
    color: #c8e6c9;
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

/* Verbeterd gebruikersmenu wanneer ingelogd */
.user-menu {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-info:hover {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.profile-pic {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4CAF50;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.user-info:hover .profile-pic {
    transform: scale(1.05);
    border-color: #c8e6c9;
}

.user-name-role {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #fff;
}

/* Role badge in user menu */
.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-top: 3px;
    font-weight: bold;
}

.role-admin {
    background-color: #d4edda;
    color: #155724;
}

.role-moderator {
    background-color: #d1ecf1;
    color: #0c5460;
}

.role-lid {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Verbeterde dropdown styling */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.user-menu:hover .dropdown-content {
    display: block;
    transform: translateY(0);
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.dropdown-content a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #4a7260;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown-content .dropdown-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 0;
}

.dropdown-content .admin-link {
    background-color: #f8f9fa;
    color: #1a472a;
    font-weight: 500;
}

.dropdown-content .admin-link i {
    color: #1a472a;
}

.dropdown-content .logout-link {
    color: #dc3545;
}

.dropdown-content .logout-link i {
    color: #dc3545;
}

/* Responsieve aanpassingen */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-container {
        align-items: center;
    }
    
    .logo {
        height: 80px; /* Nog steeds groot op mobiel */
        width: auto;
        max-width: 100%; /* Voorkomt dat het logo te breed wordt */
        margin: 0 auto 10px;
    }
    
    .login-container {
        width: 100%;
        max-width: 100%;
    }
    
    .user-info {
        padding: 10px;
        justify-content: center;
        width: 100%;
    }
    
    .profile-pic {
        width: 48px;
        height: 48px;
    }
    
    .dropdown-content {
        width: 100%;
        left: 0;
        right: 0;
    }
}
