/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
    box-sizing: border-box;
  }
  
  /* 2. Remove default margin */
  * {
    margin: 0;
  }
  
  /* 3. Enable keyword animations */
  @media (prefers-reduced-motion: no-preference) {
    html {
      interpolate-size: allow-keywords;
    }
  }
  
  body {
    /* 4. Add accessible line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
  }
  
  /* 6. Improve media defaults */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  
  /* 7. Inherit fonts for form controls */
  input, button, textarea, select {
    font: inherit;
  }
  
  /* 8. Avoid text overflows */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  
  /* 9. Improve line wrapping */
  p {
    text-wrap: pretty;
  }
  h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
  }
  
  /*
    10. Create a root stacking context
  */
  #root, #__next {
    isolation: isolate;
  }

* {
    font-family: 'Century Gothic', Arial, Helvetica, sans-serif;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    font-size: 18px;
}

#topbar {
    background-color: #1f3a1f;
    color: #ffffff;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#topbar-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}

#topbar-logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

#topbar-logo a:hover {
    opacity: 0.8;
}

#topbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
    align-items: center;
}

#topbar-menu li {
    margin: 0;
}

#topbar-menu .menu-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    display: inline-block;
}

#topbar-menu .menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#topbar-menu .menu-link:active {
    background-color: rgba(255, 255, 255, 0.2);
}

#topbar-menu .menu-link:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    #topbar-nav {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    #topbar-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    #topbar-logo a {
        font-size: 18px;
    }
    
    #topbar-menu .menu-link {
        font-size: 15px;
        padding: 6px 10px;
    }
}

main {
    padding: 16px;
}

#tracks_list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0;
}

@media (max-width: 768px) {
    #tracks_list {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 20px;
    }
}

#instapbanen .track {
    padding: 24px;
    background-color: #ffffff;
    color: #1f3a1f;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid #e3e9e3;
    border-left: 4px solid #1f3a1f;
    gap: 0;
}

#instapbanen .track .track-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    position: relative;
    padding-left: 28px;
}

#instapbanen .track .track-header::before {
    content: '▼';
    font-size: 12px;
    color: #1f3a1f;
    position: absolute;
    left: 0;
    top: 4px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

#instapbanen .track.track-expanded .track-header::before {
    transform: rotate(180deg);
}

#instapbanen .track .track-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#instapbanen .track h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #1f3a1f;
    line-height: 1.3;
}

#instapbanen .track .track-short-description {
    margin: 0;
    font-size: 16px;
    color: #3d4a3d;
    line-height: 1.5;
}

#instapbanen .track .missing-skills-indicator {
    margin-top: 8px;
    font-size: 14px;
    color: #004085;
    padding: 8px 12px;
    background: #e6f2ff;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
}

#instapbanen .track .track-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #1f3a1f;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

#instapbanen .track .track-toggle:hover {
    background-color: #f4f7f4;
}

#instapbanen .track .track-toggle .toggle-icon {
    transition: transform 0.2s;
    display: inline-block;
}

#instapbanen .track .track-content {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e3e9e3;
    flex-direction: column;
    gap: 16px;
}

#instapbanen .track.track-expanded .track-content {
    display: flex;
}

#instapbanen .track .track-description {
    margin: 8px 0 0 0;
    font-size: 15px;
    color: #3d4a3d;
    line-height: 1.6;
}

#instapbanen .track .track-profile {
    margin: 8px 0 0 0;
    font-size: 15px;
    color: #3d4a3d;
    line-height: 1.6;
    padding: 12px;
    background-color: #f4f7f4;
    border-radius: 8px;
    border-left: 3px solid #1f3a1f;
}

#instapbanen .track .track-skills-section {
    margin: 12px 0 0 0;
}

#instapbanen .track .track-skills-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f3a1f;
}

#instapbanen .track .track-skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

#instapbanen .track .select-track {
    margin-top: 16px;
    align-self: flex-start;
    width: 100%;
    max-width: 200px;
}

.match-badge {
    position: absolute;
    top: -16px;
    right: 12px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    border: 2px solid #1f3a1f;
}

.match-badge::before {
    margin-right: 2px;
    font-size: 16px;
}

