* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    min-height: 100vh;
    color: #f5f5f5;
}

/* Header */
.header-witdh {
    width: 100%;
    height: 100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #232526;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Linkerkant: logo en titel */
.site-title-logo {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Links uitlijnen */
    background: none;
}

.site-title-logo img {
    height: 60px;
    margin-right: 15px;
}

.site-title-logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffb347;
    letter-spacing: 2px;
}

.site-title-logo a {
    text-decoration: none;
    color: #ffb347;
}

/* Midden */
.witdh-50 {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
}

.witdh-50 h2 {
    font-size: 1.3rem;
    color: #f5f5f5;
    background: none;
    font-weight: 400;
}

/* Rechterkant: nav */
.witdh-25 {
    width: 25%;
    display: flex;
    align-items: center;
    background: none;
}

.witdh-25.nav-right {
    justify-content: flex-end; /* Rechts uitlijnen nav */
}

/* Navigatie */
nav {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    justify-content: flex-end;
}

nav ul li a {
    text-decoration: none;
    color: #ffb347;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: #fff;
    text-shadow: 0 0 5px #ffb34788;
}

/* Login formulier */
.login-border {
    background: rgba(34, 34, 34, 0.95);
    max-width: 350px;
    margin: 60px auto 40px auto;
    padding: 32px 28px 28px 28px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    text-align: center;
}

.login-border h2 {
    color: #ffb347;
    margin-bottom: 22px;
    font-size: 1.5rem;
    font-weight: 600;
}

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

.login-form label {
    text-align: left;
    color: #f5f5f5;
    font-size: 1rem;
    margin-bottom: 4px;
}

.login-form input {
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #292929;
    color: #fff;
    font-size: 1rem;
    transition: border 0.2s;
}

.login-form input:focus {
    border: 1.5px solid #ffb347;
    outline: none;
}

