/* admin_style.css */

.admin-content {
    width: 100%;
    max-width: 900px; /* Ruimer voor admin interface */
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-content h3, .admin-content h4 {
    color: #0056b3; /* Brover blauw */
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#document-list table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#document-list th, #document-list td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 0.9rem;
}

#document-list th {
    background-color: #f9f9f9;
    font-weight: 600;
}

#document-list .actions button {
    padding: 5px 8px;
    font-size: 0.8rem;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid transparent;
}

#document-list .edit-btn {
    background-color: #ffc107; /* Geel */
    border-color: #ffc107;
    color: #333;
}

#document-list .delete-btn {
    background-color: #dc3545; /* Rood */
    border-color: #dc3545;
    color: white;
}

#addDocumentForm div {
    margin-bottom: 15px;
}

#addDocumentForm label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

#addDocumentForm input[type=\"text\"],
#addDocumentForm input[type=\"file\"],
#addDocumentForm select,
#addDocumentForm textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}

#addDocumentForm textarea {
    min-height: 80px;
    resize: vertical;
}

#addDocumentForm small {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-top: 3px;
}

#addDocumentForm button[type=\"submit\"] {
    background-color: #007AFF; /* Primair blauw */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

#addDocumentForm button[type=\"submit\"]:hover {
    background-color: #005ECB;
}

/* General body and structure */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #004A7F; /* Brover Blue */
    color: #ffffff;
    padding: 1.5rem 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

main {
    padding: 2rem;
}

.admin-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.form-container, .list-container {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    flex: 1; /* Allows them to grow */
}

.form-container {
    min-width: 300px; /* Minimum width for the form */
}

.list-container {
    min-width: 300px; /* Minimum width for the list */
}

h3 {
    color: #004A7F;
    margin-top: 0;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Form styling */
form div {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="file"],
textarea,
select {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

input[type="file"] {
    padding: 3px;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

input[type="checkbox"] {
    margin-right: 0.5rem;
    vertical-align: middle;
}

button[type="submit"],
button[type="button"] {
    background-color: #007bff; /* Primary button blue */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin-right: 0.5rem;
}

button[type="submit"]:hover,
button[type="button"]:hover {
    background-color: #0056b3;
}

#cancelEditButton {
    background-color: #6c757d; /* Grey for cancel */
}

#cancelEditButton:hover {
    background-color: #545b62;
}

/* Document list styling */
#documentList {
    list-style-type: none;
    padding: 0;
}

#documentList li {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

#documentList li strong {
    color: #004A7F;
    font-size: 1.1rem;
}

#documentList li small {
    display: block;
    color: #777;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

#documentList li button {
    background-color: #dc3545; /* Red for delete */
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
    transition: background-color 0.2s ease;
}

#documentList li button:hover {
    background-color: #c82333;
}

#documentList li button:first-of-type { /* Edit button */
    background-color: #ffc107; /* Yellow for edit */
    color: #212529;
}

#documentList li button:first-of-type:hover {
    background-color: #e0a800;
}

/* Tab styling */
.tabs {
    overflow: hidden;
    background-color: #e9ecef; /* Light grey for tab bar background */
    padding: 0 1rem; /* Add some padding around tabs */
    border-bottom: 1px solid #dee2e6;
}

.tab-button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 20px;
    transition: 0.3s;
    font-size: 1rem;
    color: #004A7F; /* Brover Blue for text */
    border-bottom: 3px solid transparent; /* For active indicator */
}

.tab-button:hover {
    background-color: #dee2e6; /* Slightly darker on hover */
}

.tab-button.active {
    background-color: #f8f9fa; /* Lighter background for active tab */
    color: #003358; /* Darker Brover Blue for active tab text */
    border-bottom: 3px solid #004A7F; /* Brover Blue underline for active tab */
}

.tab-content {
    display: none;
    padding: 20px 15px;
    border-top: none;
    background-color: #ffffff;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.tab-content.active {
    display: block;
}


footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #343a40; /* Dark footer */
    color: #f8f9fa;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    header h1 {
        font-size: 1.5rem;
    }
    main {
        padding: 1rem;
    }
    .form-container, .list-container {
        margin-bottom: 1rem;
    }
    .tabs {
        padding: 0 0.5rem;
    }
    .tab-button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}