.potential-matches-section {
    margin-bottom: 32px;
    padding: 24px;
    background-color: #f8fffa;
    border-radius: 12px;
    border: 1px solid #e3e9e3;
}

.potential-matches-section .potential-matches-header {
    cursor: pointer;
    position: relative;
    padding-left: 28px;
}

.potential-matches-section .potential-matches-header::before {
    content: '▼';
    font-size: 12px;
    color: #1f3a1f;
    position: absolute;
    left: 0;
    top: 4px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.potential-matches-section.potential-matches-expanded .potential-matches-header::before {
    transform: rotate(180deg);
}

.potential-matches-section .potential-matches-header-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.potential-matches-section h2 {
    margin: 0 0 12px 0;
    font-size: 24px;
    color: #1f3a1f;
}

.potential-matches-section .potential-matches-explanation {
    margin: 0;
    font-size: 15px;
    color: #3d4a3d;
    line-height: 1.6;
}

.potential-matches-section .potential-matches-content {
    /*display: none;*/
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e3e9e3;
    max-height: 105px;
    overflow: hidden;
}

.instapbanen-header-section {
    margin: 0px 0 12px 0;
}

.instapbanen-header-section h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f3a1f;
}

.potential-matches-section.potential-matches-expanded .potential-matches-content {
    max-height: none;
}

.potential-matches-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.potential-match-card {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid #e3e9e3;
    border-left: 4px solid #8fb991;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.potential-match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.potential-match-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f3a1f;
}

.potential-match-badge {
    padding: 6px 12px;
    background-color: #8fb991;
    color: #0b2210;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.potential-match-reasoning {
    font-size: 14px;
    color: #3d4a3d;
    line-height: 1.6;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .potential-matches-cards {
        grid-template-columns: 1fr;
    }
    
    .potential-matches-section {
        padding: 16px;
    }
}

.hide {
    display: none !important;
}
/*
svg text {
    fill: black;
}*/

button {
    background-color: #8fb991; /* default button color - more visible than white */
    border: 1px solid #7aa57c;
    color: #0b2210;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color .15s ease, box-shadow .15s ease, transform .05s ease, border-color .15s ease;
    min-height: 44px; /* Touch-friendly minimum size */
    min-width: 44px;
}

@media (max-width: 768px) {
    button {
        padding: 14px 18px;
        font-size: 18px;
        min-height: 48px;
    }
}

button:hover {
    background-color: #82ad85;
    border-color: #6f9a71;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

button:active {
    transform: translateY(1px);
    background-color: #789f7a;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.18);
}

button:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
input, select {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
    font-size: 16px;
}

.pdf-upload-section {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.pdf-upload-description {
    margin: 0 0 12px 0;
    color: #333;
}

.pdf-upload-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.pdf-upload-status {
    margin-top: 8px;
    font-style: italic;
    color: #2f5d2f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-upload-status.error {
    color: #b3261e;
}

.pdf-upload-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-top-color: #2f5d2f;
    border-radius: 50%;
    animation: pdf-spin 0.8s linear infinite;
}

.pdf-upload-status.error .pdf-upload-spinner {
    border-top-color: #b3261e;
}

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

.pdf-upload-results {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdf-upload-results textarea {
    width: 100%;
    min-height: 160px;
    resize: vertical;
    font-family: inherit;
}

.pdf-ai-summary {
    background-color: #f4f6f8;
    padding: 12px;
    border-radius: 6px;
}

.skill-level-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
}

.skill-level-selector input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skill-level-selector label {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #cfd8ce;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    font-size: 14px;
}

.skill-level-selector input[type="radio"]:checked + label {
    background: #1f3a1f;
    color: #ffffff;
    border-color: #1f3a1f;
}

.skill-level-selector input[type="radio"]:focus-visible + label {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

.skill-level-selector label:hover {
    border-color: #8fb991;
}
#kandidaat {
    display: grid;
    place-items: center;
    padding: 24px 16px;
}

#kandidaat_select {
    max-width: 720px;
    width: 100%;
    background-color: #ffffff;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

#kandidaat_select .kandidaat-select-title {
    margin: 0;
    font-size: 2rem;
    color: #1f3a1f;
    font-weight: 600;
    text-align: center;
}

