﻿:root {
    --bg: #fff7fb;
    --bg2: #fff0f7;
    --card: rgba(255,255,255,0.78);
    --border: rgba(30,30,60,0.10);
    --text: #1a1730;
    --muted: rgba(26,23,48,0.70);
    --accent: #ff3ea6;
    --accent2: #ff7ac8;
    --accent3: #ff2b8f;
    --shadow: 0 14px 40px rgba(255, 62, 166, 0.12);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(900px 500px at 20% 10%, rgba(255, 62, 166, 0.12), transparent 60%), radial-gradient(900px 500px at 80% 20%, rgba(255, 122, 200, 0.14), transparent 60%), linear-gradient(180deg, var(--bg), var(--bg2));
    /* footer always bottom of page */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#app {
    flex: 1 0 auto;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 28px 18px 60px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 2rem;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.55;
}

.small {
    font-size: 0.95rem;
}

/* Buttons */
.actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

button, .btn {
    appearance: none;
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .12s ease, opacity .12s ease, background .12s ease;
}

    button:active {
        transform: translateY(1px);
    }

.btn-primary {
    color: white;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    box-shadow: 0 10px 20px rgba(255,62,166,0.18);
}

    .btn-primary:hover {
        box-shadow: 0 12px 26px rgba(255,62,166,0.22);
    }

.btn-secondary {
    background: rgba(26,23,48,0.05);
    color: var(--text);
    border: 1px solid rgba(26,23,48,0.10);
}

.btn-ghost {
    background: rgba(255,255,255,0.0);
    color: var(--text);
    border: 1px dashed rgba(26,23,48,0.18);
}

button:disabled {
    opacity: 0.50;
    cursor: not-allowed;
}

label {
    color: rgba(26,23,48,0.75);
    font-weight: 700;
}

input[type="text"] {
    width: 100%;
    margin-top: 6px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(26,23,48,0.14);
    background: rgba(255,255,255,0.88);
    color: var(--text);
    outline: none;
    transition: box-shadow .12s ease, border-color .12s ease;
}

    input[type="text"]:focus {
        border-color: rgba(255,62,166,0.55);
        box-shadow: 0 0 0 4px rgba(255,62,166,0.14);
    }

