/* 1.0 Reset en basis stijlen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 1.1 Body basis */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #f4f4f4;
}

/* 2.0 Dashboard Header Stijlen */
.dashboard-header {
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* 2.1 Navigatie */
.dashboard-header nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* 2.2 Navigatie links */
.dashboard-header nav a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dashboard-header nav a:hover {
    background: #f0f0f0;
}

.dashboard-header nav a.active {
    background: #FF7200;
    color: white;
}

/* 3.0 Dashboard Main Content */
.dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 3.1 Dashboard Headers */
.dashboard-main h1 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 2rem;
}

.dashboard-main h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

/* 4.0 Messages Grid Styling */
.messages-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin-top: 2rem;
}

/* 4.1 Message Card */
.message-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    height: 500px; /* Vaste hoogte */
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 4.2 Message Card Elements */
.message-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.message-card .media-container {
    height: 200px; /* Vaste hoogte voor media */
    overflow: hidden;
    margin: 1rem 0;
    position: relative;
}

.message-card img,
.message-card video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Dit zorgt voor nette scaling */
    border-radius: 4px;
}

.message-content {
    color: #666;
    margin: 1rem 0;
    flex-grow: 1;
    overflow-y: auto;
}

.message-meta {
    font-size: 0.9rem;
    color: #888;
    margin-top: auto;
}

.message-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: 1rem;
}

/* 5.0 Button Stijlen */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: #FF7200;
    color: white;
}

/* 5.1 Button Varianten */
.btn:hover {
    background: #e66600;
}

.btn-primary, 
.btn-secondary {
    background: #FF7200;
    margin-bottom: 30px; 
    color: white;
}

.btn-primary:hover, 
.btn-secondary:hover {
    background: #e66600;
}

/* 5.2 Icon Buttons */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: none;
    background: #f4f4f4;
    color: #333;
    margin: 0 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-icon:hover {
    background: #FF7200;
    color: white;
}

.btn-icon i {
    font-size: 1.1rem;
}

/* 6.0 Login Container */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 6.1 Logo Container */
.logo-container {
    text-align: center;
    margin: 0 0 2rem 0;
    width: 100%;
    background: #fff;
    padding: 0;
}

.logo-container img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* 6.2 Login Headers */
.login-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    padding: 0 2rem;
}

/* 7.0 Form Stijlen */
.form-group {
    margin-bottom: 1rem;
}

/* 7.1 Form Labels */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

/* 7.2 Form Inputs */
.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
}

/* 7.3 Form Focus States */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF7200;
}

/* 7.4 Form Container */
form {
    position: relative;
    padding: 0 2rem;
}

form button[type="submit"] {
    float: right;
}

/* 8.0 Message Actions */
.message-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* 9.0 Alert Stijlen */
.alert {
    padding: 1rem;
    margin: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
}

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

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

/* 10.0 Link Stijlen */
.login-links {
    text-align: center;
    margin-top: 1.5rem;
    padding: 0 2rem 2rem;
    clear: both;
}

.login-links a {
    color: #FF7200;
    text-decoration: none;
}

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

/* 11.0 Utility Classes */
.mt-3 {
    margin-top: 1.5rem;
}

.text-center {
    text-align: center;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* 12.0 Responsive Design */
@media (max-width: 768px) {
    /* 12.1 Header Responsive */
    .dashboard-header nav {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-header nav a {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    /* 12.2 Grid Responsive */
    .messages-grid {
        grid-template-columns: 1fr;
    }

    /* 12.3 Container Responsive */
    .dashboard-main {
        padding: 0 1rem;
    }

    .login-container {
        margin: 50px 1rem;
    }

    /* 12.4 Button Responsive */
    form button[type="submit"] {
        width: 100%;
        float: none;
        margin-top: 1rem;
    }
}

/* 13.0 Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FF7200;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e66600;
}

/* 14.0 Focus States */
*:focus {
    outline-color: #FF7200;
}

/* 15. Upload bar */
.upload-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.upload-progress-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar-fill {
    height: 100%;
    background-color: #4CAF50;
    width: 0%;
    transition: width 0.3s ease;
}

.upload-status {
    margin-top: 10px;
    font-size: 14px;
}

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

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 800px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 15px 20px;
    background-color: #270047;
    color: white;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.close {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* User list styles */
.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.users-table th, .users-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.users-table th {
    background-color: #f2f2f2;
}

.users-table .actions {
    white-space: nowrap;
}

.user-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

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

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Button styles */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.primary-btn {
    background-color: #270047;
    color: white;
}

.secondary-btn {
    background-color: #f2f2f2;
    color: #333;
}

.danger-btn {
    background-color: #dc3545;
    color: white;
}

.loading, .error {
    padding: 20px;
    text-align: center;
}

.error {
    color: #dc3545;
}

.button-container {
    display: flex;
    gap: 10px; /* ruimte tussen de knoppen */
}