﻿.chat-container {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 500px;
	overflow-y: scroll;
	scrollbar-color: whitesmoke white;
	scrollbar-width: thin;
}

.user-message {
	align-self: flex-end;
	padding: 8px 12px;
	border-radius: 12px 0px 12px 12px;
	max-width: 60%;
	background-color: aliceblue;
	margin-right: 7px;
	word-break: break-word;
}

.ai-message {
	align-self: flex-start;
	padding: 8px 12px;
	border-radius: 0px 12px 12px 12px;
	max-width: 60%;
	background-color: mistyrose;
}

.chatbot-info{
	display:flex;
	font-size:14px;
	margin-bottom: -15px;
}

.chatbot-info p {
	margin-top:5px;
}

.send-button {
	position: absolute;
	right: 6px;
	top:17px;
	height: 30px;
	width: 30px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	border: none;
	background-color: brown;
	color: white;
	cursor: pointer;
	transition: border-radius 150ms ease, transform 150ms ease, background-color 150ms ease;
	border-radius: 50%;
}

.send-button.waiting{
	border-radius:6px;
	background-color: brown;
	transform: scale(1.02);
	width:25px;
	height: 25px;
	animation: spinning 1s infinite;
	margin-top: 3px;
}

.send-icon {
	font-size: 14px;
	line-height: 1;
}

.input-container{
	position:relative;
	width:100%;
	margin-top:10px;
	display: flex;
	align-items:center;
}

.input {
	width: 100%;
	height: 45px;
	margin-top: 10px;
	font-size: 16px;
	padding: 3px 48px 3px 8px;
	border-radius: 6px;
	border: solid 1px black;
	background-color: white;
	outline: none;
	box-sizing: border-box;
}

	.input:focus {
		border: 2px solid brown;
	}

	.thinking-bubble {
		background-color: mistyrose;
		animation: thinking 1s infinite;
		max-width: 10%;
		max-height: 8%;
	}

	.bubble1 {
		animation: thinking 0.5s infinite;
	}

	.bubble2 {
		animation: thinking 1s infinite;
	}

	.bubble3 {
		animation: thinking 2s infinite;
	}

	.start-message {
		display: flex;
		align-self: center;
		justify-content: center;
		color: darkgray;
	}

	@keyframes thinking {
		0% {
			opacity: 0.2;
		}

		50% {
			opacity: 1;
		}

		100% {
			opacity: 0.2;
		}
	}

	@keyframes spinning{
		0%{
			transform: rotate(0deg);
		}

		25%{
			transform: rotate(90deg);
		}

		50% {
			transform: rotate(180deg);
		}

		75% {
			transform: rotate(270deg)
		}
	}

.app-layout {
	display: flex;
	min-height: 100vh;
	box-sizing: border-box;
}


.sidebar-main {
	position: sticky;
	top: 0;
	align-self: flex-start;
	width: 250px;
	min-width: 250px;
	height: 100vh;
	background-color: dodgerblue;
	border-right: 1px solid #e0e0e0;
	padding: 12px;
	box-sizing: border-box;
	transition: width 180ms ease, transform 180ms ease;
	overflow: hidden;
}

.sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

	.sidebar-header h3 {
		font-size: 16px;
		margin: 0;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		color:white;
	}

.sidebar-nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 6px;
	width:250px;
}

.nav-link {
	display: block;
	padding: 8px 10px;
	color: white !important;
	text-decoration: none;
	border-radius: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

	.nav-link:hover {
		background-color: steelblue;
		color: White;
	}

	.nav-link.active {
		background: white;
		color: black !important;
	}

.main-content {
	flex: 1;
	padding: 16px;
	box-sizing: border-box;
}

@media (max-width: 768px) {
	.sidebar {
		position: fixed;
		left: 0;
		top: 0;
		bottom: 0;
		z-index: 1000;
		transform: translateX(0);
		height: 100vh;
	}

	.sidebar.collapsed {
		transform: translateX(-100%);
	}

	.main-content {
		padding-top: 16px;
	}
}

.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 1050;
}

.modal-dialog-custom {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	z-index: 1060;
}

.modal-content-custom {
	background: #fff;
	color: #212529;
	border-radius: .5rem;
	box-shadow: 0 10px 30px rgba(0,0,0,.25);
	border: 1px solid rgba(0,0,0,.1);
	max-width: 520px;
	width: 100%;
	overflow: hidden;
}

.modal-header-custom,
.modal-footer-custom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	padding: .75rem 1rem;
	border-bottom: 1px solid #e9ecef;
}

.modal-footer-custom {
	border-top: 1px solid #e9ecef;
	border-bottom: none;
	justify-content: flex-end;
}

.modal-body-custom {
	padding: 1rem;
}

.close-btn {
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	opacity: .6;
}

.close-btn:hover {
	opacity: .9;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 720px;
}

.form-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.custom-input {
	padding: 0.5rem 0.75rem !important;
	border: 1px solid #ced4da !important;
	border-radius: 0.375rem !important;
	box-shadow: none !important;
	width: 100% !important;
	box-sizing: border-box !important;
	font-size: 1rem !important;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, transform 0.05s !important;
}

.custom-input:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 0.15rem rgba(108,117,125,0.12);
    transform: translateY(-0.5px);
}

.textarea-input {
    min-height: 140px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (max-width: 420px) {
    .form-actions { flex-direction: column; }
}

.spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #3498db;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 10px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}
