/* Basisstijlen */
:root {
    --primary-color: #4a89dc;
    --secondary-color: #5d9cec;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
    --bg-color: #f8f9fa;
    --card-bg: #fff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

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

.logo img {
    height: 40px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
}

.user-info {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h2 {
    margin: 0;
}

/* Upload Container */
.upload-container {
    margin-top: 30px;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover, .upload-area.dragging {
    border-color: var(--primary-color);
    background-color: rgba(74, 137, 220, 0.05);
}

.upload-icon {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.upload-text {
    color: var(--light-text);
    margin: 0;
}

.upload-text span {
    color: var(--primary-color);
    font-weight: 500;
}

/* Upload Status */
.upload-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background-color: var(--bg-color);
    border-radius: 8px;
}

.file-info {
    display: flex;
    align-items: center;
}

.file-info svg {
    color: var(--primary-color);
    margin-right: 15px;
}

.file-info h3 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.file-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--light-text);
}

/* Progress */
.progress-container {
    margin-top: 20px;
}

.progress {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

#progress-text {
    font-size: 0.85rem;
    color: var(--light-text);
    text-align: right;
    margin: 0;
}

/* Upload Result */
.upload-result {
    margin-top: 20px;
}

#success-message, #error-message {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
}

#success-message {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

#error-message {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--error-color);
}

#success-message svg, #error-message svg {
    margin-right: 15px;
}

#success-message p, #error-message p {
    margin: 0;
}

#success-message a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

#success-message a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-primary:disabled {
    background-color: #a0b9e0;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #f1f3f5;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #e9ecef;
}

/* Table */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--bg-color);
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

.table-info {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-top: -10px;
    margin-bottom: 20px;
}

/* Actions */
.actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

/* No data */
.no-data {
    text-align: center;
    padding: 40px 0;
}

.no-data p {
    margin-bottom: 20px;
    color: var(--light-text);
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.error-modal .modal-header {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--error-color);
}

.success-modal .modal-header {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

.modal-header svg {
    margin-right: 10px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin-top: 0;
    margin-bottom: 15px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

/* Notificatie styling */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    max-width: 400px;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.success-notification {
    background-color: var(--success-color);
    color: white;
}

.error-notification {
    background-color: var(--error-color);
    color: white;
}

.notification svg {
    margin-right: 15px;
    flex-shrink: 0;
}

.notification p {
    margin: 0;
}

.notification.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

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

/* Spinner voor loading states */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Project name input styling */
.project-name-container {
    margin-bottom: 30px;
    margin-top: 20px;
}

.project-name-input {
    width: 100%;
    font-size: 1.4rem;
    padding: 12px 15px;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.project-name-input:focus {
    outline: none;
    border-bottom: 2px solid #4a89dc;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.project-name-label {
    display: block;
    font-size: 1rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Project knop styling */
.success-button-container {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.open-project-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 80%; /* Optioneel: maakt de knop wat breder */
    max-width: 220px; /* Optioneel: beperkt de maximale breedte */
}

.open-project-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.project-icon {
    margin-right: 8px;
}

/* Animatie voor de knop */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 137, 220, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(74, 137, 220, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 137, 220, 0);
    }
}

.open-project-btn {
    animation: pulse 2s infinite;
}

/* Extra styling voor het success modal */
.success-modal .modal-content {
    max-width: 450px;
    border-radius: 12px;
}

.success-modal .modal-header {
    padding: 20px;
}

.success-modal .modal-body {
    padding: 25px;
}

#modal-success-message {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
}
