/* <link rel="stylesheet" href="css/showklacht.css"> */
.main-klacht {
    margin: 20px auto;
    padding: 0 10px;
    text-align: left;
    max-width: 100%;
    box-sizing: border-box;
}

.klacht-kaart,
.klacht-reacties {
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.klacht-kaart {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.klacht-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.klacht-header img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.klacht-header-info {
    flex: 1;
}

.melder-bedrijf {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
}

.klacht-datum {
    font-size: 0.85em;
    color: #777;
}

.klacht-titel {
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 12px;
    margin-bottom: 20px;
}

.klacht-bubble,
.reactie-bubble.root {
    width: 100%;
    background: #dcf8c6;
    padding: 18px 22px;
    border-radius: 12px 12px 12px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    line-height: 1.6;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* klacht en reactie bubbles */
/* showklacht.zigzag.css zonder depth-klassen */

.reactieopklacht-bubble {
    width: 100%;
    background: #e3f2fd; /* lichtblauw in plaats van zilver */
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    line-height: 1.6;
    margin-bottom: 20px;
    box-sizing: border-box;
    text-align: left;
    border-left: 4px solid #2196f3;
}

.reactieopreactie-bubble {
    width: 60%;
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    line-height: 1.6;
    box-sizing: border-box;
}

.reactieopreactie-bubble.links {
    background: #e8f5e9;
    margin-left: 5%;
    margin-right: auto;
    text-align: left;
}

.reactieopreactie-bubble.rechts {
    background: #f1f8e9;
    margin-left: auto;
    margin-right: 5%;
    text-align: right;
}

.reactie-header {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 6px;
    text-align: left;
}

.react-link {
    font-size: 0.85em;
    color: #007bff;
    display: inline-block;
    margin-top: 10px;
}

.react-link:hover {
    text-decoration: underline;
}

.reactie-formulier {
    max-width: 800px;
    margin: 20px auto;
    padding: 10px;
}

.reactie-formulier form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f1f1f1;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.reactie-formulier textarea {
    flex: 1;
    resize: vertical;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1em;
    box-sizing: border-box;
}

.reactie-formulier button {
    margin-left: 10px;
    width: 48px;
    height: 48px;
    background: #007bff;
    border: none;
    color: white;
    font-size: 1.4em;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reactie-formulier button:hover {
    background: #0056b3;
}
/* einde klacht en reactie bubbles */


/* CSS KLAS VOOR ACTIE-BALK */
.actie-balk {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.9em;
}

.reactie-count {
    text-align: left;
    color: #333;
    cursor: pointer;
}

.reactie-toggle-link {
    color: #007bff;
    text-decoration: none;
    margin-left: auto;
}

.reactie-toggle-link:hover {
    text-decoration: underline;
}


.reactie-header {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 6px;
	text-align:left;
}

.react-link {
    font-size: 0.85em;
    color: #007bff;
    display: inline-block;
    margin-top: 10px;
}

.react-link:hover { text-decoration: underline; }

.reactie-formulier {
    max-width: 800px;
    margin: 20px auto;
    padding: 10px;
}

.reactie-formulier form {
    display: flex;
    gap: 10px;
    background: #f1f1f1;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.reactie-formulier textarea {
    flex: 1;
    resize: vertical;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
    font-family: inherit;
}

.reactie-formulier button {
    background: #007bff;
    border: none;
    color: white;
    font-size: 1.4em;
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
}

.reactie-formulier button:hover {
    background: #0056b3;
}

@media (max-width: 600px) {
    .klacht-header { flex-direction: column; align-items: center; text-align: center; }
    .klacht-header-info { text-align: center; }
}

#reactie-formulier {
    display: none;
}

.reactie-formulier form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f1f1f1;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.textarea-wrapper {
    display: flex;
    align-items: flex-end;
    position: relative;
}

.textarea-wrapper textarea {
    flex: 1;
    resize: vertical;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1em;
    box-sizing: border-box;
}


.textarea-wrapper button {
    margin-left: 10px;
    width: 48px;
    height: 48px;
    background: #007bff;
    border: none;
    color: white;
    font-size: 1.4em;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.textarea-wrapper button:hover {
    background: #0056b3;
}

.children {
    margin-left: 20px;
    margin-top: 10px;
}




.children .reactie-bubble {
    margin-top: 10px;
}


.reactie-groep-container {
    background: #f9f9f9;
    /* padding: 20px; */
    /* border-left: 4px solid #ccc; */
    margin-bottom: 40px;
    border-radius: 8px;
}




.reactie-groep .reactie-bubble {
    width: 60%;
    margin-bottom: 20px;
}

.reactie-groep {
    transition: max-height 0.4s ease, opacity 0.3s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

.reactie-groep.js-open {
    max-height: 2000px;
    opacity: 1;
}

/* Reactie-groep bubbels in zigzag */
.reactie-groep .reactie-bubble {
    width: 60%;
    margin-bottom: 20px;
}

.reactie-groep {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}


.reactie-bubble p {
    text-align: left;
    margin: 0.4em 0;
}

.reactie-bubble {
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    line-height: 1.6;
    margin-bottom: 20px;
    box-sizing: border-box;
    /* width: 60%; */
}

.reactie-bubble.links {
    background: #e8f5e9;
    margin-left: 5%;
    margin-right: auto;
    text-align: left;
	width: 60%;
}

.reactie-bubble.rechts {
    background: #f1f8e9;
    margin-left: auto;
    margin-right: 5%;
    text-align: right;
	width: 60%;
}

/* Nieuwe kleur voor reactie op een reactie-op-klacht */
.reactie-bubble.op-reactieopklacht {
    background: #e3f2fd; /* lichtblauw */
    border-left: 4px solid #64b5f6;
}

/* Desgewenst ook een onderscheid voor reacties op reacties op reacties */
.reactie-bubble.op-reactie {
    background: #fff8e1; /* zachtgeel */
    border-left: 4px solid #fbc02d;
}

.reactie-menu-btn {
    float: right;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 8px;
}

.reactie-contextmenu {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ccc;
    position: absolute;
    right: 10px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 5px;
    border-radius: 6px;
	width:160px;
}

.reactie-contextmenu button {
    background: none;
    border: none;
    text-align: left;
    padding: 5px 10px;
    cursor: pointer;
    width: 100%;
}

.reactie-contextmenu button:hover {
    background-color: #f0f0f0;
}


.melding-login-nodig {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #856404;
    font-size: 0.95em;
}
.melding-login-nodig a {
    color: #856404;
    text-decoration: underline;
}
.melding-login-nodig a:hover {
    text-decoration: none;
}



