/* === AI Site Chatbot – Free Edition by Websitetoday.nl === */

#aisc-bubble {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9999;
	font-family: "Poppins", sans-serif;
}

/* === Chatknop (floating button) === */
#aisc-chat-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: linear-gradient(135deg, #134475, #1b5eb7);
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	transition: all 0.25s ease;
}
#aisc-chat-icon:hover {
	transform: scale(1.07);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
	background: linear-gradient(135deg, #0f3767, #134475);
}
#aisc-chat-icon svg {
	width: 30px;
	height: 30px;
	fill: #ffffff;
}

/* === Chatvenster === */
#aisc-chat-window {
	display: flex;
	flex-direction: column;
	position: absolute;
	bottom: 80px;
	right: 0;
	width: 340px;
	max-height: 520px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	font-size: 14px;
	color: #222;
	opacity: 0;
	transform: translateY(20px);
	pointer-events: none;
	transition: all 0.25s ease;
}
#aisc-chat-window.active {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* === Header === */
#aisc-header {
	background: linear-gradient(135deg, #134475, #1b5eb7);
	color: #fff;
	padding: 12px 16px;
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
}
#aisc-header .aisc-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #134475;
	font-weight: 700;
	font-size: 16px;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
#aisc-header .aisc-title {
	font-weight: 700;
	font-size: 16px;
}
#aisc-header .aisc-subtitle {
	font-size: 12px;
	opacity: 0.95;
	font-style: italic;
}

/* === Sluitknop & Nieuwe chat-knop === */
#aisc-close {
	position: absolute;
	right: 10px;
	top: 8px;
	background: none;
	border: none;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.2s;
}
#aisc-close:hover {
	transform: scale(1.15);
}
#aisc-new-chat {
	position: absolute;
	right: 50px;
	top: 13px;
	background: none;
	border: none;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	padding: 0;
	opacity: 0.9;
	transition: transform .2s, opacity .2s;
}
#aisc-new-chat:hover {
	transform: rotate(180deg) scale(1.15);
	opacity: 1;
}

/* === Contactknoppen (onder in chat en in feedback) === */
#aisc-contact,
.aisc-feedback-buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 10px 12px;
	text-align: center;
}

#aisc-contact .aisc-contact-btn,
.aisc-feedback-buttons .aisc-contact-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 24px;
	text-decoration: none;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(0,0,0,0.12);
	color: #fff !important;
	transition: transform .2s, box-shadow .2s, opacity .2s;
	font-size: 14px;
}

#aisc-contact .aisc-contact-btn.tel,
.aisc-feedback-buttons .aisc-contact-btn.tel { background: #134475; }

#aisc-contact .aisc-contact-btn.mail,
.aisc-feedback-buttons .aisc-contact-btn.mail { background: #E9752B; }

#aisc-contact .aisc-contact-btn:hover,
.aisc-feedback-buttons .aisc-contact-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.25);
	opacity: .95;
}

.aisc-contact-btn.tel,
.aisc-contact-btn.mail {
    color: #fff !important;
}


/* === Berichtenlijst === */
#aisc-messages {
	padding: 10px;
	flex: 1;
	overflow-y: auto;
	background: #fafafa;
	scroll-behavior: smooth;
}
.message {
	margin-bottom: 10px;
	padding: 8px 12px;
	border-radius: 8px;
	max-width: 80%;
	line-height: 1.5;
	word-break: break-word;
}
.message.user {
	background: #134475;
	color: #fff;
	margin-left: auto;
}
.message.bot {
	background: #f1f1f1;
	color: #222;
	margin-right: auto;
}

/* === Typ-indicator === */
.message.typing {
	display: flex;
	align-items: center;
	background: #f1f1f1;
	color: #222 !important;
	padding: 8px 12px;
	border-radius: 8px;
	width: fit-content;
	max-width: 80%;
	margin: 6px 0;
}
.typing-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
}
.typing-text {
	font-size: 13px;
	color: #444 !important;
	font-style: italic;
}
.typing-dots {
	display: flex;
	gap: 4px;
	margin-left: 3px;
}
.typing-dots .dot {
	width: 7px;
	height: 7px;
	background: #134475;
	border-radius: 50%;
	animation: typingDots 1.2s infinite ease-in-out;
	opacity: 0.6;
}
.typing-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dots .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDots {
	0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
	40% { transform: scale(1); opacity: 1; }
}