.slotGrid {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.slotCard {
    border-radius: 20px;
    border: 1px solid rgba(26,23,48,0.10);
    background: rgba(255,255,255,0.72);
    padding: 16px;
}

.slotRow {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.slotLeft {
    flex: 1 1 260px;
    min-width: 240px;
}

.slotRight {
    flex: 0 0 260px;
}

.progressOuter {
    height: 10px;
    background: rgba(26,23,48,0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.progressInner {
    height: 10px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 52px;
    margin-top: 8px;
}

.thumb {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(26,23,48,0.12);
    background: white;
    object-fit: cover;
}

.warn {
    color: rgba(150, 80, 0, 0.95);
    background: rgba(255, 220, 130, 0.22);
    border: 1px solid rgba(255, 220, 130, 0.55);
    padding: 10px 12px;
    border-radius: 14px;
    margin-top: 12px;
}

.twoCol {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
    margin-top: 14px;
}

@media (max-width: 820px) {
    .twoCol {
        grid-template-columns: 1fr;
    }
}

.canvasCard {
    border-radius: 22px;
    border: 1px solid rgba(26,23,48,0.10);
    background: rgba(255,255,255,0.72);
    padding: 14px;
}

.canvasWrap {
    background: white;
    border-radius: 18px;
    border: 1px solid rgba(26,23,48,0.12);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(26,23,48,0.06);
}

#drawCanvas, #testCanvas {
    width: 100%;
    height: auto;
    display: block;
    touch-action: none;
}

.toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.pill {
    border-radius: 999px;
    padding: 10px 12px;
    font-weight: 800;
    border: 1px solid rgba(26,23,48,0.12);
    background: rgba(26,23,48,0.04);
}

    .pill.active {
        border-color: rgba(255,62,166,0.50);
        box-shadow: 0 0 0 4px rgba(255,62,166,0.12);
        background: rgba(255,62,166,0.10);
    }

.sideCard {
    border-radius: 22px;
    border: 1px solid rgba(26,23,48,0.10);
    background: rgba(255,255,255,0.72);
    padding: 14px;
}

.stickyPanel {
    position: sticky;
    top: 16px;
    align-self: start;
}

.panelStack {
    display: grid;
    gap: 14px;
}

.previewBox {
    background: white;
    border-radius: 18px;
    border: 1px solid rgba(26,23,48,0.12);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.previewImg {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    border: 1px solid rgba(26,23,48,0.12);
    object-fit: contain;
    background: white;
}

.examplesPanel {
    margin-top: 16px;
    border-radius: 18px;
    border: 1px solid rgba(26,23,48,0.10);
    background: rgba(255,255,255,0.66);
    padding: 12px;
}

.examplesHeader {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.exampleGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.exampleBtn {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    border: 1px solid rgba(26,23,48,0.12);
    background: white;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(26,23,48,0.06);
}

    .exampleBtn img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .exampleBtn:hover {
        box-shadow: 0 10px 22px rgba(255,62,166,0.16);
        border-color: rgba(255,62,166,0.25);
    }

.resultPanel {
    border-radius: 18px;
    border: 1px solid rgba(26,23,48,0.10);
    background: rgba(255,255,255,0.70);
    padding: 14px;
}

.predictionBig {
    font-size: 1.25rem;
    font-weight: 950;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
}

.badgeUnknown {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(26,23,48,0.12);
    background: rgba(26,23,48,0.04);
    font-weight: 900;
    margin-left: 8px;
}

.bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.barRow {
    display: grid;
    grid-template-columns: 1fr 70px;
    gap: 10px;
    align-items: center;
}

.barLabel {
    font-weight: 900;
}

.barOuter {
    height: 12px;
    border-radius: 999px;
    background: rgba(26,23,48,0.08);
    overflow: hidden;
    border: 1px solid rgba(26,23,48,0.08);
    margin-top: 6px;
}

.barInner {
    height: 12px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.neighborGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.neighborCard {
    width: 140px;
    border-radius: 18px;
    border: 1px solid rgba(26,23,48,0.12);
    background: white;
    padding: 10px;
    box-shadow: 0 10px 22px rgba(26,23,48,0.06);
}

.neighborThumb {
    width: 100%;
    height: 110px;
    border-radius: 14px;
    border: 1px solid rgba(26,23,48,0.12);
    object-fit: cover;
    background: white;
    cursor: pointer;
}

.neighborMeta {
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(26,23,48,0.78);
}

.toast {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,62,166,0.25);
    background: rgba(255,62,166,0.10);
    color: rgba(26,23,48,0.92);
    font-weight: 700;
}

.choicePanel {
    margin-top: 12px;
    border-radius: 16px;
    border: 1px solid rgba(26,23,48,0.10);
    background: rgba(255,255,255,0.85);
    padding: 12px;
}

.choiceTitle {
    font-weight: 950;
    letter-spacing: -0.01em;
}

.choiceRow {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.choiceBtn {
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 900;
    border: 1px solid rgba(26,23,48,0.12);
    background: rgba(26,23,48,0.04);
}

    .choiceBtn:hover {
        box-shadow: 0 10px 22px rgba(255,62,166,0.14);
        border-color: rgba(255,62,166,0.25);
    }

.detailsCard {
    margin-top: 14px;
    border-radius: 18px;
    border: 1px solid rgba(26,23,48,0.10);
    background: rgba(255,255,255,0.70);
    padding: 10px 12px;
}

    .detailsCard summary {
        cursor: pointer;
        font-weight: 900;
        list-style: none;
    }

        .detailsCard summary::-webkit-details-marker {
            display: none;
        }

.detailsInner {
    padding-top: 10px;
}

/* fancy style welkom pagina */
.hero {
    padding: 22px;
}

.heroInner {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 16px;
    align-items: start;
}

@media (max-width: 920px) {
    .heroInner {
        grid-template-columns: 1fr;
    }
}

.heroTitle {
    font-size: 2.3rem;
    font-weight: 1000;
    letter-spacing: -0.03em;
}

.heroSubtitle {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.55;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.chip {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(26,23,48,0.10);
    background: rgba(255,255,255,0.75);
    font-weight: 900;
    color: rgba(26,23,48,0.78);
}

.heroCard {
    border-radius: 22px;
    border: 1px solid rgba(26,23,48,0.10);
    background: rgba(255,255,255,0.72);
    padding: 16px;
}

.kpiRow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.kpi {
    border-radius: 18px;
    border: 1px solid rgba(26,23,48,0.10);
    background: rgba(255,255,255,0.85);
    padding: 12px;
}

    .kpi .num {
        font-size: 1.4rem;
        font-weight: 1000;
        letter-spacing: -0.02em;
    }

    .kpi .lbl {
        font-size: 0.9rem;
        color: rgba(26,23,48,0.70);
        font-weight: 900;
        margin-top: 4px;
    }

.niceList {
    margin: 10px 0 0;
    padding-left: 18px;
    color: rgba(26,23,48,0.85);
}

    .niceList li {
        margin: 8px 0;
        line-height: 1.45;
    }

.siteFooter {
    flex: 0 0 auto;
    width: 100%;
    margin-top: auto;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 14px;
    background: rgba(255,255,255,0.70);
    border-top: 1px solid rgba(26,23,48,0.10);
    backdrop-filter: blur(10px);
    color: rgba(255,43,143,1);
    font-weight: 800;
    font-size: 0.92rem;
}
