/* ==========================================================================
   Leerportaal - Notifica Klantportaal
   Gebruikt notifica-notion.css nav-structuur voor consistente look & feel
   ========================================================================== */

/* ---- Layout ---- */
.leerportaal-body {
    background: var(--bg);
}

/* Content area (full-width, centered) */
.lp-main {
    padding-top: 64px;
    min-height: calc(100vh - 64px);
}

.lp-main > .container {
    max-width: 900px;
    padding-top: 48px;
    padding-bottom: 80px;
}

/* Disabled items in dropdown nav */
.lp-nav-disabled {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.5;
    cursor: default;
}

.lp-nav-disabled small {
    font-size: 11px;
    font-weight: 600;
    background: var(--border);
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 6px;
}

/* Disabled items in mobile nav */
.lp-nav-disabled-mobile {
    opacity: 0.45;
    cursor: default;
}

.lp-nav-disabled-mobile small {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 8px;
}

/* ---- Overview page ---- */
.lp-overview-header {
    margin-bottom: 48px;
}

.lp-overview-header h1 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.lp-overview-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 640px;
}

.lp-phases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.lp-phase-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.lp-phase-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(22, 19, 111, 0.08);
}

.lp-phase-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.lp-phase-card-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16136F 0%, #3636A2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.lp-phase-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
}

.lp-phase-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.lp-phase-card li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 3px 0;
    padding-left: 18px;
    position: relative;
}

.lp-phase-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    opacity: 0.4;
}

/* Coming soon card */
.lp-phase-card.lp-phase-coming {
    opacity: 0.55;
    cursor: default;
}

.lp-phase-card.lp-phase-coming:hover {
    border-color: var(--border);
    transform: none;
    box-shadow: none;
}

.lp-phase-card.lp-phase-coming .lp-phase-card-number {
    background: #c8c8c8;
}

.lp-coming-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 10px;
    margin-top: 12px;
}

/* ---- Phase content page ---- */
.lp-phase-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.lp-phase-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    background: rgba(54, 54, 162, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.lp-phase-header h1 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.lp-phase-header p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- 5-step sections ---- */
.lp-step {
    margin-bottom: 56px;
    scroll-margin-top: 100px;
}

.lp-step:last-child {
    margin-bottom: 0;
}

.lp-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.lp-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16136F 0%, #3636A2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.lp-step-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
}

.lp-step-content {
    padding-left: 52px;
}

.lp-step-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 16px;
}

.lp-step-content p:last-child {
    margin-bottom: 0;
}

.lp-step-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    margin-top: 28px;
    margin-bottom: 12px;
}

.lp-step-content h3:first-child {
    margin-top: 0;
}

/* ---- Dashboard cards within steps ---- */
.lp-dashboard-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
}

.lp-dashboard-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
}

.lp-dashboard-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #16136F 0%, #3636A2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lp-dashboard-icon svg {
    width: 18px;
    height: 18px;
}

.lp-dashboard-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.lp-dashboard-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ---- Info & highlight boxes ---- */
.lp-info-box {
    background: var(--bg-subtle);
    border-left: 4px solid var(--blue);
    border-radius: 0 8px 8px 0;
    padding: 18px 22px;
    margin: 20px 0;
}

.lp-info-box p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 0;
}

.lp-info-box strong {
    color: var(--navy);
}

.lp-highlight-box {
    background: rgba(54, 54, 162, 0.04);
    border: 1px solid rgba(54, 54, 162, 0.12);
    border-radius: 10px;
    padding: 22px 24px;
    margin: 20px 0;
}

.lp-highlight-box p {
    margin-bottom: 0;
}

/* ---- Checklists ---- */
.lp-checklist {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.lp-checklist li {
    position: relative;
    padding: 8px 0 8px 30px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
}

.lp-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%233636A2' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.lp-action-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.lp-action-list li {
    position: relative;
    padding: 8px 0 8px 30px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
}

.lp-action-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%233636A2' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ---- Illustrations / diagrams ---- */
.lp-illustration {
    margin: 28px 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.lp-illustration img,
.lp-illustration svg {
    display: block;
    width: 100%;
    height: auto;
}

.lp-illustration-caption {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 10px 16px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
}

/* HTML table illustrations (budget invoer, POC berekening) */
.lp-diagram {
    margin: 28px 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.lp-diagram-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #16136F 0%, #3636A2 100%);
    padding: 12px 20px;
}

.lp-diagram table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lp-diagram th {
    background: var(--navy);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.lp-diagram td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.lp-diagram tr:nth-child(even) td {
    background: var(--bg-subtle);
}

.lp-diagram .lp-cell-accent {
    background: #E8E6F5;
    font-weight: 600;
    color: var(--navy);
}

.lp-diagram .lp-cell-highlight {
    color: var(--blue);
    font-weight: 600;
}

.lp-diagram-caption {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 10px 20px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
}

/* KPI cards grid (projectbewaking) */
.lp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.lp-kpi-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.lp-kpi-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.lp-kpi-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
}

.lp-kpi-card.lp-kpi-header {
    background: linear-gradient(135deg, #16136F 0%, #3636A2 100%);
    border-color: transparent;
}

.lp-kpi-card.lp-kpi-header .lp-kpi-label {
    color: rgba(255,255,255,0.7);
}

.lp-kpi-card.lp-kpi-header .lp-kpi-value {
    color: white;
}

/* Flow diagram arrows */
.lp-flow-arrow {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.lp-flow-arrow svg {
    color: var(--navy);
}

/* Color legend */
.lp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 16px 0;
    padding: 14px 18px;
    background: var(--bg-subtle);
    border-radius: 8px;
}

.lp-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
}

.lp-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ---- Coming soon page ---- */
.lp-coming-soon {
    text-align: center;
    padding: 80px 20px;
}

.lp-coming-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.lp-coming-icon svg {
    width: 36px;
    height: 36px;
    color: var(--text-secondary);
}

.lp-coming-soon h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.lp-coming-soon p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 28px;
}

