/* ===== VOORTGANG PAGE ===== */
main {
    display: flex;
}

.content {
    flex: 1; /* Neemt alle beschikbare ruimte in */
    padding: 2rem;
    min-height: calc(100vh - 80px); /* Viewport hoogte minus header */
}

.page-header {
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between; /* Verdeelt items met ruimte ertussen */
    align-items: center;
    flex-wrap: wrap; /* Wrappen naar volgende regel op kleine schermen */
    gap: 1rem;
}

.header-text-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #424b54;
    margin: 0 0 0.5rem 0;
}

.header-text-content p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.add-project-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #9B6A6c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    white-space: nowrap; /* Voorkomt line-break in button tekst */
}

.add-project-btn:hover {
    background-color: #8a5f61;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(155, 106, 108, 0.3);
}

.projects-container {
    display: flex;
    flex-direction: column; /* Stapelt project cards verticaal */
    gap: 1rem;
    margin-bottom: 2rem;
}

.project-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #424b54;
    margin: 0 0 0.25rem 0;
}

.project-type {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.5rem 0;
}

.project-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #888;
}

.project-date svg {
    color: #9B6A6c;
}

.project-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Rechts uitgelijnd */
    gap: 0.5rem;
    min-width: 200px; /* Vaste breedte voor consistentie */
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem; /* Pill-vorm */
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    min-width: 120px;
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

/* .status-badge.completed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.in-progress {
    background-color: #cce7ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

.status-badge.near-deadline {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.not-started {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
} */

.progress-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #424b54;
}

/* Progress Bar */
.progress-bar {
    width: 150px;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden; /* Zorgt voor afgeronde hoeken bij .progress-fill */
    margin-left: auto; /* Pushes element naar rechts */
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease; /* Animatie bij voortgang update */
    background-color: #9B6A6c;
}
/* 
.progress-fill.completed {
    background-color: #28a745;
}

.progress-fill.in-progress {
    background-color: #007bff;
}

.progress-fill.near-deadline {
    background-color: #ffc107;
}

.progress-fill.not-started {
    background-color: #6c757d;
} */

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid: min 250px, max gelijk verdeeld */
    gap: 1rem;
    margin-top: 2rem;
}

.summary-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

.summary-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #424b54;
    margin: 0 0 1rem 0;
}

.summary-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    color: #9B6A6c;
}


/* .completed-summary .summary-number {
    color: #28a745;
}

.progress-summary .summary-number {
    color: #007bff;
}

.pending-summary .summary-number {
    color: #6c757d;
} */

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 900px) {
    .header-content {
        flex-direction: column; /* Stapelt items verticaal */
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-text-content h1 {
        font-size: 2rem;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-status {
        align-items: flex-start;
        flex-direction: row; /* Horizontaal op tablets */
        justify-content: space-between;
        width: 100%;
    }
    
    .summary-cards {
        grid-template-columns: 1fr; /* 1 kolom */
    }
}

@media (max-width: 600px) {
    .content {
        padding: 1rem;
    }
    
    .header-text-content h1 {
        font-size: 1.75rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .add-project-btn {
        width: 100%; /* Volledige breedte op mobiel */
        justify-content: center;
    }
    
    .project-status {
        flex-direction: column; /* Verticaal op mobiel */
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .status-badge {
        min-width: auto; /* Reset min-width */
        width: 100%;
    }
}