/* ===== MAIN LAYOUT ===== */
/* Basis layout met flexbox voor navigatie en content naast elkaar */
main {
    display: flex;
}

.content {
    flex: 1; /* Neemt overige ruimte naast de nav */
    padding: 2rem;
}

/* ===== PAGE HEADER ===== */
/* Header bevat de titel "Logboek" en de "Nieuwe Entry" knop */
.page-header {
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between; /* Titel links, knop rechts */
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap; /* Wrap op kleine schermen */
}

.header-text-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.header-text-content p {
    color: #6b7280;
    font-size: 1.1rem;
}

/* Download knop met thema kleur en hover effecten */
a{
    text-decoration: none;
    color: inherit;
}
.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #9B6A6c; /* Thema kleur */
    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;
}

.download-btn:hover {
    background-color: #8a5d5f; /* Donkerdere tint bij hover */
    transform: translateY(-1px); /* Subtiele lift effect */
}

.download-btn:active {
    transform: translateY(0); /* Reset bij click */
}

/* ===== PROJECT CONTENT ===== */
.project-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== PROJECT SECTIONS ===== */
.project-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #9B6A6c, #8a5d5f);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
}

.section-header h2 {
    font-size: 1.75rem;
    color: #1f2937;
    font-weight: 600;
    margin: 0;
}

.section-content {
    color: #4b5563;
    line-height: 1.7;
}

/* ===== INTRO BOX ===== */
.intro-box {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-left: 4px solid #9B6A6c;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.intro-box h3 {
    color: #9B6A6c;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.intro-box p {
    font-size: 1.05rem;
    color: #374151;
    line-height: 1.6;
}

/* ===== FEATURES GRID ===== */
/* Grid met features, elk met icoon en beschrijving */
.features-grid {
    margin-top: 1.5rem;
}

.features-grid h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Individuele feature met icoon en hover effect */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.feature-item:hover {
    background: #f3f4f6;
    transform: translateX(4px); /* Slide naar rechts bij hover */
}

.feature-item svg {
    flex-shrink: 0;
    color: #9B6A6c;
    margin-top: 2px;
}

.feature-item span {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
}

/* ===== TECH GRID ===== */
/* Responsive grid voor technologie categorieën */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* Tech categorie kaarten met gradient achtergrond */
.tech-category {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.tech-category:hover {
    border-color: #9B6A6c;
    box-shadow: 0 4px 12px rgba(155, 106, 108, 0.15);
    transform: translateY(-2px); /* Lift effect */
}

.tech-category h4 {
    color: #9B6A6c;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tech-category p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== DATABASE SECTION ===== */
.database-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.database-section h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.database-tables {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.table-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s;
}

.table-card:hover {
    border-color: #9B6A6c;
    box-shadow: 0 4px 8px rgba(155, 106, 108, 0.1);
}

.table-card h4 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.table-card p {
    color: #6b7280;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

/* ===== ROLES CONTAINER ===== */
/* Grid met rol kaarten (Leerling, Broodjeszaak, Admin) */
.roles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Rol kaart met features lijst */
.role-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.role-card:hover {
    border-color: #9B6A6c;
    box-shadow: 0 8px 16px rgba(155, 106, 108, 0.15);
    transform: translateY(-4px); /* Lift bij hover */
}

.role-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.role-header svg {
    color: #9B6A6c;
    flex-shrink: 0;
}

.role-header h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.role-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.role-features li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
}

.role-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #9B6A6c;
    font-weight: bold;
}

/* ===== STEPS TIMELINE ===== */
/* Verticale timeline voor development stappen */
.steps-timeline {
    position: relative;
    padding-left: 2rem;
}

/* Verticale lijn die alle stappen verbindt */
.steps-timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #9B6A6c 0%, #e5e7eb 100%);
}

.step-item {
    position: relative;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-number {
    position: absolute;
    left: -2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #9B6A6c, #8a5d5f);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(155, 106, 108, 0.3);
    z-index: 1;
}

.step-content {
    flex: 1;
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid #9B6A6c;
}

.step-content h4 {
    color: #1f2937;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #9B6A6c;
    font-weight: bold;
}

/* ===== EXTRA FEATURES ===== */
.extra-features {
    display: grid;
    gap: 1rem;
}

.extra-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.extra-feature:hover {
    border-color: #9B6A6c;
    box-shadow: 0 4px 12px rgba(155, 106, 108, 0.15);
    transform: translateX(4px);
}

.extra-feature svg {
    flex-shrink: 0;
    color: #9B6A6c;
    margin-top: 2px;
}

.extra-feature span {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== STATUS NOTE ===== */
.status-note {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
    margin-top: 2rem;
}

.status-note svg {
    flex-shrink: 0;
    color: #f59e0b;
}

.status-note h4 {
    color: #92400e;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-note p {
    color: #78350f;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Mobile aanpassingen voor schermen onder 768px */
@media (max-width: 768px) {
    .project-section {
        padding: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    /* Grids worden 1 kolom op mobiel */
    .tech-grid,
    .roles-container {
        grid-template-columns: 1fr;
    }

    .steps-timeline {
        padding-left: 1.5rem;
    }

    /* Kleinere step nummers op mobiel */
    .step-number {
        left: -1.5rem;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .header-content {
        flex-direction: column;
    }

    /* Download knop neemt volledige breedte op mobiel */
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}