#kandidaat_select .kandidaat-select-description {
    margin: 0;
    color: #3d4a3d;
    line-height: 1.6;
    text-align: center;
}

#kandidaat_select .kandidaat-select-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#kandidaat_select .kandidaat-select-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#kandidaat_select .kandidaat-select-field label {
    font-weight: 600;
    color: #1f3a1f;
    font-size: 16px;
}

#kandidaat_select select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#kandidaat_select select:focus {
    outline: none;
    border-color: #1f3a1f;
    box-shadow: 0 0 0 3px rgba(31, 58, 31, 0.1);
}

#kandidaat_select .kandidaat-select-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

#kandidaat_select hr {
    border: none;
    border-top: 1px solid #e3e9e3;
    margin: 8px 0;
}



#kandidaat_select > .back-button {
    position: absolute;
    top: 16px;
    left: 16px;
}

.back-button {
    background-color: transparent;
    border: 1px solid #d1d5db;
    color: #1f3a1f;
}

.back-button:hover {
    background-color: #f4f7f4;
    border-color: #8fb991;
}

@media (max-width: 768px) {
    #kandidaat_select {
        padding: 40px 24px;
    }
    
    #kandidaat_select .kandidaat-select-title {
        font-size: 1.75rem;
        padding-top: 48px;
    }
    
    #kandidaat_select  > .back-button {
        top: 12px;
        left: 12px;
    }
}

#skills_test {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 16px;
    box-sizing: border-box;
    min-height: 100vh;
    overflow-y: auto;
}

#skills_test.hide {
    display: none !important;
}

.skills-test-card {
    width: 100%;
    max-width: 960px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skills-test-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skills-test-description {
    margin: 0;
    color: #3d4a3d;
    line-height: 1.6;
}

.skills-test-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skills-test-field label {
    font-weight: 600;
    color: #1f3a1f;
}

.skills-test-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.manual-test-prompt {
    padding: 16px;
    border-radius: 12px;
    background: #f4f7f4;
    border: 1px solid #dfe6df;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.manual-test-prompt p {
    margin: 0;
    color: #1f3a1f;
    font-weight: 600;
}

.manual-skills-test {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.manual-skills-test.hide {
    display: none;
}

.manual-skill-item {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #dde2e6;
    background: #f9faf9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.manual-skill-title {
    margin: 0;
    font-size: 18px;
    color: #1f3a1f;
}

.skills-test-hint {
    margin: 0;
    color: #3d4a3d;
}

.skills-test-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

#kandidaat .intro-card {
    max-width: 720px;
    background-color: #ffffff;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.intro-title {
    margin: 0;
    font-size: 2.25rem;
    color: #1f3a1f;
}

.intro-description {
    margin: 0;
    color: #3d4a3d;
    line-height: 1.6;
}

.intro-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

#track_info_popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

#track_info_popup .popup-content {
    background-color: white;
    color: black;
    padding: 24px;
    border-radius: 8px;
    max-width: 680px;
    max-height: 80vh;
    overflow: auto;
}

#track_info_popup .close-popup {
    float: right;
}

#track_info_popup .expandable-section {
    margin-bottom: 16px;
}

#track_info_popup .expandable-title {
    cursor: pointer;
    user-select: none;
}

#track_info_popup .expandable-title:hover {
    color: #3d4a3d;
}

#track_info_popup .expandable-text {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#track_info_popup .expandable-text.collapsed {
    max-height: 4.5em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.5em;
}

#track_info_popup .expand-toggle {
    background: none;
    border: none;
    color: #1f3a1f;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 8px;
    font-size: 14px;
    text-decoration: underline;
    font-family: inherit;
}

#track_info_popup .expand-toggle:hover {
    color: #3d4a3d;
}

#candidate_edit_popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#candidate_edit_popup .candidate-edit-content {
    background-color: white;
    color: black;
    padding: 24px;
    border-radius: 8px;
    max-width: 720px;
    width: 100%;
    max-height: 80vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.candidate-edit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
}

.candidate-skill-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.candidate-skill-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
}

.candidate-skill-row-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.candidate-skill-row .candidate-skill-name {
    flex: 1 1 200px;
}