.lp-coming-soon .lp-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    color: var(--blue);
    border: 1.5px solid var(--blue);
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.lp-coming-soon .lp-btn-outline:hover {
    background: var(--blue);
    color: white;
}

/* ---- Login page ---- */
.lp-login-body {
    background: var(--bg-subtle);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lp-login-card {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.lp-login-logo {
    height: 48px;
    margin-bottom: 8px;
}

.lp-login-card h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.lp-login-card > p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 32px;
}

.lp-login-error {
    background: #FEF2F2;
    color: #991B1B;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.lp-login-error.visible {
    display: block;
}

.lp-login-form .form-group {
    text-align: left;
    margin-bottom: 20px;
}

.lp-login-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.lp-login-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.2s;
    outline: none;
}

.lp-login-form input[type="password"]:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(54, 54, 162, 0.1);
}

.lp-login-btn {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #16136F 0%, #3636A2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.lp-login-btn:hover {
    opacity: 0.9;
}

.lp-login-help {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 24px;
}

.lp-login-help a {
    color: var(--blue);
    text-decoration: none;
}

.lp-login-help a:hover {
    text-decoration: underline;
}

/* ---- Quiz ---- */
.lp-quiz {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 2px solid var(--border);
}

.lp-quiz-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.lp-quiz-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
}

.lp-quiz-progress {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.lp-quiz-question {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 20px;
}

.lp-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.lp-quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text);
    transition: all 0.15s;
}

.lp-quiz-option:hover {
    border-color: var(--navy);
    background: var(--bg-subtle);
}

.lp-quiz-option .lp-quiz-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    flex-shrink: 0;
    transition: all 0.15s;
}

.lp-quiz-option:hover .lp-quiz-letter {
    background: linear-gradient(135deg, #16136F 0%, #3636A2 100%);
    color: white;
}

.lp-quiz-option.correct {
    border-color: #16a34a;
    background: #f0fdf4;
    cursor: default;
}

.lp-quiz-option.correct .lp-quiz-letter {
    background: #16a34a;
    color: white;
}

.lp-quiz-option.wrong {
    border-color: #dc2626;
    background: #fef2f2;
    cursor: default;
    opacity: 0.7;
}

.lp-quiz-option.wrong .lp-quiz-letter {
    background: #dc2626;
    color: white;
}

.lp-quiz-option.disabled {
    cursor: default;
    opacity: 0.5;
}

.lp-quiz-option.disabled:hover {
    border-color: var(--border);
    background: white;
}

.lp-quiz-option.disabled:hover .lp-quiz-letter {
    background: var(--bg-subtle);
    color: var(--navy);
}

.lp-quiz-feedback {
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.lp-quiz-feedback.show {
    display: block;
}

.lp-quiz-feedback.correct {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.lp-quiz-feedback.wrong {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.lp-quiz-nav {
    display: flex;
    justify-content: flex-end;
}

.lp-quiz-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #16136F 0%, #3636A2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.lp-quiz-btn:hover {
    opacity: 0.9;
}

.lp-quiz-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.lp-quiz-result {
    text-align: center;
    padding: 40px 20px;
}

.lp-quiz-score {
    font-size: 36px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.lp-quiz-score-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.lp-quiz-bar {
    width: 100%;
    max-width: 300px;
    height: 10px;
    background: var(--border);
    border-radius: 5px;
    margin: 0 auto 28px;
    overflow: hidden;
}

.lp-quiz-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #16136F 0%, #3636A2 100%);
    border-radius: 5px;
    transition: width 0.6s ease;
}

.lp-quiz-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    color: var(--blue);
    border: 1.5px solid var(--blue);
    border-radius: 8px;
    background: none;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.lp-quiz-btn-outline:hover {
    background: var(--blue);
    color: white;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .lp-phases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .lp-main > .container {
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .lp-step-content {
        padding-left: 0;
    }

    .lp-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-diagram {
        overflow-x: auto;
    }

    .lp-login-card {
        padding: 36px 24px;
    }
}

/* ---- Last Updated ---- */
.lp-last-updated {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    padding-top: 32px;
    margin-top: 48px;
    border-top: 1px solid var(--border, #e2e8f0);
}

.lp-changelog-link {
    margin-left: auto;
    font-size: 13px;
    color: var(--navy, #16136F);
    text-decoration: none;
    white-space: nowrap;
}

.lp-changelog-link:hover {
    text-decoration: underline;
}

/* ---- Changelog Page ---- */
.lp-changelog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lp-changelog-entry {
    padding: 16px 20px;
    background: var(--bg-subtle, #f8fafc);
    border-radius: 8px;
    border-left: 3px solid var(--navy, #16136F);
}

.lp-changelog-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.lp-changelog-date {
    font-size: 13px;
    color: var(--text-secondary, #64748b);
}

.lp-changelog-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 10px;
}

.lp-changelog-nieuw {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.lp-changelog-bijgewerkt {
    background: rgba(54, 54, 162, 0.08);
    color: var(--navy, #16136F);
}

.lp-changelog-verwijderd {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.lp-changelog-page {
    font-weight: 600;
    font-size: 15px;
    color: var(--navy, #16136F);
    text-decoration: none;
}

.lp-changelog-page:hover {
    text-decoration: underline;
}

.lp-changelog-desc {
    font-size: 14px;
    color: var(--text, #1e293b);
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .lp-last-updated {
        flex-wrap: wrap;
    }
    .lp-changelog-link {
        margin-left: 22px;
    }
}