.login-btn {
    margin-top: 10px;
    padding: 10px 0;
    background: linear-gradient(90deg, #ffb347 0%, #ffcc33 100%);
    color: #232526;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.login-btn:hover {
    background: linear-gradient(90deg, #ffcc33 0%, #ffb347 100%);
    color: #232526;
}

/* Footer */
footer {
    text-align: center;
    padding: 18px 0;
    background: #232526;
    color: #aaa;
    font-size: 1rem;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    letter-spacing: 1px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

/* Responsive fix: logo links, nav rechts bij breedte > 900px */
@media (min-width: 901px) {
    .site-title-logo {
        justify-content: flex-start !important;
    }
    .witdh-25.nav-right {
        justify-content: flex-end !important;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.dropdown-toggle:hover {
    background-color: rgba(255, 179, 71, 0.1);
}

.dropdown-toggle img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffb347;
}

.dropdown-toggle span {
    color: #ffb347;
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #232526;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #f5f5f5;
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: #ffb347;
    color: #232526;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: #232526;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #ffb347;
}

.modal h2 {
    color: #ffb347;
    margin-bottom: 20px;
    text-align: center;
}

/* Profile Form Styles */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-form label {
    color: #f5f5f5;
    font-weight: 500;
}

.profile-form input,
.profile-form textarea {
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #292929;
    color: #fff;
    font-size: 1rem;
}

.profile-form input:focus,
.profile-form textarea:focus {
    border-color: #ffb347;
    outline: none;
}

.profile-btn {
    padding: 12px;
    background: linear-gradient(90deg, #ffb347 0%, #ffcc33 100%);
    color: #232526;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-btn:hover {
    background: linear-gradient(90deg, #ffcc33 0%, #ffb347 100%);
}

/* Settings Options */
.settings-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-btn {
    padding: 12px 16px;
    background: linear-gradient(90deg, #ffb347 0%, #ffcc33 100%);
    color: #232526;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.settings-btn:hover {
    background: linear-gradient(90deg, #ffcc33 0%, #ffb347 100%);
}

/* Profile Editing Styles */
.profile-editing-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(34, 34, 34, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-header h1 {
    color: #ffb347;
    margin-bottom: 10px;
}

.profile-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cancel-btn {
    background: #666 !important;
}

.cancel-btn:hover {
    background: #777 !important;
}

/* User Bio in Search Results */
.user-bio {
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 8px;
    font-style: italic;
}

/* Responsive: bij smal scherm alles centreren */
@media (max-width: 900px) {
    .header-witdh {
        flex-direction: column;
        height: auto;
        padding: 20px 10px;
        gap: 10px;
    }
    .site-title-logo, .witdh-25, .witdh-50 {
        width: 100%;
        justify-content: center !important;
    }
    
    .dropdown-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {
    .header-witdh {
        padding: 10px 2vw;
    }
    .login-border {
        padding: 18px 8px 16px 8px;
    }
    footer {
        font-size: 0.95rem;
        padding: 12px 0;
    }
    
    .dropdown-toggle span {
        display: none;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}

/* Dashboard Styles */
.dashboard-main {
    padding: 40px 20px;
    min-height: 60vh;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffb347;
    font-size: 2rem;
}

.account-tiles-container {
    margin-top: 30px;
}

.account-tiles-border {
    background: rgba(34, 34, 34, 0.95);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    border: 3px solid #ffb347;
}

.account-tiles-border h3 {
    text-align: center;
    color: #ffb347;
    margin-bottom: 25px;
    font-size: 1.5rem;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

.account-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.account-tile {
    background: rgba(51, 51, 51, 0.8);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #666;
}

.account-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    border-color: #ffb347;
    background: rgba(68, 68, 68, 0.9);
}

.tile-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.account-tile h4 {
    color: #ffb347;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.account-tile p {
    color: #ccc;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Search Page Styles */
.search-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.search-header {
    text-align: center;
    margin-bottom: 30px;
}

.search-header h1 {
    color: #ffb347;
    margin-bottom: 10px;
    font-size: 2rem;
}

.search-header p {
    color: #ccc;
    font-size: 1.1rem;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.search-form input {
    padding: 12px 16px;
    border: 2px solid #444;
    border-radius: 8px;
    background: #292929;
    color: #fff;
    font-size: 1rem;
    min-width: 300px;
}

.search-form input:focus {
    border-color: #ffb347;
    outline: none;
}

.search-btn {
    padding: 12px 24px;
    background: linear-gradient(90deg, #ffb347 0%, #ffcc33 100%);
    color: #232526;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: linear-gradient(90deg, #ffcc33 0%, #ffb347 100%);
}

.search-results {
    display: grid;
    gap: 15px;
    padding: 15px;
    border: 2px solid #ffb347;
    border-radius: 12px;
    background: rgba(40, 40, 40, 0.7);
}

.user-card {
    background: rgba(51, 51, 51, 0.8);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #666;
    transition: border-color 0.2s;
}

.user-card:hover {
    border-color: #ffb347;
}

.user-result {
    background: rgba(34, 34, 34, 0.95);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #ffb347;
    box-shadow: 0 2px 8px rgba(255, 179, 71, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.user-result:hover {
    border-color: #ffcc33;
    box-shadow: 0 4px 16px rgba(255, 179, 71, 0.3);
    transform: translateY(-2px);
}

.user-result h3 {
    color: #ffb347;
    margin-bottom: 8px;
}

.user-result p {
    color: #ccc;
    margin: 4px 0;
}

.user-bio {
    color: #aaa;
    font-style: italic;
    margin-top: 8px;
}

.no-results {
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    padding: 40px;
}

/* Account Edit Page Styles */
.edit-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

.edit-header {
    text-align: center;
    margin-bottom: 30px;
}

.edit-header h1 {
    color: #ffb347;
    margin-bottom: 10px;
    font-size: 2rem;
}

.edit-header p {
    color: #ccc;
    font-size: 1.1rem;
}

.edit-form-container {
    background: rgba(34, 34, 34, 0.95);
    padding: 30px;
    border-radius: 16px;
    border: 3px solid #ffb347;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.edit-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    color: #ffb347;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #444;
    border-radius: 8px;
    background: #292929;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ffb347;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.save-btn {
    padding: 14px 28px;
    background: linear-gradient(90deg, #ffb347 0%, #ffcc33 100%);
    color: #232526;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1.1rem;
}

.save-btn:hover {
    background: linear-gradient(90deg, #ffcc33 0%, #ffb347 100%);
}

.cancel-btn {
    padding: 14px 28px;
    background: #666;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1.1rem;
}

.cancel-btn:hover {
    background: #777;
}

/* Responsive account edit page */
@media (max-width: 768px) {
    .edit-container {
        padding: 15px;
        margin: 20px auto;
    }
    
    .edit-form-container {
        padding: 20px;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .save-btn,
    .cancel-btn {
        width: 100%;
    }
    
    .edit-header h1 {
        font-size: 1.5rem;
    }
}

/* Responsive dashboard */
@media (max-width: 768px) {
    .account-tiles-border {
        padding: 20px;
    }
    
    .account-tiles {
        grid-template-columns: 1fr;
    }
    
    .account-tile {
        padding: 20px;
    }
    
    .dashboard-container h2 {
        font-size: 1.5rem;
    }
    
    .account-tiles-border h3 {
        font-size: 1.3rem;
    }
    
    /* Search responsive */
    .search-form {
        flex-direction: column;
        align-items: center;
    }
    
    .search-form input {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .search-container {
        padding: 20px 15px;
    }
}

.admin-main {
    padding: 40px 20px;
    min-height: 60vh;
}

.admin-container {
    max-width: 1000px;
    margin: 0 auto;
}

.admin-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffb347;
    font-size: 2rem;
}

.admin-section {
    background: rgba(34, 34, 34, 0.95);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    border: 3px solid #ffb347;
    margin-bottom: 30px;
}

.admin-section h3 {
    color: #ffb347;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.admin-btn {
    padding: 12px 24px;
    background: linear-gradient(90deg, #ffb347 0%, #ffcc33 100%);
    color: #232526;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
}

.admin-btn:hover {
    background: linear-gradient(90deg, #ffcc33 0%, #ffb347 100%);
}

.admin-btn.delete {
    background: linear-gradient(90deg, #ff4757 0%, #ff6b81 100%);
}

.admin-btn.delete:hover {
    background: linear-gradient(90deg, #ff6b81 0%, #ff4757 100%);
}

.admin-btn.cancel {
    background: #666;
}

.admin-btn.cancel:hover {
    background: #777;
}

.message {
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(51, 51, 51, 0.8);
    border-radius: 12px;
    border: 2px solid #666;
    transition: border-color 0.2s;
}

.user-item:hover {
    border-color: #ffb347;
}

.user-info {
    flex: 1;
}

.user-name {
    color: #ffb347;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.user-email {
    color: #ccc;
    margin-bottom: 5px;
}

.user-role {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.user-id {
    color: #888;
    font-size: 0.8rem;
    font-family: monospace;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.delete-btn {
    background: #ff4757;
    color: white;
}

.delete-btn:hover {
    background: #ff6b81;
}

.loading, .no-users, .error {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 1.1rem;
}

.error {
    color: #ff6b81;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.page-access-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.page-access-checkboxes label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ccc;
    font-size: 0.9rem;
}

.role-access-container {
    background: rgba(44, 44, 44, 0.95);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.role-access-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.role-access-item {
    background: rgba(51, 51, 51, 0.8);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #666;
}

.role-access-item h5 {
    color: #ffb347;
    margin-bottom: 10px;
    font-size: 1.1rem;
}
        
.add-page-container {
    background: rgba(44, 44, 44, 0.95);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}
        
.add-page-container .form-group {
    margin-bottom: 15px;
}
        
.add-page-container .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}
        
.add-page-container .form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #666;
    background: rgba(51, 51, 51, 0.8);
    color: #fff;
}

@media (max-width: 768px) {
    .admin-form {
        grid-template-columns: 1fr;
    }
            
    .user-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
            
    .user-actions {
        justify-content: center;
    }
            
    .admin-section {
        padding: 20px;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .box, .box-row{
        max-width: 100%;
        margin: 1rem;
        padding: 1rem;
    }
    .box-row {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .box {
        padding: 0.5rem;
    }
    
    .nl img {
        width: 70px;
        margin-right: 0.5rem;
    }
    .box-2-3, .box-1-3 {
        padding: 1rem;
    }
}

.nl {
    display: flex;
    align-items: center;
}

.nl img {
    width: 100px;
    height: auto;
    margin-right: 1rem;
}

.nl a {
    text-decoration: none;
    color: #333;
}

.box {
    display: block;
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
    max-width: 800px;
    margin: 2rem auto;
    background: #ff0000;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.box-row {
    display: flex;
    gap: 2rem;
    max-width: 800px;
    margin: 2rem auto;
    width: 100%;
    box-sizing: border-box;
}

.box-2-3, .box-1-3 {
    padding: 2rem;
    background: #ff0000;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.box-2-3 {
    flex: 2;
}

.box-1-3 {
    flex: 1;
}

/* Presentatie */
#introductie {
    text-align: center;
}

#introductie p {
    transform: skew(-10deg);
    display: inline-block;
    font-style: italic;
}

#inhoud-img, #inhoud-img4, #inhoud-img5 {
    width: 250px;
    height: auto;
    display: block;
    margin-left: 0;
    margin-right: auto;
}

#inhoud-img2, #inhoud-img3, #inhoud-img6 {
    width: 300px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: 0;
}

#einde-img {
    width: 700px;
    height: auto;
}