.candidate-skill-row .candidate-skill-level-options {
    min-width: 160px;
}

.candidate-skill-redenering {
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #f4f6f8;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #3d4a3d;
}

.candidate-skill-redenering-label {
    font-weight: 600;
    color: #1f3a1f;
}

.candidate-skill-redenering-text {
    color: #3d4a3d;
}

.candidate-edit-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: -24px;
    background-color: white;
    padding: 12px 0;
    margin-bottom: 8px;
    z-index: 10;
    border-bottom: 1px solid #e5e7eb;
}

.primary {
    background-color: #1f3a1f;
    color: #ffffff;
    border-color: #173017;
}

.primary:hover {
    background-color: #274f27;
    border-color: #1f3f1f;
    box-shadow: 0 4px 10px rgba(31, 58, 31, 0.25);
}

.primary:active {
    background-color: #1d351d;
}

/* Select track call-to-action */
.select-track {
    background-color: #0ea5e9;
    color: #ffffff;
    border-color: #0b8fcc;
}

.select-track:hover {
    background-color: #0891d1;
    border-color: #087fb6;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.25);
}

.select-track:active {
    background-color: #087fb6;
}

/* Close cross button inside popups */
#track_info_popup .close-popup,
#candidate_edit_popup .close-popup {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    line-height: 30px;
    font-size: 20px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
}

#track_info_popup .close-popup:hover,
#candidate_edit_popup .close-popup:hover {
    background: #f3f4f6;
}

#track_info_popup .close-popup:active,
#candidate_edit_popup .close-popup:active {
    background: #e5e7eb;
}

/* Buttons in grouped action areas */
.course-card .course-card-actions button,
.skills-test-actions button,
.pdf-upload-controls button {
    border-color: #d1d5db;
}

.course-card .course-card-actions button:hover,
.skills-test-actions button:hover,
.pdf-upload-controls button:hover {
    border-color: #c5cbd3;
}

/* Skill chips for route naar instapbaan */
.skill-chip {
    display: inline-block;
    margin: 4px 6px 0 0;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    border: 1px solid transparent;
}

.skill-needed-has {
    border-color: #c9e7d1;
    background: #ebf8ef;
    color: #145a2a;
}

.skill-needed-missing {
    border-color: #b3d9ff;
    background: #e6f2ff;
    color: #004085;
}

.skill-not-needed {
    border-color: #dde2e6;
    background: #f1f3f5;
    color: #495057;
}

.skill-legend {
    margin: 8px 0 12px 0;
}

.course-card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin: 16px 0 24px 0;
}

.course-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #dfe6df;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    padding: 18px;
}

.course-card-title {
    margin: 0;
    font-size: 18px;
    color: #1f3a1f;
}

.course-card-meta {
    font-size: 14px;
    color: #3d4a3d;
}

.course-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.course-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 8px;
    background-color: #1f3a1f;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.course-card-link:hover {
    background-color: #274f27;
}

.course-card-info {
    background-color: transparent;
    border: 1px solid #1f3a1f;
    color: #1f3a1f;
}

.course-card-info:hover {
    background-color: #1f3a1f;
    color: #ffffff;
}

/* Transition cards (Overstappen popup) */
.transition-card-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin: 12px 0 8px 0;
}

.transition-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #e3e9e3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 12px 14px 12px 14px;
    min-height: 64px;
}

.transition-card.empty {
    text-align: center;
    color: #6b776b;
}

.transition-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: #1f3a1f; /* fallback */
}

.transition-card-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
    color: #1f3a1f;
}

.transition-card-meta {
    font-size: 13px;
    color: #3d4a3d;
}

.transition-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border-color: #8fb991;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skills search container */
.skills-search-container {
    margin-bottom: 16px;
    display: none !important;
}

.skills-progress-container {
    margin-bottom: 16px;
    padding: 12px;
    background: #f4f7f4;
    border-radius: 8px;
}

.skills-progress-text {
    font-weight: 600;
    color: #1f3a1f;
    margin-bottom: 8px;
}

