/* Basisstijlen etc. blijven hetzelfde... */
:root {
    --primary-color: #007aff;
    --pro-color: #f5a623;
    --background-color: #f8f9fa;
    --container-bg: #ffffff;
    --text-color: #212529;
    --subtle-text: #6c757d;
    --border-color: #dee2e6;
}
html { height: 100%; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 0 5%;
    height: 60px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo { font-weight: 600; font-size: 20px; color: var(--primary-color); }

/* Hoofd-layout */
.main-container { width: 100%; max-width: 900px; margin: 0 auto; padding: 40px 20px; flex: 1; text-align: center; }
.tool-container-flex { display: flex; gap: 40px; text-align: left; }
.tool-settings { flex: 1.5; }
.tool-result { flex: 1; text-align: center; }

/* Titels & Formulier */
.title { font-size: 2.2rem; font-weight: 600; margin-bottom: 10px; }
.subtitle { font-size: 1.1rem; color: var(--subtle-text); margin-bottom: 40px; }
label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.form-group { margin-bottom: 20px; }
#qr-text { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; box-sizing: border-box; }
#generate-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 14px; background-color: var(--primary-color); color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; font-weight: 500; margin-top: 20px; transition: background-color 0.2s; }
#generate-btn:hover { background-color: #0056b3; }

/* Design Grid Stijlen */
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 15px; }
.design-option { position: relative; aspect-ratio: 1 / 1; border: 2px solid var(--border-color); border-radius: 8px; cursor: pointer; transition: all 0.2s ease; display: flex; justify-content: center; align-items: center; background-color: #fff; overflow: hidden; }
.design-option img { max-width: 90%; max-height: 90%; object-fit: contain; }
.design-option:hover, .design-option.active { border-color: var(--primary-color); box-shadow: 0 0 0 2px var(--primary-color); }
.design-option.is-pro { cursor: not-allowed; }
.preview-box { width: 60%; height: 60%; border: 2px dashed #ccc; border-radius: 4px; }
.pro-badge { position: absolute; top: 0; right: 0; background-color: var(--pro-color); color: white; border-radius: 0 6px 0 6px; padding: 2px 6px; font-size: 12px; }

/* VERNIEUWDE QR Code Resultaat Box voor LAGEN */
#qr-code-box {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;

    /* --- BELANGRIJKE TOEVOEGINGEN --- */
    display: flex !important; /* of 'block' als flex problemen geeft */
    visibility: visible !important;
    opacity: 1 !important;
}
#qr-code-container, #frame-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#qr-code-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    box-sizing: border-box;

    /* --- BELANGRIJKE TOEVOEGINGEN --- */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* BELANGRIJKE TOEVOEGING: Schaal de QR-code voor weergave */
#qr-code-container canvas,
#qr-code-container img {
    width: 100% !important;
    height: 100% !important;
}

#frame-image {
    z-index: 2; /* Kader op de voorgrond */
    object-fit: contain; /* Zorgt dat het kader schaalt */
    pointer-events: none; /* Zorgt dat je de QR-code eronder kunt selecteren */
}
#qr-code-placeholder { display: flex; justify-content: center; align-items: center; color: var(--subtle-text); width: 100%; height: 100%;}
#qr-code-container:not(:empty) ~ #qr-code-placeholder { display: none; }

/* Download Knop */
#download-btn { display: inline-block; background-color: #28a745; color: white; padding: 10px 20px; border: none; border-radius: 5px; font-weight: 500; font-family: 'Inter', sans-serif; font-size: 16px; cursor: pointer; margin-top: 20px; transition: all 0.3s; }
#download-btn:hover { background-color: #218838; }
.hidden { display: none !important; }

/* Advertenties & Footer... */
.ad-placeholder { display: flex; justify-content: center; align-items: center; background-color: #e9ecef; border: 2px dashed #ced4da; border-radius: 8px; color: #6c757d; text-align: center; margin: 20px auto; flex-shrink: 0; }
.ad-leaderboard-top { min-height: 90px; width: 100%; max-width: 728px; margin-top: 20px; margin-bottom: 0; }
.ad-leaderboard-bottom { min-height: 90px; width: 100%; max-width: 728px; }
footer { text-align: center; padding: 20px 0; background-color: #fff; border-top: 1px solid var(--border-color); color: var(--subtle-text); font-size: 0.9rem; flex-shrink: 0; }
footer a { color: var(--primary-color); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
    .tool-container-flex { flex-direction: column; }
    .main-container { padding: 20px 15px; }
    .title { font-size: 1.8rem; }
}
.design-pro-house {
    /* Deze stijl is leeg, omdat de afbeelding zelf het hele design is */
    padding: 0;
    border: none;
    background-color: transparent;
}