
.bi {
    vertical-align: -.125em;
    fill: currentColor
}

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8
}

.bd-mode-toggle {
    z-index: 1500
}

.bd-mode-toggle .bi {
    width: 1em;
    height: 1em
}

.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important
}

		.messages {
			flex: 1;
			overflow-y: auto;
			min-height: 200px;
		}

		.message {
			margin-bottom: 16px;
			display: flex;
			animation: fadeIn 0.3s ease;
		}

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

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

		.bubble {
			max-width: 70%;
			padding: 12px 18px;
			border-radius: 20px;
			word-wrap: break-word;
			line-height: 1.5;
			font-size: 14px;
		}

		.user .bubble {
			background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
			color: white;
			border-bottom-right-radius: 4px;
		}

		.bot .bubble {
			background: #f1f3f4;
			color: #333;
			border-bottom-left-radius: 4px;
		}

		.typing-indicator {
			display: inline-block;
			padding: 12px 18px;
			background: #f1f3f4;
			border-radius: 20px;
			border-bottom-left-radius: 4px;
		}

		.typing-indicator span {
			display: inline-block;
			width: 8px;
			height: 8px;
			border-radius: 50%;
			background: #999;
			margin: 0 2px;
			animation: typing 1.4s infinite;
		}

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

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

		@keyframes typing {

			0%,
			60%,
			100% {
				transform: translateY(0);
				opacity: 0.4;
			}

			30% {
				transform: translateY(-10px);
				opacity: 1;
			}
		}

		.input-area button:disabled {
			opacity: 0.6;
			cursor: not-allowed;
			transform: none;
		}

		.loading-overlay {
			position: fixed;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			background: rgba(0, 0, 0, 0.7);
			display: flex;
			align-items: center;
			justify-content: center;
			z-index: 1000;
		}

		.loading-spinner {
			background: white;
			padding: 30px 40px;
			border-radius: 16px;
			text-align: center;
		}

		.loading-spinner .spinner {
			width: 50px;
			height: 50px;
			border: 4px solid #f3f3f3;
			border-top: 4px solid #667eea;
			border-radius: 50%;
			animation: spin 1s linear infinite;
			margin: 0 auto 15px;
		}

		@keyframes spin {
			0% {
				transform: rotate(0deg);
			}

			100% {
				transform: rotate(360deg);
			}
		}

		.error-message {
			background: #f44336;
			color: white;
			padding: 12px 20px;
			border-radius: 8px;
			margin: 10px 30px;
			text-align: center;
		}

		.empty-state {
			text-align: center;
			padding: 40px;
			color: #999;
		}

		.messages::-webkit-scrollbar {
			width: 8px;
		}

		.messages::-webkit-scrollbar-track {
			background: #f1f1f1;
		}

		.messages::-webkit-scrollbar-thumb {
			background: #888;
			border-radius: 4px;
		}

		.messages::-webkit-scrollbar-thumb:hover {
			background: #555;
		}

		@media (max-width: 768px) {
			body {
				padding: 10px;
			}

			.context-section,
			.messages,
			.input-area,
			.summary-section {
				padding-left: 16px;
				padding-right: 16px;
			}

			.bubble {
				max-width: 85%;
			}

			.header h1 {
				font-size: 20px;
			}
		}