/* -----------------------------------------
   ACV-stijl basis
----------------------------------------- */
body {
    font-family: "Open Sans", Arial, sans-serif;
    background: #f7f7f7;
    margin: 0;
    padding: 1.5rem;
    color: #333;
}

/* -----------------------------------------
   Containers
----------------------------------------- */
form, .result-block {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* -----------------------------------------
   Titels
----------------------------------------- */
h1 {
    color: #009A3E;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: center;
}

h2 {
    color: #009A3E;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* -----------------------------------------
   Formulierelementen
----------------------------------------- */
p {
    margin-top: 1.2rem;
    font-weight: 600;
}

select, button {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    margin-top: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
}

button {
    background: #009A3E;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 1.5rem;
    font-weight: bold;
}

button:hover {
    background: #007f34;
}

/* -----------------------------------------
   Tabel
----------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    table-layout: auto;
}

th, td {
    padding: 12px 14px;
    border-bottom: 1px solid #ccc;
}

th {
    background: #009A3E;
    color: white;
}

td:nth-child(2) {
    text-align: center;
}

/* Eerste kolom breder */
table td:first-child,
table th:first-child {
    width: 70%;
}

/* Subinfo onder PC-naam */
.subinfo {
    font-size: 0.85rem;
    color: #555;
    display: block;
    margin: 2px 0 4px 0;
    font-style: italic;
}


/* -----------------------------------------
   Info-icoon + tooltip
----------------------------------------- */
.info-icon-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #009A3E;
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    margin-left: 6px;
    vertical-align: middle;
    transition: background 0.2s ease;
    position: relative;
}

.info-icon-circle:hover {
    background: #007f34;
}

/* Tooltip bubble */
.info-icon-circle::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

/* Tooltip arrow */
.info-icon-circle::before {
    content: "";
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Show tooltip on hover */
.info-icon-circle:hover::after,
.info-icon-circle:hover::before {
    opacity: 1;
}

/* -----------------------------------------
   Highlight (groene tekst, geen achtergrond)
----------------------------------------- */
.highlight-text td,
.highlight-text td * {
    color: #009A3E !important;
    font-weight: 700;
}

.highlight-text .subinfo {
    color: #007f34 !important;
    font-style: italic;
}

.highlight-text .info-icon-circle {
    background: #009A3E !important;
    color: white !important;
}


/* -----------------------------------------
   Verschil kleuren
----------------------------------------- */
.diff-positive {
    color: #0a7f3a;
    font-weight: 700;
}

.diff-negative {
    color: #c0392b;
    font-weight: 700;
}

/* -----------------------------------------
   Disclaimer
----------------------------------------- */
.disclaimer {
  font-size: 0.85rem;
  color: #555;
  margin-top: 12px;
  line-height: 1.4;
  text-align: center;
}

/* -----------------------------------------
   Responsive gedrag
----------------------------------------- */
@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    form, .result-block {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    table, th, td {
        font-size: 0.9rem;
    }
}
