/* ================================================
   Acceptatiegids Zoeker – Frontend stijlen
   ================================================ */

:root {
    --ag-blauw:      #1a4a8a;
    --ag-blauw-licht: #e8f0fb;
    --ag-grijs:      #f4f5f7;
    --ag-rand:       #d0d7e3;
    --ag-tekst:      #1a1a2e;
    --ag-groen:      #1a7a4a;
    --ag-groen-licht: #eaf7ef;
    --ag-radius:     6px;
    --ag-schaduw:    0 2px 8px rgba(26,74,138,.10);
}

/* --- Widget container --- */
.ag-zoek-widget,
.ag-upload-wrap {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--ag-tekst);
    max-width: 780px;
    margin: 0 auto;
}

.ag-welkomst {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1.2rem;
    border-left: 3px solid var(--ag-blauw);
    padding-left: .75rem;
}

/* --- Partij filter --- */
.ag-partij-filter {
    margin-bottom: 1.2rem;
}

.ag-partij-filter > label {
    display: block;
    margin-bottom: .5rem;
    font-size: .9rem;
    color: var(--ag-blauw);
}

.ag-partij-knoppen {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.ag-partij-label {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--ag-grijs);
    border: 1px solid var(--ag-rand);
    border-radius: 20px;
    padding: .25rem .75rem;
    font-size: .85rem;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    user-select: none;
}

.ag-partij-label:hover {
    background: var(--ag-blauw-licht);
    border-color: var(--ag-blauw);
}

.ag-partij-label input { cursor: pointer; }

/* --- Zoekveld --- */
.ag-zoekveld-wrap {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.ag-zoekveld {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--ag-rand);
    border-radius: var(--ag-radius);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color .2s;
}

.ag-zoekveld:focus {
    outline: none;
    border-color: var(--ag-blauw);
    box-shadow: 0 0 0 2px rgba(26,74,138,.15);
}

/* --- Knoppen --- */
.ag-zoek-btn {
    align-self: flex-start;
    background: var(--ag-blauw);
    color: #fff;
    border: none;
    border-radius: var(--ag-radius);
    padding: .6rem 1.4rem;
    font-family: inherit;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s;
}

.ag-zoek-btn:hover { background: #153d72; }
.ag-zoek-btn:disabled { background: #8a9ab5; cursor: not-allowed; }

/* --- Laden --- */
.ag-laden {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    color: #555;
    font-size: .9rem;
}

.ag-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: var(--ag-blauw);
    border-radius: 50%;
    animation: ag-spin .7s linear infinite;
}

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

/* --- Resultaat --- */
.ag-resultaat {
    margin-top: 1.2rem;
    background: var(--ag-groen-licht);
    border: 1px solid #b2ddc6;
    border-radius: var(--ag-radius);
    padding: 1rem 1.2rem;
}

.ag-resultaat h4 {
    margin: 0 0 .5rem;
    font-size: .85rem;
    color: var(--ag-groen);
    text-transform: uppercase;
    letter-spacing: .05em;
}

#ag-resultaat-inhoud {
    white-space: pre-wrap;
    font-size: .95rem;
    line-height: 1.65;
}

/* --- Geen gidsen --- */
.ag-geen-gidsen {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: var(--ag-radius);
    padding: .8rem 1rem;
    font-size: .9rem;
}

/* --- Gidsen lijst --- */
.ag-gidsen-lijst { margin: 1rem 0; }

.ag-lijst {
    list-style: none;
    padding: 0;
    margin: .5rem 0 0;
}

.ag-lijst-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem .75rem;
    border-bottom: 1px solid var(--ag-rand);
    font-size: .9rem;
}

.ag-lijst-item:last-child { border-bottom: none; }

.ag-partij-naam { font-weight: bold; }

.ag-datum {
    color: #777;
    font-size: .8rem;
}

/* --- Upload formulier --- */
.ag-veld-groep {
    margin-bottom: 1rem;
}

.ag-veld-groep label {
    display: block;
    font-weight: bold;
    font-size: .9rem;
    margin-bottom: .3rem;
}

.ag-input {
    width: 100%;
    padding: .55rem .8rem;
    border: 1px solid var(--ag-rand);
    border-radius: var(--ag-radius);
    font-family: inherit;
    font-size: .95rem;
    box-sizing: border-box;
}

.ag-input:focus {
    outline: none;
    border-color: var(--ag-blauw);
}

.ag-verplicht { color: #c0392b; }

.ag-melding {
    padding: .75rem 1rem;
    border-radius: var(--ag-radius);
    margin-bottom: 1rem;
    font-size: .9rem;
}

.ag-melding.success {
    background: var(--ag-groen-licht);
    border: 1px solid #b2ddc6;
    color: var(--ag-groen);
}

.ag-melding.error {
    background: #fdecea;
    border: 1px solid #f5c6c6;
    color: #c0392b;
}
