/* Dit gedeelte bevat de CSS voor de Renev AI applicatie */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: 400;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

body {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #181818;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1) !important;
    z-index: 0 !important;
    pointer-events: none;
}

.chat-message,
.chat-message.user,
.chat-message.bot {
    background: rgba(0,0,0,0) !important;
    border: none !important;
    min-height: 60px !important;
    height: unset !important;
    box-shadow: none !important;
    color: #fff;
    padding: 18px 28px;
    border-radius: 30px !important;
    z-index: 10;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

:root {
    --input-height: 60px;
}

.container {
    position: fixed;
    top: 120px;
    bottom: 135px; /* Adjusted for input bar and disclaimer */
    left: 30px;
    right: 30px;
    overflow-y: auto;
    background: none;
    padding: 0; /* Let the container's position handle the spacing */
    margin-bottom: 0;
    transition: bottom 0.3s ease;
    padding-bottom: 30px; /* Extra padding */
}

.container.has-mask {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.container.has-mask::before,
.container.has-mask::after {
    content: '';
    position: fixed;
    left: 30px;
    right: 30px;
    height: 50px;
    background: url('https://media.idownloadblog.com/wp-content/uploads/2025/06/iPad-26-Wallpaper-for-iPhone-by-iSpazio.jpg') no-repeat center center fixed;
    background-size: cover;
    filter: blur(8px);
    z-index: -1;
    pointer-events: none;
}

.container.has-mask::before {
    top: 120px;
}

.container.has-mask::after {
    bottom: 120px;
}

.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    z-index: 1000;
    background: none;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-button {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, background;
    overflow: hidden;
    font-size: 16px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.nav-button::before {
    content: none;
}

/* Speciale afrondingen voor specifieke knoppen */
.nav-button.export {
    border-radius: 30px 15px 15px 30px;
}

.nav-button.export::before {
    content: none;
}

.nav-button.import {
    border-radius: 15px 30px 30px 15px;
}

.nav-button.import::before {
    content: none;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.15) rotate3d(1, 1, 0, 15deg);
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.nav-button.export:hover {
    transform: scale(1.15) rotate3d(0, 1, 0, 15deg);
}

.nav-button.import:hover {
    transform: scale(1.15) rotate3d(0, 1, 0, 15deg);
}

.nav-button:active {
    transform: scale(0.8) rotate(-10deg);
}

.nav-button.export:active {
    transform: scale(0.8) rotate(-10deg);
}

.nav-button.import:active {
    transform: scale(0.8) rotate(10deg);
}

.nav-button,
.chat-input-container button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button i,
.chat-input-container button i {
    font-size: 24px;
    line-height: 1;
}

.chat-input-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    z-index: 100;
    background: none;
    transition: box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: inputFadeIn 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes inputFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-input-container textarea {
    flex: 1;
    height: 60px;
    min-height: 60px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px 15px 15px 30px;
    color: white;
    font-size: 18px;
    font-family: 'Source Serif Pro', serif;
    resize: none;
    overflow-y: auto;
    min-width: 60px;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 30px;
    transition: background 0.3s, box-shadow 0.3s, border 0.3s, color 0.3s, height 0.18s cubic-bezier(0.4,0,0.2,1);
}

.chat-input-container textarea.multi-line {
    border-radius: 30px 15px 15px 30px;
}

.chat-input-container textarea.single-line {
    border-radius: 30px 15px 15px 30px;
}

.chat-input-container textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.chat-input-container textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.chat-input-container button {
    height: 60px;
    width: 60px;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px 30px 30px 15px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.chat-input-container button:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-input-container button:active {
    transform: scale(0.8) rotate(10deg);
}

#fileUpload {
    display: none;
}

#filePreview {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 101;
    display: none;
}

#filePreview .file-info {
    color: white;
    font-size: 14px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#clearFileButton {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

#clearFileButton:hover {
    color: #ff4d4d;
    transform: scale(1.1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Reverted back */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Added visibility transition */
    opacity: 0;
    visibility: hidden;
}

.modal-overlay.visible {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background: transparent;
    padding: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    box-shadow: none;
    border-radius: 0;
}

.modal-window::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Spacing is now handled by the margin on the modal-window itself */

.modal-overlay.visible .modal-window {
    transform: scale(1);
}

.modal-title {
    font-size: 2.5em;
    font-weight: bold;
    color: white;
    margin-bottom: 25px;
    text-align: center;
    transform: scale(1.03);
    animation: qorFadeIn 0.3s ease-out;
    will-change: opacity;
}

.modal-text {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Container for button groups like in the 'Personalize' modal */
.personalize-buttons-container {
    margin-top: 30px; /* Space from text to the button group */
    display: flex;
    flex-direction: column;
    gap: 30px;       /* Space between buttons inside the container */
}

/* Base style for all action buttons in modals */
.modal-action-button {
    display: flex;
    height: 60px !important; /* Ensure height is 60px */
    min-height: 60px !important; /* Ensure minimum height is 60px */
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    gap: 15px;
    /* No margin here to avoid conflicts */
}

/* Rule for individual buttons that are NOT in a container */
.modal-window > .modal-action-button {
    margin-top: 30px;
}

.modal-action-button:hover {
    transform: scale(1.03);
}

.modal-button-text {
    flex: 1;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px 15px 15px 30px;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-button-icon {
    width: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px 30px 30px 15px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.notification {
    display: none;
}

@keyframes notificationFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.notification.fadeOut {
    animation: notificationFadeOut 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes notificationFadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

@media (max-width: 770px) {
    .container {
        padding-bottom: 30px !important;
    }
    .chat-message,
    .chat-message.user,
    .chat-message.bot {
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        white-space: pre-line !important;
        word-break: break-word !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Op desktop geen border-radius voor chat-input-container en textarea */
@media (min-width: 771px) {
    .chat-input-container {
        border-radius: 30px 15px 15px 30px !important;
    }
    .chat-input-container textarea {
        border-radius: 30px 15px 15px 30px !important;
    }
}

/* Fade In animatie voor modals en notificaties */
@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: scale(0.95);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from { 
        opacity: 1;
        transform: scale(1);
    }
    to { 
        opacity: 0;
        transform: scale(0.95);
    }
}

.modal-overlay {
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.closing {
    animation: fadeOut 0.3s ease-in forwards;
}

.modal-window {
    animation: fadeIn 0.3s ease-out;
}

.modal-window.closing {
    animation: fadeOut 0.3s ease-in forwards;
}

/* Verwijder alle extra effecten */
.modal-overlay::before {
    display: none;
}

.modal-window {
    box-shadow: none;
}

/* Stijl voor de language input */
.account-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.language-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: white;
    font-size: 16px;
    font-family: 'Source Serif Pro', serif;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.language-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-message h1 {
    font-size: 24px;
    margin: 15px 0;
    color: #fff;
}

.chat-message h2 {
    font-size: 20px;
    margin: 12px 0;
    color: #fff;
}

.chat-message h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #fff;
}

.chat-message ul, .chat-message ol {
    margin: 10px 0;
    padding-left: 20px;
}

.chat-message li {
    margin: 5px 0;
}

.chat-message blockquote {
    border-left: 3px solid rgba(255,255,255,0.3);
    margin: 10px 0;
    padding-left: 15px;
    color: rgba(255,255,255,0.8);
}

.chat-message pre {
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 10px 0;
}

.chat-message code {
    font-family: 'Consolas', monospace;
}

.chat-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    margin: 8px 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.chat-button:hover {
    background: linear-gradient(145deg, rgba(255,255,255,0.3), rgba(255,255,255,0.2));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    border-color: rgba(255,255,255,0.5);
}

.chat-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button-icon {
    margin-right: 8px;
    font-size: 16px;
}

.button-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.chat-message table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
    background: rgba(255,255,255,0.1);
}

.chat-message th {
    background: rgba(255,255,255,0.2);
    font-weight: bold;
    text-align: left;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.3);
}

.chat-message td {
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.3);
}

.chat-message a {
    color: #4a9eff;
    text-decoration: underline;
    transition: color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-message a:hover {
    color: #6bb5ff;
}

.chat-message strong {
    font-weight: bold;
}

.chat-message em {
    font-style: italic;
}

.chat-message strong em,
.chat-message em strong {
    font-weight: bold;
    font-style: italic;
}

.markdown-table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.markdown-table th {
    background: rgba(255,255,255,0.2);
    font-weight: bold;
    text-align: left;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.3);
}

.markdown-table td {
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.3);
}

.chat-message code {
    background: rgba(0,0,0,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
}

.chat-message pre {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

.chat-message pre code {
    background: none;
    padding: 0;
}

.chat-message img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    margin-top: 10px;
    object-fit: contain;
}

/* Nieuwe animaties */
@keyframes slideUp {
    from { 
        transform: translate(-50%, 100px);
        opacity: 0;
    }
    to { 
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from { 
        transform: scale(0.5);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message {
    animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-window {
    animation: fadeIn 0.8s ease-in-out;
}

.notification {
    animation: slideUp 1.6s ease-in-out;
}

.nav-button {
    animation: buttonPop 1.6s ease-in-out;
}

.chat-input-container button,
.file-upload-button {
    animation: buttonPop 1.6s ease-in-out;
}

/* Verbeterde hover states voor knoppen */
.nav-button,
.chat-input-container button,
.file-upload-button,
.modal-button,
.message-action-button,
#clearFileButton {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    background: rgba(255, 255, 255, 0.2) !important;
}

.nav-button:hover,
.chat-input-container button:hover,
.file-upload-button:hover,
.modal-button:hover,
.message-action-button:hover,
#clearFileButton:hover {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.2) !important;
}

.nav-button:active,
.chat-input-container button:active,
.file-upload-button:active,
.modal-button:active,
.message-action-button:active,
#clearFileButton:active {
    transform: scale(0.95) rotate(-5deg);
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Verwijder alle hover glow effecten */
.nav-button::after,
.chat-input-container button::after,
.file-upload-button::after,
.modal-button::after,
.message-action-button::after,
#clearFileButton::after {
    display: none !important;
}

/* Verwijder alle filter en background hover effecten */
.nav-button:hover,
.chat-input-container button:hover,
.file-upload-button:hover,
.modal-button:hover,
.message-action-button:hover,
#clearFileButton:hover {
    filter: none !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

.nav-button:active,
.chat-input-container button:active,
.file-upload-button:active,
.modal-button:active,
.message-action-button:active,
#clearFileButton:active {
    filter: none !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Verwijder alle extra effecten */
.modal-overlay::before {
    display: none;
}

.modal-window {
    box-shadow: none;
}

/* Verwijder alle gradient effecten */
.modal-button::after {
    display: none !important;
}

/* Verwijder alle brightness effecten */
.nav-button:hover,
.chat-input-container button:hover,
.file-upload-button:hover,
.modal-button:hover,
.message-action-button:hover,
#clearFileButton:hover {
    filter: none !important;
}

/* Verwijder alle blur effecten */
.nav-button:hover,
.chat-input-container button:hover,
.file-upload-button:hover,
.modal-button:hover,
.message-action-button:hover,
#clearFileButton:hover {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Nieuwe taakbalk animaties */
@keyframes navButtonAppear {
    0% {
        transform: translateY(-50px) scale(0.8) rotate3d(1, 1, 0, -30deg);
        opacity: 0;
    }
    50% {
        transform: translateY(10px) scale(1.1) rotate3d(1, 1, 0, 15deg);
    }
    100% {
        transform: translateY(0) scale(1) rotate3d(0, 0, 0, 0);
        opacity: 1;
    }
}

.nav-button {
    animation: navButtonAppear 2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Snelle typanimatie voor hele bericht */
@keyframes typing {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-animation {
    animation: typing 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
    white-space: normal;
    overflow: visible;
    border-right: none;
}

/* Verwijder alle oude typanimatie stijlen */
.typing-animation {
    white-space: normal !important;
    overflow: visible !important;
    border-right: none !important;
    width: auto !important;
    animation: typing 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Nieuwe styles voor reacties */
.message-actions {
    position: absolute;
    right: 10px;
    top: 10px;
    display: none;
    gap: 5px;
}

.chat-message:hover .message-actions {
    display: flex;
}

.message-action-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 12px;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.message-action-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.reactions-container {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.reaction {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2px 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.reaction-count {
    color: rgba(255, 255, 255, 0.7);
}

.reaction-picker {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px;
    display: none;
    gap: 5px;
    z-index: 1000;
}

.reaction-picker.visible {
    display: flex;
}

.reaction-option {
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reaction-option:hover {
    transform: scale(1.2);
}

/* Shortcut hint styles */
.shortcut-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    z-index: 2000;
    display: none;
}

.shortcut-hint.visible {
    display: block;
}

.shortcut-key {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin: 0 2px;
}

.settings-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.settings-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.settings-item[data-action="language"] {
    margin-bottom: 0;
}

.settings-item[data-action="resetChat"] {
    margin-bottom: 0;
}

.settings-item[data-action="about"] {
    margin-bottom: 0;
}

.settings-item[data-action="contact"] {
    margin-bottom: 0;
}

.icon-box {
    width: auto;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.text-box {
    color: white;
    z-index: 2;
}

/* Speciale afrondingen voor de icon boxes */
.start-icon {
    border-radius: 30px 15px 15px 30px;
}

.language-icon {
    border-radius: 30px 15px 15px 30px;
}

.reset-icon {
    border-radius: 30px 15px 15px 30px;
}

.about-icon {
    border-radius: 30px 15px 15px 15px;
}

.contact-icon {
    border-radius: 15px 15px 15px 30px;
}

.close-icon {
    border-radius: 30px 15px 15px 30px;
}

/* Speciale afrondingen voor de text boxes */
.start-text {
    border-radius: 15px 30px 30px 15px;
}

.language-text {
    border-radius: 15px 30px 30px 15px;
}

.reset-text {
    border-radius: 15px 30px 30px 15px;
}

.about-text {
    border-radius: 15px 30px 15px 15px;
}

.contact-text {
    border-radius: 15px 15px 30px 15px;
}

.close-text {
    border-radius: 15px 30px 30px 15px;
}

/* Verbeterde animaties voor de modal content */
.modal-content {
    animation: qorFadeIn 0.3s ease-out;
    will-change: opacity;
}

.modal-header {
    animation: qorFadeIn 0.3s ease-out;
    will-change: opacity;
}

.modal-title {
    animation: qorFadeIn 0.3s ease-out;
    will-change: opacity;
}

/* Verbeterde animaties voor de update list */
.update-list {
    animation: qorFadeIn 0.3s ease-out;
    will-change: opacity;
}

.update-list li {
    animation: qorFadeIn 0.3s ease-out;
    will-change: opacity;
    animation-fill-mode: both;
}

.update-list li:nth-child(1) { animation-delay: 0.05s; }
.update-list li:nth-child(2) { animation-delay: 0.1s; }
.update-list li:nth-child(3) { animation-delay: 0.15s; }
.update-list li:nth-child(4) { animation-delay: 0.2s; }
.update-list li:nth-child(5) { animation-delay: 0.25s; }
.update-list li:nth-child(6) { animation-delay: 0.3s; }
.update-list li:nth-child(7) { animation-delay: 0.35s; }
.update-list li:nth-child(8) { animation-delay: 0.4s; }
.update-list li:nth-child(9) { animation-delay: 0.45s; }
.update-list li:nth-child(10) { animation-delay: 0.5s; }
.update-list li:nth-child(11) { animation-delay: 0.55s; }

/* Verbeterde animaties voor modals - pure fade effecten */
@keyframes qorFadeIn {
    0% { 
        opacity: 0;
    }
    100% { 
        opacity: 1;
    }
}

@keyframes qorFadeOut {
    0% { 
        opacity: 1;
    }
    100% { 
        opacity: 0;
    }
}

.modal-overlay {
    animation: qorFadeIn 0.3s ease-out;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.modal-overlay.closing {
    animation: qorFadeOut 0.3s ease-out;
}

.modal-window {
    animation: qorFadeIn 0.3s ease-out;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.modal-window.closing {
    animation: qorFadeOut 0.3s ease-out;
}

/* Behoud de knoppen styling */
.settings-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.settings-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.text-box {
    flex: 1;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    padding: 0 30px;
    color: white;
}

/* Speciale afrondingen voor de icon boxes */
.start-icon {
    border-radius: 30px 15px 15px 30px;
}

.language-icon {
    border-radius: 30px 15px 15px 30px;
}

.reset-icon {
    border-radius: 30px 15px 15px 30px;
}

.about-icon {
    border-radius: 30px 15px 15px 15px;
}

.contact-icon {
    border-radius: 15px 15px 15px 30px;
}

.close-icon {
    border-radius: 30px 15px 15px 30px;
}

/* Speciale afrondingen voor de text boxes */
.start-text {
    border-radius: 15px 30px 30px 15px;
}

.language-text {
    border-radius: 15px 30px 30px 15px;
}

.reset-text {
    border-radius: 15px 30px 30px 15px;
}

.about-text {
    border-radius: 15px 30px 15px 15px;
}

.contact-text {
    border-radius: 15px 15px 30px 15px;
}

.close-text {
    border-radius: 15px 30px 30px 15px;
}

/* Verbeterde animaties voor de modal content */
.modal-content {
    animation: qorFadeIn 0.3s ease-out;
    will-change: opacity;
}

.modal-header {
    animation: qorFadeIn 0.3s ease-out;
    will-change: opacity;
}

.modal-title {
    animation: qorFadeIn 0.3s ease-out;
    will-change: opacity;
}

/* Verbeterde animaties voor de update list */
.update-list {
    animation: qorFadeIn 0.3s ease-out;
    will-change: opacity;
}

.update-list li {
    animation: qorFadeIn 0.3s ease-out;
    will-change: opacity;
    animation-fill-mode: both;
}

.update-list li:nth-child(1) { animation-delay: 0.05s; }
.update-list li:nth-child(2) { animation-delay: 0.1s; }
.update-list li:nth-child(3) { animation-delay: 0.15s; }
.update-list li:nth-child(4) { animation-delay: 0.2s; }
.update-list li:nth-child(5) { animation-delay: 0.25s; }
.update-list li:nth-child(6) { animation-delay: 0.3s; }
.update-list li:nth-child(7) { animation-delay: 0.35s; }
.update-list li:nth-child(8) { animation-delay: 0.4s; }
.update-list li:nth-child(9) { animation-delay: 0.45s; }
.update-list li:nth-child(10) { animation-delay: 0.5s; }
.update-list li:nth-child(11) { animation-delay: 0.55s; }

/* Language Modal Styles */
.language-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.language-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
}

.language-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-input {
    width: 100%;
    height: 60px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: white;
    font-size: 18px;
    text-align: center;
}

.language-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.language-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

header, main, footer {
    z-index: 2;
}

/* New Settings Modal Styles */
.settings-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    width: 100%;
}

.settings-button {
    display: flex;
    height: 60px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 15px;
}

.settings-button:hover {
    transform: scale(1.03);
}

.settings-button-icon {
    width: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px 15px 15px 30px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.settings-button-icon i {
    line-height: 1;
}

.settings-button-text {
    flex: 1;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px 30px 30px 15px;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Apply settings-button animations to recent-chat-item */
.recent-chat-item {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.recent-chat-item:hover {
    transform: scale(1.03);
}

/* Apply settings-button animations to edit-chat-menu buttons */
.edit-chat-menu .modal-action-button {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.edit-chat-menu .modal-action-button:hover {
    transform: scale(1.03);
}

@keyframes qorSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Typing Indicator */
.typing {
    opacity: 0.7;
    animation: typing-blink 1.5s infinite;
}

@keyframes typing-blink {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

/* Typing Indicator & Cursor */
.typing {
    opacity: 0.7;
    animation: typing-blink 1.5s infinite;
}

.typing-cursor {
    display: inline-block;
    animation: typing-cursor-blink 1s infinite;
}

@keyframes typing-cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes typing-blink {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

/* Universeel: altijd 30px onderruimte bij berichtenlijst */
.chat-messages {
    padding-bottom: 30px !important;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.chat-message {
    max-width: 60%;
    min-height: 60px;
    font-size: 18px;
    line-height: 1.5;
    border-radius: 30px 15px 15px 30px;
    padding: 18px 28px;
    margin: 0 0 0 0;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
    border: 1.5px solid rgba(255,255,255,0.20);
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    word-break: break-word;
    position: relative;
    transition: background 0.3s, box-shadow 0.3s;
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    background: rgba(255,255,255,0.13);
    border: 1.5px solid rgba(255,255,255,0.22);
    color: #fff;
    border-radius: 15px 30px 30px 15px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.13);
    margin-right: 0;
    margin-left: auto;
}

.chat-message.bot {
    align-self: flex-start;
    background: rgba(255,255,255,0.10);
    border: 1.5px solid rgba(255,255,255,0.18);
    color: #fff;
    border-radius: 30px 15px 15px 30px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
    margin-left: 0;
    margin-right: auto;
}

@media (max-width: 900px) {
    .chat-message {
        max-width: 85%;
        font-size: 16px;
        padding: 14px 16px;
    }
}

@media (max-width: 600px) {
    .chat-message {
        max-width: 98%;
        font-size: 15px;
        padding: 10px 8px;
    }
}

.chat-message,
.chat-message.user,
.chat-message.bot {
    border-radius: 30px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 10;
}

.nav-button,
.chat-input-container button,
.language-input,
.settings-button-icon,
.settings-button-text,
#clearFileButton {
    background: rgba(255,255,255,0.10) !important;
    border: 1px solid rgba(255,255,255,0.20) !important;
    border-radius: 30px !important;
    color: #fff !important;
    font-family: 'Source Serif Pro', serif !important;
    font-size: 18px !important;
    height: 60px !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: none !important;
    padding: 0 28px !important;
    transition: background 0.3s, box-shadow 0.3s;
}

.chat-input-container textarea {
    background: rgba(255,255,255,0.10) !important;
    border: 1px solid rgba(255,255,255,0.20) !important;
    border-radius: 30px !important;
    color: #fff !important;
    font-family: 'Source Serif Pro', serif !important;
    font-size: 18px !important;
    height: 60px !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: none !important;
    padding: 0 28px !important;
    transition: background 0.3s, box-shadow 0.3s, border 0.3s, color 0.3s, height 0.18s cubic-bezier(0.4,0,0.2,1);
    resize: none !important;
}

.chat-input-container textarea::placeholder {
    color: rgba(255,255,255,0.7) !important;
    opacity: 1 !important;
    font-family: 'Source Serif Pro', serif !important;
    font-size: 18px !important;
}

.nav-button i,
.chat-input-container button i,
.settings-button-icon i,
#clearFileButton span,
.button-icon {
    color: #fff !important;
    font-size: 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-message,
.chat-message.user,
.chat-message.bot {
    background: rgba(255,255,255,0.0) !important;
    border: none !important;
    min-height: 60px !important;
    height: 60px !important;
    color: #fff !important;
    font-family: 'Source Serif Pro', serif !important;
    font-size: 18px !important;
    border-radius: 30px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 28px !important;
    box-shadow: none !important;
    z-index: 10;
}

.chat-message,
.chat-message.user,
.chat-message.bot {
    background: rgba(255,255,255,0.10) !important;
    border: 1px solid rgba(255,255,255,0.20) !important;
    min-height: 60px !important;
    height: auto !important;
    display: block !important;
    align-items: unset !important;
    white-space: pre-line !important;
    word-break: break-word !important;
    padding: 18px 28px !important;
    border-radius: 30px !important;
    box-shadow: none !important;
}

.chat-message.bot {
    border-radius: 15px 30px 30px 30px !important;
}

.chat-message.user {
    border-radius: 30px 15px 30px 30px !important;
}

.chat-message {
    border-radius: 30px !important;
}

.chat-input-container textarea {
    border-radius: 30px 15px 15px 30px !important;
}

.chat-input-container button {
    border-radius: 15px 30px 30px 15px !important;
}

.settings-button-icon {
    border-radius: 30px 15px 15px 30px !important;
}

.settings-button-text {
    border-radius: 15px 30px 30px 15px !important;
}

.nav-button.import,
.nav-button.export {
    display: none !important;
}

.chat-message,
.chat-message.user,
.chat-message.bot {
    min-height: 60px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* OVERSCHRIJF ALLE OUDE min-height EN CENTREER DE TEKST IN DE BUBBLES */
.chat-message {
    min-height: unset !important;
}

.chat-message.user {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: right !important;
    padding: 12px 24px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.chat-message.bot {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 12px 24px !important;
    box-sizing: border-box !important;
}

/* BUTTONS AND INPUTS STYLING - EXAGGERATED ANIMATIONS WITH BLUR FIX */
.nav-button {
    background: rgba(255,255,255,0.10) !important;
    border: 1px solid rgba(255,255,255,0.20) !important;
    color: #fff !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: background 2.5s cubic-bezier(0.4,0,0.2,1), border 2.5s cubic-bezier(0.4,0,0.2,1), color 2.5s cubic-bezier(0.4,0,0.2,1), transform 2.5s cubic-bezier(0.4,0,0.2,1);
}

.nav-button:hover, .nav-button:active {
    background: rgba(255,255,255,0.25) !important;
    border: 1px solid rgba(255,255,255,0.40) !important;
    color: #fff !important;
    transform: scale(1.18) rotate(-8deg);
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.chat-input-container button, .chat-input-container textarea {
    background: rgba(255,255,255,0.10) !important;
    border: 1px solid rgba(255,255,255,0.20) !important;
    color: #fff !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: background 1.8s cubic-bezier(0.4,0,0.2,1), border 1.8s cubic-bezier(0.4,0,0.2,1), color 1.8s cubic-bezier(0.4,0,0.2,1), transform 1.8s cubic-bezier(0.4,0,0.2,1);
}

.chat-input-container button:hover, .chat-input-container button:active,
.chat-input-container textarea:hover, .chat-input-container textarea:active {
    background: rgba(255,255,255,0.22) !important;
    border: 1px solid rgba(255,255,255,0.32) !important;
    color: #fff !important;
    transform: scale(1.12) rotate(6deg);
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* INPUT FIELD HOVER: SCALE-DOWN, THEN RETURN TO NORMAL AFTER 2S */
@keyframes inputScaleDownUp {
    0% { transform: scale(1); }
    10% { transform: scale(0.96); }
    90% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

.chat-input-container textarea:hover, .chat-input-container textarea:active {
    animation: none !important;
    transition: background 0.18s, box-shadow 0.18s, border 0.18s, color 0.18s, height 0.18s cubic-bezier(0.4,0,0.2,1);
    background: rgba(255,255,255,0.18) !important;
    border: 1px solid rgba(255,255,255,0.28) !important;
    color: #fff !important;
    transform: none;
}

/* POPUP ANIMATIONS - EXAGGERATED FADE AND SCALE */
.personalize-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.personalize-buttons-container .modal-action-button {
    height: 60px;
    flex-shrink: 0; /* Prevent button from shrinking */
}

@keyframes exaggeratedFadeIn {
    0% { opacity: 0; transform: scale(0.7); }
    80% { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes exaggeratedFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.modal-overlay,
.modal-window {
    animation: exaggeratedFadeIn 2.5s cubic-bezier(0.4,0,0.2,1) !important;
}

.modal-overlay.closing,
.modal-window.closing {
    animation: exaggeratedFadeOut 0.3s ease-out forwards !important;
}

/* POPUP BACKGROUND FADE-IN ANIMATION */
@keyframes popupBgFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay {
    animation: popupBgFadeIn 1.2s cubic-bezier(0.4,0,0.2,1) !important;
}

/* Popup window zelf behoudt de overdreven animatie */
.modal-window {
    animation: exaggeratedFadeIn 2.5s cubic-bezier(0.4,0,0.2,1) !important;
}

/* POPUP BUTTONS - EXAGGERATED ANIMATION AND 1PX BORDER */
.modal-button-icon, .modal-button-text,
.settings-button-icon, .settings-button-text {
    border: 1px solid rgba(255,255,255,0.20) !important;
    transition: background 1s cubic-bezier(0.4,0,0.2,1), border 1s cubic-bezier(0.4,0,0.2,1), color 1s cubic-bezier(0.4,0,0.2,1), transform 1s cubic-bezier(0.4,0,0.2,1);
}

.modal-button-icon:hover, .modal-button-icon:active,
.modal-button-text:hover, .modal-button-text:active,
.settings-button-icon:hover, .settings-button-icon:active,
.settings-button-text:hover, .settings-button-text:active {
    background: rgba(255,255,255,0.18) !important;
    border: 1px solid rgba(255,255,255,0.28) !important;
    color: #fff !important;
    transform: scale(1.08) rotate(3deg);
}

/* FORCE BUBBLE TO FIT TEXT EVEN ON SMALL SCREENS */
.chat-messages {
    display: block !important;
}

.chat-message,
.chat-message.user,
.chat-message.bot {
    display: block !important;
    width: fit-content !important;
    min-width: 48px !important;
    max-width: 70% !important;
    height: auto !important;
    min-height: 60px !important;
    max-height: none !important;
    white-space: pre-line !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    padding: 18px 24px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    margin-bottom: 10px !important;
}

.chat-message.bot {
    margin-left: 10px !important;
    margin-right: auto !important;
    text-align: left !important;
    align-self: flex-start !important;
}

.chat-message.user {
    margin-right: 10px !important;
    margin-left: auto !important;
    text-align: right !important;
    align-self: flex-end !important;
}

/* Verwijder te grote line-height bij br's */
.chat-message br, .chat-message.user br, .chat-message.bot br {
    line-height: 1.5 !important;
}

.background-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.background-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    height: 150px;
    width: 100%;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

/* Disclaimer Text */
.disclaimer-text {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-align: center;
    z-index: 99;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.background-gallery img:hover {
    transform: scale(1.05);
}

.background-gallery .gallery-item:first-child {
    grid-column: span 2;
}

.background-gallery .gallery-item:not(:first-child) {
    /* Your existing rules for other items can go here if needed,
       but for a simple grid, this might be enough. */
}

/* --- BEGIN FIX TYPBOX TEKST UITLIJNING --- */

.chat-input-container textarea {
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
    vertical-align: top !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    height: 60px;
    min-height: 60px;

}

/* --- EINDE FIX TYPBOX TEKST UITLIJNING --- */

/* --- BEGIN FIX POPUP CENTRERING --- */

.modal-window {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align to top */
    align-items: center;
    padding: 10vh 40px 40px 40px; /* Top, L/R, Bottom */
    box-sizing: border-box;
    height: 100vh; /* Full viewport height */
    overflow-y: auto;
}

.modal-title, .modal-text, .personalize-buttons-container, .account-fields, .modal-action-button {
    width: 100%; /* Zorg dat de elementen de volledige breedte van de modal-window gebruiken */
    max-width: 500px; /* Behoud een maximale breedte voor leesbaarheid */
    text-align: center; /* Centreer de tekst binnen de elementen */
}

.settings-options {
    width: 100%;
    max-width: 500px;
}

/* --- EINDE FIX POPUP CENTRERING --- */

/* --- BEGIN FIX KNOPPEN VERDWIJNEN --- */

.settings-button[style*="display: none"] {
    display: none !important;
}

/* --- EINDE FIX KNOPPEN VERDWIJNEN --- */
#recentChatsList {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

#recentChatsList .settings-button {
    width: 100%;
}