
/*
Box chat
*/


.boxChat {
	border: 1px solid;
	height: 700px;
	position: relative;
	padding-right: 5px;
	width: 100%;
}

.boxChatContainer {
	position: relative;
	height: 600px;
	overflow-y: auto;
}

	/* overflow stlying */
	.boxChatContainer::-webkit-scrollbar-track {
	}

	.boxChatContainer::-webkit-scrollbar {
		width: 8px;
		background-color: transparent;
	}

	.boxChatContainer::-webkit-scrollbar-thumb {
		width: 8px;
		border-radius: 10px;
		border-radius: 161px;
		background-color: #E5E3D2;
	}


.boxChatContainerButton {
	position: absolute;
	bottom: 0;
	display: flex;
	width: 100%;
}


.BotUser {
	width: 537px;
	float: right;
	position: relative;
	display: flex;
	justify-content: start;
	width: 100%;
	margin-top: 25px;
}

	.BotUser > .BotUserContent {
		display: block;
		padding: 15px 20px;
		width: 80%;
		height: auto;/*80px;*/
		background: #E5E3D2;
		border-radius: 0px 27px 27px 27px;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

		.BotUser > .BotUserContent > p {
			font: normal normal normal 18px / 24px Segoe UI;
			letter-spacing: 0px;
			color: #000000;
			margin-top: unset;
			margin-bottom: unset;
		}



.UserMessage {
	width: 537px;
	float: right;
	position: relative;
	display: flex;
	justify-content: end;
	width: 100%;
	margin-top: 25px;
}

	.UserMessage > .UserMessageContent {
		display: flex;
		flex-direction: row;
		align-items: center;
		padding: 15px 20px;
		gap: 11px;
		width: 313px;
		height: auto;/*80px;*/
		background: #E5E3D2;
		border-radius: 27px 27px 0px 27px;
		flex: none;
		order: 0;
		flex-grow: 0;
	}

		.UserMessage > .UserMessageContent > p {
			text-align: right;
			font: normal normal normal 18px / 24px Segoe UI;
			letter-spacing: 0px;
			color: #000000;
			padding-top: 10px;
			padding-bottom: 10px;
			padding-inline: 20px;
			margin-top: unset;
			margin-bottom: unset;
		}


.boxChatContainerButtonWrapper {
	width: 100%;
	display: flex;
}

	.boxChatContainerButtonWrapper > .row {
		width: 100%;
	}

	.boxChatContainerButtonWrapper .boxInputText textarea {
		resize: none;
		width: 100%;
		border: none;
		outline: none;
		border: 1px solid #D9E1E2;
		border-radius: 11px;
	}

	.boxChatContainerButtonWrapper .boxButton {
		display: flex;
		align-items: center;
		justify-content: center;
	}

#recordButton {
	transition: background-color 0.3s, box-shadow 0.3s;
	border: none; 
	border-radius: 50%; 
	padding: 10px; 
	font-size: 20px; 
}

	
#recordButton.recording {
		background-color: #ff0000; 
		box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); 
	}

	#recordButton.recording i {
		color: #fff;
	}



/* Stili per il container dei file selezionati */
.selected-files-container {
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 0.375rem;
	padding: 1rem;
	margin-top: 1rem;
}

.selected-files-list {
	max-height: 300px;
	overflow-y: auto;
}

.selected-file-item {
	background-color: white;
	transition: all 0.2s ease;
}

	.selected-file-item:hover {
		background-color: #e9ecef;
	}

.file-name {
	color: #495057;
	font-size: 0.9rem;
}

/* Stili per i popup */
.upload-success-popup,
.upload-error-popup {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	animation: fadeIn 0.3s ease;
}

.popup-content {
	background: white;
	border-radius: 0.5rem;
	padding: 1.5rem;
	max-width: 500px;
	width: 90%;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	animation: slideIn 0.3s ease;
}

	.popup-content.success {
		border-left: 4px solid #28a745;
	}

	.popup-content.error {
		border-left: 4px solid #dc3545;
	}

.popup-header {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
	gap: 0.5rem;
}

.popup-icon {
	font-size: 1.5rem;
}

.popup-header h5 {
	margin: 0;
	color: #495057;
}

.popup-body {
	margin-bottom: 1rem;
}

	.popup-body p {
		margin-bottom: 0.5rem;
	}

	.popup-body code {
		background-color: #f8f9fa;
		padding: 0.2rem 0.4rem;
		border-radius: 0.25rem;
		font-size: 0.875rem;
		word-break: break-all;
	}

.close-popup {
	float: right;
}

/* Animazioni */
@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive */
@media (max-width: 768px) {
	.popup-content {
		width: 95%;
		padding: 1rem;
	}

	.selected-file-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

		.selected-file-item .remove-file-btn {
			align-self: flex-end;
		}
}