/* === Inputveld === */
#aisc-input {
	display: flex;
	align-items: center;
	padding: 8px;
	border-top: 1px solid #ddd;
	background: #f8f8f8;
}
#aisc-user-input {
	flex: 1;
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 14px;
	outline: none;
}
#aisc-user-input:focus {
	border-color: #134475;
	box-shadow: 0 0 0 2px rgba(19,68,117,0.1);
}
#aisc-send {
	background: #134475;
	border: none;
	border-radius: 6px;
	width: 40px;
	height: 36px;
	margin-left: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background .2s;
}

#aisc-send svg {
	width: 20px;
	height: 20px;
	fill: #ffffff; /* <<< belangrijk */
	display: block;
}
#aisc-send:hover {
	background: #0f3767;
}

/* === Feedbackblok (evaluatie) === */
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}
.message.bot.feedback {
	background: #f9f9f9;
	border: 1px solid #eee;
	padding: 16px 18px;
	border-radius: 12px;
	margin-top: 14px;
	text-align: center;
	animation: fadeUp 0.4s ease-out;
}
.aisc-feedback-buttons {
	display: flex;
	gap: 14px;
	margin-top: 12px;
	flex-wrap: wrap;
	justify-content: center;
	padding: 0 6px;
}
.aisc-feedback-buttons .aisc-contact-btn {
	padding: 10px 20px;
	border-radius: 26px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	transition: all .2s;
	color: #fff !important;
}
.aisc-feedback-buttons .aisc-contact-btn.tel { background: #134475; }
.aisc-feedback-buttons .aisc-contact-btn.mail { background: #E9752B; }
.aisc-feedback-buttons .aisc-contact-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* === Klikbare links in chat === */
.aisc-link {
	color: #134475;
	font-weight: 500;
	text-decoration: underline;
}
.aisc-link:hover {
	color: #E9752B;
	text-decoration: none;
}

/* === Branding === */
#aisc-branding {
	text-align: center;
	padding: 8px 0 10px;
	font-size: 11.5px;
	color: #777;
	background: #f9f9f9;
	border-top: 1px solid #eee;
}
#aisc-branding a {
	color: #777;
	text-decoration: none;
	transition: color 0.2s;
}
#aisc-branding a:hover {
	color: #134475;
	text-decoration: underline;
}
#aisc-branding strong {
	color: #134475;
}

/* === Mobiele optimalisatie === */
@media (max-width: 768px) {
	#aisc-chat-window {
		position: fixed;
		inset: auto 8px 88px 8px;
		width: calc(100vw - 16px);
		max-height: calc(100vh - 120px);
		border-radius: 14px;
	}
	#aisc-chat-window.fullscreen {
		position: fixed;
		inset: 0;
		width: 100%;
		height: 100vh;
		border-radius: 0;
		box-shadow: none;
	}
	#aisc-header { padding: 14px; }
	#aisc-header .aisc-avatar {
		width: 40px; height: 40px; font-size: 18px;
	}
	#aisc-messages { padding: 14px; }
	.message { font-size: 15px; max-width: 92%; }
	#aisc-input { padding: 10px; }
	#aisc-user-input { font-size: 15px; padding: 10px; }
	.aisc-feedback-buttons .aisc-contact-btn {
		padding: 10px 18px;
		font-size: 14px;
		border-radius: 24px;
	}
}

/* === Scroll lock bij fullscreen === */
body.aisc-lockscroll {
	overflow: hidden;
	touch-action: none;
}

/* =====================================================
   INLINE MODAL – CHAT-STIJL (Optie C)
   ===================================================== */
.message.bot.aisc-modal {
	background: #eef3f9;
	border-left: 4px solid #134475;
	padding: 14px 16px;
	border-radius: 10px;
	margin-top: 12px;
	animation: fadeUp 0.35s ease-out;
}

.aisc-modal-buttons {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	justify-content: flex-start;
}

.aisc-modal-buttons button {
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 14px;
}

/* Primaire actie */
.aisc-modal-yes {
	background: #134475 !important;
	color: #fff !important;
}
.aisc-modal-yes:hover {
	background: #0f3767 !important;
}

/* Secundaire actie */
.aisc-modal-cancel {
	background: #E9752B !important;
	color: #fff !important;
}
.aisc-modal-cancel:hover {
	background: #c96322 !important;
}
