/* Kenteken container met afbeelding */
.rdw-plate-bg {
    position: relative;
    width: 320px;
    height: 70px;
    background: url('kenteken.png') no-repeat center / cover;
}

/* Placeholder styling voor kenteken input */
#rdw-kenteken::placeholder {
    font-size: 14px; /* placeholder iets kleiner dan input */
    font-weight: 700; /* dikker */
    color: #666;
}

/* Transparant input bovenop de afbeelding, perfect gecentreerd */
#rdw-kenteken {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* horizontaal & verticaal centreren */
    
    width: 240px;
    height: 50px; /* past netjes in de plaat */
    line-height: 50px; /* gelijk aan hoogte voor verticale centrering */
    padding: 0;
    
    border: none;
    background: transparent;
    outline: none;

    font-size: 32px; /* grote letters */
    font-weight: 700; /* dikker */
    letter-spacing: 4px;
    text-align: center;
    text-transform: uppercase;
    color: #000;
}

/* Resultaatweergave (voor fallback of debug) */
#rdw-result {
    margin-top: 20px;
    font-size: 16px;
}

/* Overlay achtergrond voor modal */
.rdw-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
}

/* Modal box */
.rdw-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto; 
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
}

/* Close-knop */
.rdw-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* Tabel styling in modal */
.rdw-modal table {
    width: 100%;
    border-collapse: collapse;
}

.rdw-modal th,
.rdw-modal td {
    padding: 5px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.rdw-modal th {
    width: 40%;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
    .rdw-modal {
        width: 95%;
        padding: 15px;
    }

    #rdw-kenteken {
        font-size: 24px;
        letter-spacing: 2px;
        height: 40px;
        line-height: 40px;
    }

    #rdw-kenteken::placeholder {
        font-size: 18px;
    }
}