@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .header-actions span {
        margin-bottom: 5px;
    }
}
/* Dark mode ondersteuning voor admin */
body.dark-mode, .login-page.dark-mode {
    background: #181c1f !important;
    color: #e0e0e0 !important;
}
.admin-header.dark-mode, .admin-content.dark-mode, .projects-table.dark-mode, .modal-content.dark-mode, .stats-form-container.dark-mode, .login-box.dark-mode {
    background: #23272a !important;
    color: #e0e0e0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.admin-nav.dark-mode {
    background: #23272a !important;
    border-bottom: 1px solid #222 !important;
}
.admin-nav .nav-link.dark-mode {
    color: #00e0e0 !important;
    background: #23272a !important;
    border-bottom-color: #00e0e0 !important;
}
.btn-primary.dark-mode, .btn-secondary.dark-mode, .btn-danger.dark-mode, .btn-edit.dark-mode, .btn-delete.dark-mode {
    color: #fff !important;
}
.projects-table.dark-mode th {
    color: #fff !important;
    border-bottom: 2px solid #333 !important;
}
.projects-table.dark-mode td {
    border-bottom: 1px solid #333 !important;
    background: #23272a !important;
    color: #e0e0e0 !important;
}
.projects-table.dark-mode thead {
    background: #00a0a0 !important;
}
.modal.dark-mode {
    background: rgba(0,0,0,0.8) !important;
}
.login-box.dark-mode {
    background: #23272a !important;
    color: #e0e0e0 !important;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #1a1a1a;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #00a0a0 0%, #0080a0 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.login-box h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #00a0a0;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00a0a0;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 3px solid #c33;
}

.success-message {
    background: #efe;
    color: #3c3;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 3px solid #3c3;
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-edit,
.btn-delete {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #00a0a0;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #008080;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-edit {
    background: #007bff;
    color: white;
    padding: 6px 12px;
    font-size: 14px;
    vertical-align: middle;
    margin: 0;
    line-height: 1.5;
}

.btn-edit:hover {
    background: #0056b3;
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    font-size: 14px;
    vertical-align: middle;
    margin: 0;
    line-height: 1.5;
}

.btn-delete:hover {
    background: #c82333;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #00a0a0;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

/* Admin Header */
.admin-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-bottom: 30px;
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 1.8rem;
    color: #00a0a0;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-actions span {
    color: #666;
}

.admin-header.dark-mode h1 {
    color: #fff !important;
}

/* Admin Content */
.admin-content {
    padding: 20px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.5rem;
    color: #333;
}

.section-header.dark-mode h2 {
    color: #fff !important;
}

/* Projects Table */
.projects-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f8f9fa;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

tr:hover {
    background: #f8f9fa;
}

.project-thumb {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.no-image {
    width: 80px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 150, 150, 0.1), rgba(100, 0, 150, 0.1));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(0, 150, 150, 0.3);
}

td.actions {
    text-align: center;
    border-bottom: none !important;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 40px !important;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    margin-bottom: 30px;
    color: #333;
}

.modal-content.dark-mode h2 {
    color: #fff !important;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
    width: auto;
    flex: 1;
}

#currentImage {
    margin-top: 10px;
}

#currentImage img {
    max-width: 200px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Admin Navigation */
.admin-nav {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.admin-nav .container {
    display: flex;
    gap: 5px;
    padding: 0 20px;
}

.admin-nav .nav-link {
    padding: 15px 25px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.admin-nav .nav-link:hover {
    color: #00a0a0;
    background: rgba(0, 160, 160, 0.05);
}

.admin-nav .nav-link.active {
    color: #00a0a0;
    border-bottom-color: #00a0a0;
    background: white;
}

/* Stats Form */
.stats-form-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-card label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.stat-card input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    color: #00a0a0;
    transition: border-color 0.3s;
}

.stat-card input:focus {
    outline: none;
    border-color: #00a0a0;
}

.stat-card small {
    color: #666;
    font-size: 13px;
}

.stats-form-container.dark-mode .stat-card small {
    color: #00a0a0 !important;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.form-actions .btn-primary {
    width: auto;
    min-width: 150px;
}

.stats-form-container.dark-mode .stat-card label {
    color: #00a0a0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-actions {
        flex-wrap: wrap;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px;
    }
    
    .actions {
        flex-direction: column;
    }
}

.stats-form-container.dark-mode h2,
.section-header.dark-mode h2,
.admin-header.dark-mode h1,
.modal-content.dark-mode h2,
.stats-form-container.dark-mode label,
.login-box.dark-mode h1,
.login-box.dark-mode .subtitle {
    color: #fff !important;
}
