/* --- Algemene layout --- */
body {
    font-family: Consolas, monospace;
    background: #020202;
    color: #e1ffe1;
    padding: 0;
    margin: 0;
}

h2 {
    color: #5cff5c;
    margin: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
}

/* --- Chatbox --- */
.chatbox {
    position: fixed;
    top: 70px;            /* HOOGTE ONDER TITEL */
    left: 20px;
    right: 20px;
    bottom: 120px;        /* VASTE AFSTAND BOVEN INPUT */
    padding: 20px;

    background: radial-gradient(circle at top, #041704 0, #020602 45%, #010101 100%);
    border: 1px solid #0a3a0a;

    overflow-y: auto;
    box-shadow: 0 0 18px rgba(0, 255, 0, 0.15);
}

.chatbox::-webkit-scrollbar {
    width: 8px;
}
.chatbox::-webkit-scrollbar-track {
    background: #050805;
}
.chatbox::-webkit-scrollbar-thumb {
    background: #0c5f0c;
    border-radius: 4px;
}

/* --- Input zone onderaan --- */
.input-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 900px;

    display: flex;
    gap: 10px;

    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #0b3b0b;
    padding: 12px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

/* Input veld (textarea) */
.inbox {
    flex: 1;
    padding: 12px;
    background: #020802;
    color: #d4ffd4;

    border: 1px solid #167b16;
    border-radius: 12px;

    resize: none;
    overflow-y: hidden;
    min-height: 40px;
    outline: none;
}

.inbox::placeholder {
    color: #4b7f4b;
}

/* Verzendknop */
.askbtn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #0dd30d, #11a911);
    border: none;
    color: #020302;
    cursor: pointer;

    border-radius: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;

    box-shadow: 0 0 14px rgba(0, 255, 0, 0.4);
    transition: 0.1s ease-in-out;
}

.askbtn:hover {
    background: linear-gradient(135deg, #16ff16, #10b610);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
}

.askbtn:active {
    transform: scale(0.97);
}

/* --- Chat bubbels --- */
.msg {
    margin-bottom: 25px;
    display: block;
    max-width: 80%;
    white-space: pre-wrap;
}

/* User rechts */
.msg.user {
    margin-left: auto;
    background: linear-gradient(135deg, #033f03, #012a01);
    color: #caffca;
    padding: 12px 15px;
    border: 1px solid #19d619;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.25);
}

/* Bot links */
.msg.bot {
    background: #051805;
    color: #e6ffe6;
    padding: 12px 15px;
    border: 1px solid #0f8a0f;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0, 255, 120, 0.20);
}

/* --- Bronnen / links onderaan antwoord --- */
.src-link {
    color: #5cff5c;            /* zelfde groen als je titel */
    text-decoration: none;
    font-weight: normal;
    font-family: inherit;      /* blijft mooi monospace */
}

.src-link:visited {
    color: #5cff5c;            /* geen paars meer na klikken */
}

.src-link:hover {
    color: #a6ffb5;            /* iets lichter groen bij hover */
    text-decoration: underline;
    text-shadow: 0 0 6px rgba(92, 255, 92, 0.7);  /* subtiele glow */
}

