/* Info Blok Component CSS */
.info-blok {
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.info-blok-titel {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 15px;
    text-align: left;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.info-blok-content {
    flex: 1;
    /* Gelineerd papier effect */
    background-image: linear-gradient(to bottom, transparent 0px, transparent 39px, #f0f0f0 39px, #f0f0f0 40px);
    background-size: 100% 40px;
    background-repeat: repeat-y;
    padding-top: 5px;
}

.info-rij {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px; /* Vaste hoogte voor gelijke afstanden */
    padding: 0 0;
    border-bottom: none; /* Verwijder individuele borders */
    line-height: 1.2;
}

.info-rij:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 16px;
    font-weight: 400;
}

/* Speciale styling voor legenda items met iconen */
.info-rij.legenda-item .info-label {
    display: flex;
    align-items: center;
    font-weight: 400; /* Consistent met andere labels - normaal weight */
    color: #666; /* Zelfde lichtgrijze kleur als andere labels */
    gap: 8px; /* Ruimte tussen icoon en tekst */
}

.info-rij.legenda-item .info-waarde {
    color: #333; /* Donkergrijze kleur voor waardes */
    font-weight: 700; /* Bold zoals getallen in eerste kolom */
}

/* SVG iconen in legenda */
.info-rij.legenda-item .info-label svg.measurement-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    vertical-align: middle;
    display: inline-block;
}

/* Legacy support voor ::before pseudo-elementen (voor kleuren) */
.info-rij.legenda-item .info-label::before {
    content: '';
    width: 22px;
    height: 22px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    align-self: center;
    border-radius: 3px;
}

/* Verberg ::before als er een SVG is */
.info-rij.legenda-item .info-label:has(svg)::before {
    display: none;
}

/* Kleuren voor stralingswaarden - gebruik hex kleuren uit config */
.info-rij.legenda-groen .info-label::before {
    background-color: #228800; /* Laag < 100 */
}

.info-rij.legenda-geel .info-label::before {
    background-color: #ff7700; /* Gematigd 100 - 1.000 (oranje) */
}

.info-rij.legenda-rood .info-label::before {
    background-color: #cc0000; /* Hoog 1.000 - 10.000 */
}

.info-rij.legenda-paars .info-label::before {
    background-color: #990066; /* Zeer Hoog 10.000 - 100.000 */
}

.info-rij.legenda-zwart .info-label::before {
    background-color: #000000; /* Extreem > 100.000 */
}

/* Iconen voor meting types */
.info-rij.legenda-punt .info-label::before {
    background-color: #333;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin-right: 10px;
}

.info-rij.legenda-x .info-label::before {
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M2 2 L14 14 M14 2 L2 14' stroke='%23333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    width: 16px;
    height: 16px;
}

.info-waarde {
    font-size: 15px;
    font-weight: 500;
    text-align: right;
color: #333; /* Donkergrijze kleur */
}

/* Bold elementen krijgen donkergrijze kleur */
.info-waarde strong,
.info-label strong,
strong {
    color: #333;
    font-weight: 700; /* Echte bold in plaats van semibold */
}

.info-rij-custom {
    min-height: 80px; /* Meer ruimte voor namen sectie */
    padding: 10px 0;
    border-bottom: none;
    display: flex;
    align-items: flex-start; /* Uitlijning boven voor betere tekst positioning */
}

.info-rij-custom:last-child {
    border-bottom: none;
}

.info-spacer {
    height: 40px; /* Past bij de lijn-afstand */
    border-bottom: none;
}

/* Kleur thema's */
.info-blok-blauw {
    background: #336699;
    color: white;
}

.info-blok-blauw .info-blok-titel {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.info-blok-blauw .info-blok-content {
    /* Gelineerd papier voor blauw thema */
    background-image: linear-gradient(to bottom, transparent 0px, transparent 39px, rgba(255,255,255,0.2) 39px, rgba(255,255,255,0.2) 40px);
}

.info-blok-wit {
    background: white;
    color: #333;
}

.info-blok-wit .info-blok-titel {
    color: #336699;
    border-bottom-color: #e0e0e0;
}

.info-blok-wit .info-blok-content {
    /* Gelineerd papier voor wit thema */
    background-image: linear-gradient(to bottom, transparent 0px, transparent 39px, #f0f0f0 39px, #f0f0f0 40px);
}

.info-blok-wit .info-label {
    color: #666;
    font-weight: var(--font-weight-normal, 400);
}

.info-blok-wit .info-waarde {
    color: #333;
    font-weight: var(--font-weight-semibold, 600);
}

.info-blok-wit .namen-lijst {
    color: #336699;
    font-weight: var(--font-weight-semibold, 600);
}

.info-blok-wit .namen-sectie h4 {
    color: #336699;
}

.info-blok-groen {
    background: #28a745;
    color: white;
}

.info-blok-groen .info-blok-titel {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.info-blok-groen .info-blok-content {
    /* Gelineerd papier voor groen thema */
    background-image: linear-gradient(to bottom, transparent 0px, transparent 39px, rgba(255,255,255,0.2) 39px, rgba(255,255,255,0.2) 40px);
}

/* Unit styling binnen waarde */
.info-waarde-unit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.info-waarde-unit .unit {
    color: #333; /* Donkergrijze kleur zoals de getallen */
    font-size: 14px;
    font-weight: normal !important; /* Regular weight, niet bold */
}

/* Error styling */
.info-blok-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f1aeb5;
    text-align: center;
}

/* Namen sectie styling */
.namen-sectie {
    margin-top: 15px;
}

.namen-sectie h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: inherit;
}

.namen-lijst {
    font-weight: var(--font-weight-dark-bg-emphasis, 600);
    line-height: 1.4;
    margin-top: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .info-blok {
        padding: 15px;
    }
    
    .info-blok-titel {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .info-label,
    .info-waarde {
        font-size: 13px;
    }
    
    .info-rij {
        padding: 6px 0;
    }
}

@media (max-width: 480px) {
    .info-rij {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .info-waarde {
        text-align: left;
    }
}

/* Namen sectie styling */
.namen-sectie {
    margin-top: 0;
    padding: 0;
}

.namen-sectie h4 {
    font-size: 16px;
    margin: 0 0 5px 0;
    color: #336699; /* Blauwe kleur voor "Met dank aan" */
    line-height: 1.2;
    height: auto;
}

.namen-lijst {
    font-weight: bold;
    line-height: 1.3;
    margin: 0;
    color: #000000; /* Zwarte kleur voor namen */
    height: auto;
    padding-top: 20px; /* Start namen lager in de lijnenpapier layout */
}
