.neurotko-chat-container {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 14px;
	color: #e0e0e0;
	margin: 0;
	padding: 0;
	position: fixed;
	top: 0;
	bottom: 0;
	right: 20px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-end;
	padding-bottom: 20px;
	z-index: 99999;
	pointer-events: none;
}

.neurotko-chat-button {
	background: none;
	border: none;
	padding: 0;
	width: 72px;
	height: 72px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
	pointer-events: auto;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.neurotko-chat-button img {
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.neurotko-chat-button:hover {
	transform: scale(1.1);
}

.neurotko-chat-button:active {
	transform: scale(0.95);
}

.neurotko-hidden {
	display: none !important;
}

.neurotko-chat-box {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 500px;
	height: 600px;
	max-height: calc(100vh - 40px);
	pointer-events: auto;
	background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(45, 45, 80, 0.95) 100%);
	border: 1px solid rgba(100, 120, 255, 0.3);
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 1px rgba(100, 120, 255, 0.2) inset;
	backdrop-filter: blur(10px);
	overflow: hidden;
	animation: slideUp 0.3s ease-out;
}

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

.neurotko-chat-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px;
	background: linear-gradient(90deg, rgba(100, 120, 255, 0.15) 0%, rgba(200, 120, 255, 0.15) 100%);
	border-bottom: 1px solid rgba(100, 120, 255, 0.2);
}

.neurotko-header-identity {
	display: flex;
	align-items: center;
	gap: 10px;
}

.neurotko-header-avatar {
	width: 36px;
	height: 36px;
	object-fit: contain;
	flex-shrink: 0;
}

.neurotko-chat-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #e0e0e0;
}

.neurotko-close-btn {
	background: transparent;
	border: none;
	color: #a0a0c0;
	font-size: 28px;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.neurotko-close-btn:hover {
	color: #e0e0e0;
	background: rgba(100, 120, 255, 0.2);
}

.neurotko-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: linear-gradient(180deg, rgba(26, 26, 46, 0) 0%, rgba(26, 26, 46, 0.5) 100%);
}

.neurotko-message {
	display: flex;
	animation: slideIn 0.3s ease-out;
}

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

.neurotko-message.user {
	justify-content: flex-end;
}

.neurotko-message.bot {
	justify-content: flex-start;
}

.neurotko-message-content {
	max-width: 80%;
	padding: 12px 14px;
	border-radius: 12px;
	line-height: 1.4;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.neurotko-message.user .neurotko-message-content {
	background: linear-gradient(135deg, rgba(100, 120, 255, 0.8) 0%, rgba(150, 100, 255, 0.8) 100%);
	color: #ffffff;
	border-bottom-right-radius: 4px;
}

.neurotko-message.bot .neurotko-message-content {
	background: rgba(45, 45, 80, 0.6);
	border: 1px solid rgba(100, 120, 255, 0.2);
	border-bottom-left-radius: 4px;
	color: #e0e0e0;
}

.neurotko-message-content b {
	color: #64d5ff;
	font-weight: 600;
}

.neurotko-message-content p {
	margin: 8px 0;
	line-height: 1.5;
}

.neurotko-message-content p:first-child {
	margin-top: 0;
}

.neurotko-message-content p:last-child {
	margin-bottom: 0;
}

.neurotko-message-content ul {
	margin: 8px 0;
	padding-left: 20px;
	line-height: 1.6;
}

.neurotko-message-content li {
	margin: 4px 0;
	color: #e0e0e0;
}

.neurotko-message.bot .neurotko-message-content a {
	color: #64d5ff;
	text-decoration: underline;
	transition: color 0.2s;
}

.neurotko-message.bot .neurotko-message-content a:hover {
	color: #ffffff;
}

.neurotko-typing {
	display: flex;
	gap: 4px;
	padding: 4px 0;
}

.neurotko-typing span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(100, 120, 255, 0.6);
	animation: typing 1.4s infinite;
}

.neurotko-typing span:nth-child(2) {
	animation-delay: 0.2s;
}

.neurotko-typing span:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes typing {
	0%, 60%, 100% {
		opacity: 0.3;
		transform: translateY(0);
	}
	30% {
		opacity: 1;
		transform: translateY(-10px);
	}
}

.neurotko-chat-input-area {
	display: flex;
	gap: 8px;
	padding: 12px;
	background: linear-gradient(90deg, rgba(26, 26, 46, 0.8) 0%, rgba(45, 45, 80, 0.8) 100%);
	border-top: 1px solid rgba(100, 120, 255, 0.2);
}

.neurotko-input {
	flex: 1;
	background: rgba(30, 30, 50, 0.8);
	border: 1px solid rgba(100, 120, 255, 0.3);
	color: #ffffff !important;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.2s ease;
	outline: none;
}

.neurotko-input::placeholder {
	color: rgba(160, 160, 192, 0.6);
}

.neurotko-input:focus {
	border-color: rgba(100, 120, 255, 0.8);
	background: rgba(30, 30, 50, 1);
	box-shadow: 0 0 0 2px rgba(100, 120, 255, 0.2);
}

.neurotko-input:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.neurotko-send-btn {
	background: linear-gradient(135deg, rgba(100, 120, 255, 0.8) 0%, rgba(150, 100, 255, 0.8) 100%);
	border: none;
	color: #ffffff;
	padding: 10px 12px;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	font-size: 0;
}

.neurotko-send-btn svg {
	width: 18px;
	height: 18px;
}

.neurotko-send-btn:hover {
	background: linear-gradient(135deg, rgba(120, 140, 255, 1) 0%, rgba(170, 120, 255, 1) 100%);
	transform: translateY(-2px);
}

.neurotko-send-btn:active {
	transform: translateY(0);
}

.neurotko-send-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

@media (max-width: 600px) {
	.neurotko-chat-container {
		top: auto;
		bottom: 20px;
		display: block;
	}

	.neurotko-chat-box {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		height: 100dvh;
		max-width: 100%;
		max-height: 100%;
		border-radius: 0;
	}

	.neurotko-message-content {
		max-width: 85%;
		padding: 10px 12px;
		font-size: 13px;
	}

	.neurotko-chat-header h3 {
		font-size: 15px;
	}
}