.missing-skills-indicator {
    margin-top: 8px;
    font-size: 14px;
    color: #004085;
    padding: 8px 12px;
    background: #e6f2ff;
    border-radius: 6px;
    display: block;
    font-weight: 500;
}

.route-visualization {
    margin: 24px 0;
    padding: 16px;
    background: #f9faf9;
    border-radius: 8px;
}

.route-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding-left: 40px;
}

.route-timeline-header {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0;
}

.route-timeline-point {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    flex: 0 0 auto;
    position: relative;
    padding-bottom: 24px;
}

.route-timeline-point:last-child {
    padding-bottom: 0;
}

.route-timeline-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    position: absolute;
    left: -40px;
    z-index: 2;
}

.route-timeline-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    font-size: 14px;
    gap: 2px;
    flex: 1;
}

.route-timeline-label strong {
    color: #1f3a1f;
    font-weight: 600;
}

.route-timeline-label span {
    color: #3d4a3d;
    font-size: 22px;
}

.route-timeline-label small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.route-steps-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    position: relative;
    padding-left: 40px;
}

.route-timeline .route-steps-list {
    padding-left: 0;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 24px;
}

.route-step-item {
    margin-bottom: 20px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e3e9e3;
    border-radius: 8px;
    border-left: 4px solid #1f3a1f;
}

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

.route-timeline-duration {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    margin-left: 24px;
}

.route-duration-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.route-timeline-track {
    position: absolute;
    left: -32px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #e3e9e3;
    border-radius: 2px;
    z-index: 1;
}

.route-timeline-progress {
    width: 100%;
    border-radius: 2px;
    transition: height 0.3s ease;
    position: absolute;
    bottom: 0;
    left: 0;
}

.route-transition-branch {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 16px;
    padding-left: 0;
}

.route-transition-line {
    width: 0;
    height: 40px;
    border-left: 3px dashed;
    margin-top: 4px;
    opacity: 0.6;
    flex-shrink: 0;
}

.route-transition-info {
    flex: 1;
}

.route-transition-info .transition-summary {
    margin: 0;
    font-size: 14px;
    color: #3d4a3d;
    line-height: 1.5;
}

.route-transition-info .transition-summary strong {
    color: #1f3a1f;
    font-weight: 600;
}

@media (max-width: 768px) {
    .route-timeline {
        padding-left: 32px;
    }
    
    .route-timeline-marker {
        left: -32px;
    }
    
    .route-timeline-track {
        left: -24px;
    }
    
    .route-timeline-duration {
        position: static;
        transform: none;
        margin-left: 0;
        margin-top: 8px;
        margin-bottom: 8px;
        text-align: center;
        margin-top: 8px;
    }
    
    .route-timeline-point {
        min-width: 80px;
    }
    
    .route-timeline-label {
        font-size: 13px;
    }
    
    .route-timeline-label span {
        font-size: 12px;
    }
}

/* Page sections styling */
#page-over,
#page-financiering,
#page-contact {
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

#page-over h1,
#page-financiering h1,
#page-contact h1 {
    color: #1f3a1f;
    margin-bottom: 24px;
    font-size: 2rem;
}

#page-over h2,
#page-financiering h2,
#page-contact h2 {
    color: #1f3a1f;
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.5rem;
}

#page-over p,
#page-financiering p,
#page-contact p {
    color: #3d4a3d;
    line-height: 1.6;
    margin-bottom: 16px;
}

#page-over ul,
#page-financiering ul,
#page-contact ul {
    color: #3d4a3d;
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 24px;
}

#page-over li,
#page-financiering li,
#page-contact li {
    margin-bottom: 8px;
}

#page-over a,
#page-financiering a,
#page-contact a {
    color: #1f3a1f;
    text-decoration: underline;
}

#page-over a:hover,
#page-financiering a:hover,
#page-contact a:hover {
    color: #274f27;
}

main {
width: min(100%, 960px);
margin: auto;
}

#breadcrumb_nav {
    display: none;
}

#back_to_candidate_btn {
    position: absolute;
    top: 64px;
    left: 16px;
}

#instapbanen {
    padding-top: 64px;
}

.skills-sections-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .skills-sections-container {
        flex-direction: row;
    }
}

.candidate-edit-actions .close-popup {
    display: none !important;
}