:root{

	--body-font-family: 'Inter';
	--body-font-weight: 300;

	--title-font-family:  'Inter';
	--title-font-weight: 300;
	
	
	/* VSN Palette */
	/* Generali */
	--main-text-color: #0d0d0d;
	--bg-primary: #fff;
	--bg-secondary: #EFEFEF;
	--bg-tertiary: #dadada;
	--bg-first-btn: #FF9900;
	--color-first-btn: #0d0d0d;
	--color-input: #0d0d0d;
	--border-color: rgba(13, 13, 13, 0.2);
	--border-radius: 20px;
	
	/* Sidebar */
	--bg-sidebar: #F9F9F9;
	
	/* Pulsanti suggerimenti rapidi */
	--bg-suggestion-btn: #fff;
	--bg-suggestion-btn-hover: #fff;
	--color-suggestion-btn: #0d0d0d;
	--color-suggestion-btn-hover: #0d0d0d;
	--border-suggestion-btn: rgba(13, 13, 13, 0.2);
	--border-suggestion-btn-hover: #FF9900;
	
	/* Box dove si inserisce il prompt */
	--bg-promptinput: #fff;
	--color-prompitnput: #e5e7eb;
	--color-placeholder-promptinput: #8c8c8c;
	--border-prompitnput: #dfe1e4;
	--border-radius-promptinput: 20px;

	--bg-audio-btn: #fff;
	--color-audio-btn: #0d0d0d;
	--border-audio-btn: #e5e7eb;
	--bg-audio-btn-hover: #e5e7eb;
	--color-audio-btn-hover: #0d0d0d;
	--border-audio-btn-hover: #e5e7eb;

	--bg-send-btn: #FF9900;
	--color-send-btn: #fff;
	--border-send-btn: #FF9900;
	--bg-send-btn-hover: #f39201;
	--color-send-btn-hover: #fff;
	--border-send-btn-hover: #f39201;

	--bg-attach-btn: #fff;
	--color-attach-btn: #8c8c8c;
	--border-attach-btn: #e5e7eb;
	--bg-attach-btn-hover: #e5e7eb;
	--color-attach-btn-hover: #0d0d0d;
	--border-attach-btn-hover: #e5e7eb;
	
	/* Avatar profilo */
	--profile-avatar-color: #FF9900;
	
	/* Filtri */
	--select-focus: #FF9900;
	--select-background: #fff;
	--select-text: #0d0d0d;
	--select-border-color: #e5e7eb;
	--select-border-radius: 20px;
	--select-font-size: 14px;
	--select-shadow: 0 10px 20px rgba(0,0,0,.08);
	--option-hover: #f3f4f6;
	--option-selected: #eef2ff;





	/* ChatGPT Palette */
	/*
	--main-text-color: #fff;
	--bg-primary: #212121;
	--bg-secondary: #2B2B2B;
	--bg-tertiary: #484848;
	--bg-first-btn: #FF9900;
	--color-first-btn: #0d0d0d;
	--color-input: #fff;
	--border-color: #424242;
	--border-radius: 20px;
	
	--bg-sidebar: #171717;
	
	--bg-suggestion-btn: #2B2B2B;
	--bg-suggestion-btn-hover: #484848;
	--color-suggestion-btn: #fff;
	--color-suggestion-btn-hover: #fff;
	--border-suggestion-btn: rgba(13, 13, 13, 0.2);
	--border-suggestion-btn-hover: #484848;
	
	--bg-promptinput: #303030;
	--color-prompitnput: #e5e7eb;
	--color-placeholder-promptinput: #8c8c8c;
	--border-prompitnput: #dfe1e4;
	--border-radius-promptinput: 20px;

	--bg-audio-btn: #fff;
	--color-audio-btn: #0d0d0d;
	--border-audio-btn: #484848;
	--bg-audio-btn-hover: #e5e7eb;
	--color-audio-btn-hover: #0d0d0d;
	--border-audio-btn-hover: #e5e7eb;

	--bg-send-btn: #FF9900;
	--color-send-btn: #fff;
	--border-send-btn: #FF9900;
	--bg-send-btn-hover: #f39201;
	--color-send-btn-hover: #fff;
	--border-send-btn-hover: #f39201;

	--bg-attach-btn: #fff;
	--color-attach-btn: #8c8c8c;
	--border-attach-btn: #e5e7eb;
	--bg-attach-btn-hover: #e5e7eb;
	--color-attach-btn-hover: #0d0d0d;
	--border-attach-btn-hover: #e5e7eb;
	
	--profile-avatar-color: #0BA37F;

	--select-focus: #3b82f6;
	--select-background: #fff;
	--select-text: #111827;
	--select-border-color: #e5e7eb;
	--select-border-radius: 20px;
	--select-font-size: 14px;
	--select-shadow: 0 10px 20px rgba(0,0,0,.08);
	--option-hover: #f3f4f6;
	--option-selected: #eef2ff;
	*/
}
body{
	font-family: var(--body-font-family);
	font-weight: var(--body-font-weight);
	color: var(--main-text-color);
	height: calc(100dvh - 10px);
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6{
	font-weight: var(--title-font-weight);
}
.main-border-radius{
	border-radius: var(--border-radius);
}
.c-bg-primary{
	background-color: var(--bg-primary);
}
.c-bg-secondary{
	background-color: var(--bg-secondary);
}
.btn-2{
	background-color: var(--bg-secondary);
	color: var(--main-text-color);
}
.btn-2.bordered{
	border: 1px solid var(--border-color);
}
.focus-none{
	outline: 0;
	box-shadow: 0 0 0 0;
}
#logo-collapsed,
.logo{
	height: 32px;
	max-width: 125px;
}








/*************************
TOPBAR
*************************/

#sidebar.sidebar {
	width: 260px;
	background-color: var(--bg-sidebar, #1e1e1e);
	border-right: 1px solid var(--bg-secondary);
	transition: width 0.3s ease;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}
#sidebar.sidebar:not(.collapsed){
	min-width: 260px;
}
#sidebar.sidebar.collapsed {
	width: 60px;
}
#action-list-box a{
	color: var(--main-text-color);
}
#sidebar.sidebar.collapsed .sidebar-header .logo,
#sidebar.sidebar.collapsed #action-list-box .nav-link span,
#sidebar.sidebar.collapsed #conversation-list-box,
#sidebar.sidebar.collapsed #suggestion-list-box,
#sidebar.sidebar.collapsed .sidebar-toggleable{
	display: none !important;
}
#sidebar.sidebar.collapsed #action-list-box .nav-link{
	text-align: center;
}
#sidebar.sidebar.collapsed #action-list-box .nav-link i{
	margin-right: 0 !important;
	text-align: center;
}
.sidebar-header {
	height: 56px;
	background-color: var(--sidebar-bg);
	border-bottom: 1px solid var(--bg-secondary)
}
.toggleSidebar{
	color: var(--main-text-color);
}
#sidebar ul.nav .nav-link{
	font-size: 14.5px;
}
#conversation-list .list-group-item{
	font-size: 14.5px;
	color: var(--main-text-color);
	background-color: var(--bg-sidebar);
	border: 0;
	cursor: pointer;
}
#conversation-list .list-group-item:hover .sidebar-dots,
#conversation-list .list-group-item.active .sidebar-dots,
#conversation-list .list-group-item.active,
#conversation-list .list-group-item:hover,
#sidebar ul.nav .nav-link:hover{
	background-color: var(--bg-secondary);
	color: var(--main-text-color);
}
#conversation-list .list-group-item.open{
	background-color: var(--bg-secondary);
}
.topbar {
	width: 100%;
	height: 56px;
	background-color: var(--bg-primary);
	z-index: 999;
	display: flex;
	margin-top: 0;
	margin-bottom: auto;
}
.topbar.short{
	margin-bottom: 0;
}
.topbar-model {
	font-size: 1rem;
}
.topbar-dots {
	font-size: 1.5rem;
	cursor: pointer;
	padding: 0 5px;
}
.topbar-avatar {
	cursor: pointer;
	width: 40px;
	height: 40px;
}
.avatar-circle {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: var(--profile-avatar-color);
	color: white;
	font-weight: bold;
	font-size: 0.8rem;
	display: flex;
	align-items: center;
	justify-content: center;
}
.avatar-dropdown {
	position: absolute;
	top: 48px;
	right: 0;
	background-color: var(--bg-primary);
	border: 1px solid var(--border-color);
	border-radius: 14px;
	padding: 0.75rem 0;
	min-width: 300px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	z-index: 999;
}
.dropdown-item-custom {
	padding: 10px 16px;
	font-size: 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	text-align: start;
}

.dropdown-item-custom:hover {
	background-color: var(--bg-secondary)
}

.dropdown-divider {
	margin: 0.5rem 0;
	border-top: 1px solid var(--border-color);
}

@media (max-width: 991.98px){
	.toggleSidebar{
		width: 32px;
		height: 32px;
	}
}





/*************************
SIDEBAR
*************************/

.sidebar-dots {
	cursor: pointer;
	font-size: 1.2rem;
	padding: 0 5px;
	color: var(--bg-sidebar);
}
.sidebar-dropdown-hover {
	position: relative;
}
.sidebar-dropdown-menu {
	display: none;
	position: absolute;
	right: 0;
	top: 25px;
	background-color: var(--bg-primary);
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	padding: 8px 0;
	z-index: 10;
	width: 200px;
}
.sidebar-dropdown-menu .dropdown-item {
	padding: 10px 16px;
	font-size: 14px;
	cursor: pointer;
}

.sidebar-dropdown-menu .dropdown-item:hover {
	background-color: var(--bg-secondary);
	color: var(--main-text-color);
}

.sidebar-dropdown-menu .text-danger {
	color: #ff4d4f;
}


















.plus-label {
	position: absolute;
	bottom: -4px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 10px;
	background-color: white;
	color: black;
	padding: 0 6px;
	border-radius: 10px;
	font-weight: bold;
}
.main-content {
	width: 100%;
	/* min-height: calc(100vh - 56px);
	padding: 2rem; */
	padding: 0px 2rem 0rem 2rem;
	background-color: var(--bg-primary);
}
.main-content.chat-started #prompt-subtitle,
.main-content.chat-started .prompt-title,
.main-content.chat-started .chat-suggestions{
	display: none;
}
.suggestion-btn{
	color: var(--color-suggestion-btn);
	background-color: var(--bg-suggestion-btn);
	border: 1px solid var(--border-suggestion-btn);
	border-radius: var(--border-radius);
}
#sidebar .suggestion-btn{
	border-radius: 5px;
}
.suggestion-btn:hover{
	background-color: var(--bg-suggestion-btn-hover);
	color: var(--color-suggestion-btn-hover);
	border: 1px solid var(--border-suggestion-btn-hover);
}
#countryDropdownBtn:hover{
	background-color: var(--bg-primary);
	color: var(--main-text-color);
}
.btn-audio,
.prompt-buttons button.btn-icon{
	font-size: 14.5px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.btn-audio{
	background-color: var(--bg-audio-btn);
	color: var(--color-audio-btn);
	border-color: var(--border-audio-btn);
}
.btn-audio:hover{
	background-color: var(--bg-audio-btn-hover);
	color: var(--color-audio-btn-hover);
	border-color: var(--border-audio-btn-hover);
}
.btn-send{
	background-color: var(--bg-send-btn);
	color: var(--color-send-btn);
	border-color: var(--border-send-btn);
}
.btn-send:hover{
	background-color: var(--bg-send-btn-hover);
	color: var(--color-send-btn-hover);
	border-color: var(--border-send-btn-hover);
}
.btn-attach{
	background-color: var(--bg-attach-btn) !important;
	color: var(--color-attach-btn) !important;
	border-color: var(--border-attach-btn) !important;
}
.btn-attach:hover{
	background-color: var(--bg-attach-btn-hover) !important;
	color: var(--color-attach-btn-hover) !important;
	border-color: var(--border-attach-btn-hover) !important;
}
.country-dropdown-menu,
.country-option{
	background-color: var(--bg-primary);
	color: var(--main-text-color);
}
.country-dropdown-menu {
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 0.5rem;
	column-count: 2;
	column-gap: 1rem;
}

.country-option {
	cursor: pointer;
	padding: 6px 12px;
	break-inside: avoid;
	font-size: 14px;
}

.country-option:hover {
	background-color: var(--bg-secondary)
}

.prompt-box {
	background-color: var(--bg-promptinput);
	color: var(--color-prompitnput, --color-input);
	border: 1px solid var(--border-prompitnput, --border-color);
	border-radius: var(--border-radius-promptinput, --border-radius);
	
	max-width: 800px;
	width: 100%;
	flex-wrap: wrap;
}

/* Input */
.prompt-input{
	color: var(--color-input);
	background-color: transparent;
	min-width: 200px;
}
.prompt-input:focus{
	color: var(--color-input);
}

.prompt-input::placeholder {
	color: var(--color-placeholder-promptinput);
}
.prompt-input:focus{
	box-shadow: 0 0 0 0;
	outline: 0;
}

/* Bottoni azione */

/*
.btn-icon {
background-color: #2b2b2b;
border: 1px solid #444;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: var(--main-text-color);
}

.btn-icon.filled {
background-color: #fff;
color: #000;
}*/

#searchModal .modal-dialog{
	width: 650px;
	min-width: 650px;
}
#deleteChatModal .modal-content,
#searchModal .modal-content{
	border-radius: var(--border-radius);
}
#deleteChatModal .modal-content,
#searchModal .modal-header input,
#searchModal .modal-content{
	background-color: var(--bg-secondary);
}
#searchModal .modal-header input:focus{
	outline: 0;
	box-shadow: 0 0 0 0;
}
#searchModal .modal-header .btn-close{
	color: #fff;
}
#searchModal .modal-content #modal-header input{
	
}
#searchModal #search-chat-input:focus,
#searchModal #search-chat-input{
	color: var(--color-input);
}
#search-conversation-list li{
	font-size: 15px;
}
#search-conversation-list li:hover{
	background-color: var(--bg-tertiary);
}
#search-conversation-list li a{
	color: var(--main-text-color);
}

@media (max-width: 991.98px){
	.topbar {
		grid-template-columns: 33% 33% 33%;
	}
	main.chat-started #bySim-simulator-box{
		padding-top: 60px;
	}
	#sidebar.sidebar.collapsed,
	#sidebar.sidebar:not(.collapsed){
		width: 300px;
		min-width: 300px;
		position: absolute;
		top: 0;
		left: 0;
		transform: translateX(-300px);
		z-index: 9999;
		transition: all .3s;
		border-right: 1px solid var(--bg-secondary);
	}
	#sidebar.sidebar.open{
		transform: translateX(0px);
	}
	.sidebar-overlay{
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.7);
		z-index: 9991;
		display: none;
	}
	.sidebar-overlay.extra{
		z-index: 99998;
	}
	#searchModal{
		z-index: 99999;
	}
	#searchModal .modal-dialog {
		width: 650px;
		min-width: unset;
		max-width: 97%;
	}
	.main-content {
		padding: 0px 20px 1rem 20px;
	}
	.btn-show-filters{
		display: block;
	}
	.avatar-dropdown {
		min-width: 230px;
	}
}
@media (max-width: 767.98px){	
	#sidebar.sidebar.collapsed,
	#sidebar.sidebar:not(.collapsed){
		width: 271px;
		min-width: 271px;
		transform: translateX(-271px);
	}
	#sidebar.sidebar.open{
		transform: translateX(0px);
	}
	#bySim-simulator-box,
	#welcome-box,
	.prompt-box{
		width: calc(100% - 30px);
	}
	.main-content {
		padding: 0px 0px 0px 0px;
	}
	
}
@media (max-width: 575.98px){
	
}












#bySim-simulator-box{
	max-width: 800px;
	width: 100%;
	margin: 0 auto;
}
#bySim-simulator-box.full-height{
	/* padding-top: 10px;
	flex-grow: 1 !important; */
}
/*
#bySim-simulator-box.full-height #bySim-simulator-canvas{
	height: calc(100dvh - 300px);
	max-height: unset;
}
	*/
#bySim-simulator-input-container{
	transition: all 0.7s;
	margin: 0 auto;
	position: absolute;
	right: 0;
	left: 0;
	bottom: 50%;
	transform: translateY(100%);
}
#section-simulator.started #bySim-simulator-input-container{
	bottom: 5%;
	transform: unset;
}
#bySim-simulator-input-box{
	width: 600px;
	max-width: 100%;
	margin: 0 auto;
}
#bySim-simulator-textarea-box,
#bySim-simulator-btn-box{
	width: 100%;
}
#bySim-simulator-textarea-box{
	position: relative;
	min-height: 80px;
}
/*
#bySim-simulator-textarea-box textarea{
background-color: var(--bg-textarea);
border: 2px solid #352D3A;
border-radius: 55px;
padding: 25px 100px 25px 25px;
position: absolute;
bottom: 0;
width: 100%;
color: var(--main-text-color);
white-space: pre-wrap;
overflow: hidden;
resize: none;
font-size: 18px;
}
*/
#section-simulator.started #bySim-simulator-textarea-box textarea{
	padding: 16px 50px 14px 25px;
	font-size: 16px;
}
#bySim-simulator-textarea-box textarea:hover,
#bySim-simulator-textarea-box textarea:focus{
	border-color: #2b242f;
	outline: 0;
	box-shadow: 0 0 0 0;
}
#bySim-simulator-textarea-box textarea::placeholder{
	color: #6C5C7B;
	font-weight: 500;
}
#bySim-simulator-btn-box{
	display: flex;
	padding-left: 25px;
	margin-top: 5px;
}
#bySim-simulator-input-container button{
	background-color: transparent;
	border: 0;
	color: #6C5C7B;
}
#bySim-simulator-input-container button{
	font-size: 18px;
}
#bySim-simulator-input-container .btn-send,
#bySim-simulator-input-container .btn-audio{
	position: absolute;
	bottom: 25px;
	background-color: #fff;
	border-radius: 50%;
	width: 33px;
	height: 33px;
	padding: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
}
#section-simulator.started #bySim-simulator-input-container .btn-send,
#section-simulator.started #bySim-simulator-input-container .btn-audio{
	bottom: 14px;
	width: 30px;
	height: 30px;
}
#bySim-simulator-input-container .btn-send{
	right: 60px;
}
#bySim-simulator-input-container .btn-audio{
	right: 20px;
}
#bySim-simulator-canvas{
	display: none;
	opacity: 0;
	/* max-height: calc(100vh - 350px); */
	overflow: scroll;
	padding-left: 25px;
	padding-right: 25px;
	padding-bottom: 50px;
}
#bySim-simulator-canvas.show{
	opacity: 1;
	display: block;
	transition: all .3s;
}
.bySim-simulator-message-box{
	line-height: 28px;
}
.bySim-simulator-message-box+.bySim-simulator-message-box{
	margin-top: 35px;
}
.bySim-simulator-message-box.user{
	width: max-content;
	max-width: 75%;
	margin-left: auto;
	margin-right: 0;
	background-color: var(--bg-secondary);
	padding: 8px 20px;
	border-radius: var(--border-radius);
	text-align: left;
}
#bySim-simulator-canvas>div.bySim-simulator-message-box.user{
	margin-right: -200px;
}
#bySim-simulator-canvas.show>div.bySim-simulator-message-box.user{
	animation-name: firstMessage;
	animation-timing-function: ease-in;
	animation-fill-mode: forwards;
	animation-duration: 0.3s;
}
@keyframes firstMessage{
	from {margin-right: -200px;}
	to {margin-right: 0;}
}
.bySim-simulator-message-box.bot{
	display: grid;
	grid-template-columns: 60px calc(100% - 60px);
}
.bySim-simulator-message-box.bot .bot-answer{
	position: relative;
	padding-top: 3px;
	text-align: start;
}
.bySim-simulator-message-box.bot .bot-answer.waiting>div{
	opacity: 0;
}
.bySim-simulator-message-box.bot .bot-answer.waiting::before{
	content:'';
	display: block;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background-color: #fff;
	position: absolute;
	left: 0;
	top: 10px;
	animation-name: botAnswerLoading;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	animation-direction: alternate;
	animation-duration: 0.8s;
}
@keyframes botAnswerLoading{
	from {opacity: 0.8;}
	to {opacity: 0.45;}
}
.bySim-simulator-avatar-box>div{
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #fff;
	border-radius: 50%;
}
.bySim-simulator-avatar-box>div img{
	width: 22px;
	height: 22px;
	object-fit: contain;
}
@media (max-width: 991.98px){
	#bySim-simulator-canvas{
		padding-left: 20px;
		padding-right: 20px;
	}
}
@media (max-width: 767.98px){
	#bySim-simulator-canvas{
		padding-left: 15px;
		padding-right: 15px;
		padding-bottom: 15px;
		/* padding-bottom: 40px; */
	}
	.bySim-simulator-message-box.bot {
		grid-template-columns: 45px calc(100% - 45px);
	}
}


/* Filtro Tipo Notizie */
.tipo-dropdown-menu {
	background: var(--bg-primary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	max-height: 200px;
	overflow-y: auto;
	min-width: 200px;
}

.tipo-dropdown-menu .dropdown-item {
	padding: 8px 12px;
	cursor: pointer;
	transition: background-color 0.2s;
	border-bottom: 1px solid var(--bg-secondary);
	font-size: 14px;
	color: var(--main-text-color);
}

.tipo-dropdown-menu .dropdown-item:hover {
	background-color: var(--bg-secondary);
}

.tipo-dropdown-menu .dropdown-item:last-child {
	border-bottom: none;
}

.tipo-dropdown-menu .dropdown-item.selected {
	background-color: var(--profile-avatar-color);
	color: white;
}


/* Tag Tipi Selezionati */
.selected-types-container {
	margin-top: 10px;
}

.tipo-tag {
	display: inline-flex;
	align-items: center;
	background: var(--profile-avatar-color);
	color: white;
	padding: 4px 8px;
	border-radius: 15px;
	font-size: 12px;
	cursor: pointer;
	transition: background-color 0.2s;
	margin: 2px;
}

.tipo-tag:hover {
	opacity: 0.8;
}

.tipo-tag i {
	margin-left: 4px;
	font-size: 10px;
}

/* Responsivo */
@media (max-width: 768px) {
	.tipo-dropdown-menu {
		min-width: 180px;
	}
	
	.tipo-tag {
		font-size: 11px;
		padding: 3px 6px;
	}
}

/* Migliora il layout dei suggerimenti */
.chat-suggestions .btn {
	margin: 2px;
	font-size: 12px;
	padding: 6px 12px;
}

/* Responsive per mobile */
@media (max-width: 768px) {
	.chat-suggestions .btn {
		font-size: 11px;
		padding: 4px 8px;
	}
}

/* Nascondi suggerimenti quando la chat è iniziata */
.main-content.chat-started .chat-suggestions {
	display: none !important;
}


/* Centrare anche i bottoni azione */
.filter-bar > div:last-of-type {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin-top: 10px;
}

/* Centrare i tag dei tipi selezionati */
#selectedTypesContainer {
	display: flex;
	justify-content: center;
}

#selectedTypesTags {
	justify-content: center;
}


/* Aggiungi questi stili al tuo style.css */

/* Gestione responsive dei suggerimenti */
.chat-suggestions .suggestion-btn {
	font-size: 12px;
	padding: 6px 12px;
	margin: 2px;
}

@media (max-width: 768px) {
	.chat-suggestions .suggestion-btn {
		margin: 1px;
	}
	
	/* Stile per il pulsante expand mobile */
	.chat-suggestions [data-bs-toggle="collapse"] {
		font-size: 11px;
		padding: 4px 12px;
		border-radius: 15px;
	}
	
	/* Animazione per la chevron */
	.collapse-chevron {
		transition: transform 0.2s ease;
	}
	
	[aria-expanded="true"] .collapse-chevron {
		transform: rotate(180deg);
	}
	
	/* Nascondi/mostra testi nel toggle */
	[aria-expanded="false"] .show-less-text,
	[aria-expanded="true"] .show-more-text {
		display: none !important;
	}
	
	[aria-expanded="true"] .show-less-text,
	[aria-expanded="false"] .show-more-text {
		display: inline !important;
	}
}

/* Migliora la gestione mobile del welcome box */
@media (max-width: 768px) {
	/* Mantieni sempre visibile l'header anche quando i filtri sono attivi */
	.main-content .topbar {
		position: sticky;
		top: 0;
		z-index: 1000;
	}
	
	/* Gestisci meglio l'hide/show dei filtri */
	.filter-bar.d-block {
		display: flex !important;
		flex-direction: column;
		gap: 10px;
		padding: 15px;
		background: var(--bg-secondary);
		border-radius: var(--border-radius);
		margin: 10px 0;
	}
	
	/* Assicurati che il welcome box non scompaia completamente */
	#welcome-box {
		transition: all 0.3s ease;
	}
	
	/* Stile per quando la chat è iniziata su mobile */
	.main-content.chat-started-mobile .prompt-title,
	.main-content.chat-started-mobile .chat-suggestions,
	.main-content.chat-started-mobile .btn-show-filters {
		display: none !important;
	}
	
	.main-content.chat-started-mobile #prompt-subtitle {
		font-size: 0;
		height: 0;
		margin: 0;
		padding: 0;
	}
}

/* Action Buttons Styling */
.action-buttons {
	border-top: 1px solid var(--border-color);
	padding-top: 15px;
	margin-top: 15px;
}

.action-buttons .btn {
	font-size: 12px;
	padding: 6px 12px;
	border-radius: 20px;
	transition: all 0.2s ease;
}

.action-buttons .btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* SQL Modal Styling */
#sqlModal .modal-content {
	background-color: var(--bg-primary);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
}

#sqlModal .modal-header {
	border-bottom: 1px solid var(--border-color);
	background-color: var(--bg-secondary);
}

#sqlModal .modal-title {
	color: var(--main-text-color);
	font-weight: 500;
}

#sqlModal pre {
	background-color: var(--bg-secondary) !important;
	border: 1px solid var(--border-color);
	color: var(--main-text-color);
	font-size: 12px;
	max-height: 400px;
	overflow-y: auto;
}

#sqlModal code {
	color: var(--main-text-color);
	background: transparent;
}

/* Success Alert Styling */
.alert-success {
	background-color: #d4edda;
	border-color: #c3e6cb;
	color: #155724;
	border-radius: var(--border-radius);
	font-size: 13px;
}

.alert-success .btn-close {
	font-size: 10px;
}

/* No News Alert Styling */
.alert-info {
	background-color: #d1ecf1;
	border-color: #bee5eb;
	color: #0c5460;
	border-radius: var(--border-radius);
	font-size: 14px;
}

/* Enhanced Filter Bar Active State */

/* Button Icon Improvements */
.btn .bi {
	font-size: 0.9em;
}

/* Responsive Improvements */
@media (max-width: 768px) {
	.action-buttons {
		flex-direction: column;
		gap: 8px !important;
	}
	
	.action-buttons .btn {
		width: 100%;
		justify-content: center;
	}
	
	#sqlModal .modal-dialog {
		margin: 10px;
	}
	
	#sqlModal pre {
		font-size: 10px;
		max-height: 250px;
	}
}

/* Copy Button Styling */
.btn-outline-primary.btn-sm {
	font-size: 11px;
	padding: 4px 8px;
}

/* Enhanced News Section */
.news-section {
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid var(--border-color);
}

.news-section h6 {
	color: var(--main-text-color);
	font-weight: 500;
	margin-bottom: 15px;
}

/* Loading Animation for API Result Processing */
.processing-result {
	opacity: 0.7;
	pointer-events: none;
}

.processing-result::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid var(--profile-avatar-color);
	border-radius: 50%;
	border-top-color: transparent;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* AGGIUNGI QUESTI STILI DENTRO IL TUO dynamicStyles ESISTENTE */

.action-buttons {
	border-top: 1px solid var(--border-color);
	padding-top: 15px;
	margin-top: 15px;
}
.action-buttons .btn {
	font-size: 12px;
	padding: 6px 12px;
	border-radius: 20px;
	transition: all 0.2s ease;
}
.action-buttons .btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#sqlModal .modal-content {
	background-color: var(--bg-primary);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
}
#sqlModal .modal-header {
	border-bottom: 1px solid var(--border-color);
	background-color: var(--bg-secondary);
}
#sqlModal .modal-title {
	color: var(--main-text-color);
	font-weight: 500;
}
#sqlModal pre {
	background-color: var(--bg-secondary) !important;
	border: 1px solid var(--border-color);
	color: var(--main-text-color);
	font-size: 12px;
	max-height: 400px;
	overflow-y: auto;
}
#sqlModal code {
	color: var(--main-text-color);
	background: transparent;
}
.alert-success {
	background-color: #d4edda;
	border-color: #c3e6cb;
	color: #155724;
	border-radius: var(--border-radius);
	font-size: 13px;
}
.alert-info {
	background-color: #d1ecf1;
	border-color: #bee5eb;
	color: #0c5460;
	border-radius: var(--border-radius);
	font-size: 14px;
}

/* AGGIUNGI QUESTI STILI al tuo style.css o nel dynamicStyles del main.js */

/* Enhanced Action Buttons */
.enhanced-action-buttons {
	border-top: 1px solid var(--border-color);
	padding-top: 15px;
	margin-top: 15px;
	background: var(--bg-secondary);
	border-radius: var(--border-radius);
	padding: 15px;
}

.enhanced-action-buttons .action-btn {
	font-size: 12px;
	padding: 8px 16px;
	border-radius: 20px;
	transition: all 0.2s ease;
	min-width: 120px;
	white-space: nowrap;
}

.enhanced-action-buttons .action-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Colori specifici per tipo di bottone */
.enhanced-action-buttons .btn-outline-primary:hover {
	background-color: #0d6efd;
	border-color: #0d6efd;
	color: white;
}

.enhanced-action-buttons .btn-outline-secondary:hover {
	background-color: #6c757d;
	border-color: #6c757d;
	color: white;
}

.enhanced-action-buttons .btn-outline-info:hover {
	background-color: #0dcaf0;
	border-color: #0dcaf0;
	color: white;
}

.enhanced-action-buttons .btn-outline-success:hover {
	background-color: #198754;
	border-color: #198754;
	color: white;
}

/* Modal migliorati */

/*
.modal-xl {
	max-width: 90%;
}

.modal-content {
	background-color: var(--bg-primary);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
}

.modal-header {
	border-bottom: 1px solid var(--border-color);
	background-color: var(--bg-secondary);
}

.modal-title {
	color: var(--main-text-color);
	font-weight: 500;
}

.modal-body {
	color: var(--main-text-color);
	max-height: 70vh;
	overflow-y: auto;
}*/

/* Tabelle nei modal */
.modal-body .table {
	font-size: 13px;
}

.modal-body .table th {
	background-color: var(--bg-tertiary);
	color: white;
	border: none;
	font-weight: 500;
}

.modal-body .table td {
	vertical-align: middle;
	border-color: var(--border-color);
}

.modal-body .table-striped > tbody > tr:nth-of-type(odd) > td {
	background-color: var(--bg-secondary);
}

/* Document items */
.document-item {
	background-color: var(--bg-secondary);
	border: 1px solid var(--border-color) !important;
	transition: all 0.2s ease;
}

.document-item:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transform: translateY(-1px);
}

.document-item h6 {
	color: var(--profile-avatar-color);
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 8px;
	margin-bottom: 12px;
}

/* Rows data table */
.rows-data .table-responsive {
	max-height: 500px;
	overflow-y: auto;
}

.rows-data .table th {
	position: sticky;
	top: 0;
	background-color: var(--bg-tertiary);
	z-index: 10;
}

.rows-data .table td {
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rows-data .table td:hover {
	white-space: normal;
	word-wrap: break-word;
}

/* Code styling nei modal */
.modal-body code {
	background-color: var(--bg-tertiary);
	color: white;
	padding: 2px 4px;
	border-radius: 3px;
	font-size: 11px;
}

.modal-body pre {
	background-color: var(--bg-secondary);
	border: 1px solid var(--border-color);
	color: var(--main-text-color);
	font-size: 12px;
	max-height: 400px;
	overflow-y: auto;
	padding: 15px;
	border-radius: 8px;
}

/* Copy button animation */
.btn-success {
	animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

/* Responsive design */
@media (max-width: 768px) {
	.enhanced-action-buttons {
		flex-direction: column;
		gap: 8px !important;
	}
	
	.enhanced-action-buttons .action-btn {
		width: 100%;
		min-width: unset;
	}
	
	.modal-xl {
		max-width: 95%;
		margin: 10px auto;
	}
	
	.modal-body {
		max-height: 60vh;
	}
	
	.rows-data .table td {
		max-width: 100px;
		font-size: 11px;
	}
	
	.document-item .col-md-6 {
		margin-bottom: 10px;
	}
}

/* Loading state per i bottoni */
.action-btn.loading {
	pointer-events: none;
	opacity: 0.7;
}

.action-btn.loading::after {
	content: '';
	width: 12px;
	height: 12px;
	margin-left: 8px;
	border: 2px solid currentColor;
	border-radius: 50%;
	border-top-color: transparent;
	animation: spin 1s linear infinite;
	display: inline-block;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.simple-typing-loader {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px 20px;
	background: #f8f9fa;
	border-radius: 12px;
	border: 1px solid #e9ecef;
	max-width: 400px;
}

.typing-dots-simple {
	display: flex;
	gap: 5px;
}

.typing-dots-simple span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #007bff;
	animation: simpleTyping 1.4s infinite ease-in-out;
}

.typing-dots-simple .dot1 { animation-delay: 0s; }
.typing-dots-simple .dot2 { animation-delay: 0.2s; }
.typing-dots-simple .dot3 { animation-delay: 0.4s; }

@keyframes simpleTyping {
	0%, 60%, 100% {
		transform: scale(0.6);
		opacity: 0.4;
	}
	30% {
		transform: scale(1);
		opacity: 1;
	}
}

.simple-steps {
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex-grow: 1;
}

.simple-step {
	display: flex;
	align-items: center;
	font-size: 12px;
	color: #6c757d;
	transition: color 0.3s ease;
}

.simple-step i {
	width: 16px;
	margin-right: 8px;
	font-size: 12px;
}

.simple-step.active {
	color: #007bff;
	font-weight: 500;
}

.simple-step.completed {
	color: #28a745;
}

.simple-step.completed i::before {
	content: "\f26b"; /* bi-check */
}

/* Responsive */
@media (max-width: 768px) {
	.simple-typing-loader {
		max-width: 320px;
		padding: 12px 15px;
		gap: 12px;
	}
	
	.simple-step {
		font-size: 11px;
	}
	
	.typing-dots-simple span {
		width: 6px;
		height: 6px;
	}
}

/* Chat Control Buttons */
/*
.chat-control-buttons {
	margin: 15px 0;
	flex-wrap: wrap;
}

.chat-control-buttons .btn {
	font-size: 13px;
	padding: 8px 16px;
	border-radius: 20px;
	transition: all 0.2s ease;
	min-width: 100px;
}

.chat-control-buttons .btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chat-control-buttons .btn-primary {
	background-color: var(--profile-avatar-color);
	border-color: var(--profile-avatar-color);
	color: white;
}

@media (max-width: 768px) {
	.chat-control-buttons {
		flex-direction: row;
		justify-content: center;
		gap: 10px !important;
	}
	
	.chat-control-buttons .btn {
		flex: 1;
		max-width: 140px;
		font-size: 12px;
		padding: 6px 12px;
	}
}
	*/

/* Stili per formattazione messaggi bot */
.news-section-title {
	font-weight: bold;
	color: var(--profile-avatar-color);
	margin: 15px 0 10px 0;
	padding: 8px 12px;
	background: var(--bg-secondary);
	border-left: 4px solid var(--profile-avatar-color);
	border-radius: 6px;
}

.news-item {
	margin: 8px 0;
	padding: 5px 0;
	line-height: 1.5;
	border-bottom: 1px solid rgba(0,0,0,0.05);
}

.news-item:last-child {
	border-bottom: none;
}

.news-id {
	background: var(--profile-avatar-color);
	color: white;
	padding: 2px 6px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: bold;
	margin-left: 8px;
	display: inline-block;
}

.emoji-section {
	margin: 10px 0;
	padding: 8px;
	background: var(--bg-secondary);
	border-radius: 8px;
}

.emoji-section .emoji {
	font-size: 1.2em;
	margin-right: 8px;
}

.bot-answer .message-container{
	word-wrap: break-word;
}

.bot-answer .message-container p {
	margin: 0 0 10px 0;
	line-height: 1.6;
}

.bot-answer .message-container p:last-child {
	margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
	.news-section-title {
		font-size: 14px;
		padding: 6px 10px;
		margin: 12px 0 8px 0;
	}
	
	.news-item {
		font-size: 14px;
		margin: 6px 0;
	}
	
	.emoji-section {
		padding: 6px;
		margin: 8px 0;
	}
}

/* Stili per notizie formattate */
.formatted-news-item {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 20px;
	margin: 15px 0;
	transition: all 0.3s ease;
	position: relative;
}

.formatted-news-item:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transform: translateY(-2px);
}

.formatted-news-item.simple {
	background: var(--bg-primary);
	border: 1px solid var(--border-color);
	padding: 15px;
}

.news-date {
	font-size: 12px;
	color: #666;
	background: var(--profile-avatar-color);
	color: white;
	padding: 4px 10px;
	border-radius: 15px;
	display: inline-block;
	margin-bottom: 12px;
	font-weight: 500;
}

.news-image {
	margin: 12px 0;
	text-align: center;
	border-radius: 8px;
	overflow: hidden;
}

.news-image img {
	max-width: 100%;
	height: auto;
	max-height: 200px;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--main-text-color);
	margin: 12px 0;
	line-height: 1.4;
}

.news-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0;
	align-items: center;
}

.news-category {
	background: #e3f2fd;
	color: #1976d2;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
}

.news-views {
	background: #e8f5e8;
	color: #2e7d32;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 500;
}

.news-id {
	background: var(--profile-avatar-color);
	color: white;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 500;
}

.news-summary {
	color: #666;
	font-size: 14px;
	line-height: 1.5;
	margin: 12px 0;
	padding: 12px;
	background: rgba(0,0,0,0.02);
	border-radius: 8px;
	border-left: 3px solid var(--profile-avatar-color);
}

.news-actions {
	margin-top: 15px;
	text-align: right;
}

.news-link-btn {
	display: inline-flex;
	align-items: center;
	background: var(--profile-avatar-color);
	color: white;
	padding: 8px 16px;
	border-radius: 20px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.news-link-btn:hover {
	background: #e68a00;
	color: white;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(255, 153, 0, 0.3);
	text-decoration: none;
}

.news-link-btn i {
	font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
	.formatted-news-item {
		padding: 15px;
		margin: 12px 0;
	}
	
	.news-title {
		font-size: 15px;
	}
	
	.news-image img {
		max-height: 150px;
	}
	
	.news-meta {
		gap: 6px;
	}
	
	.news-category,
	.news-views,
	.news-id {
		font-size: 10px;
		padding: 3px 6px;
	}
	
	.news-summary {
		font-size: 13px;
		padding: 10px;
	}
	
	.news-actions {
		text-align: center;
	}
	
	.news-link-btn {
		font-size: 12px;
		padding: 6px 12px;
	}
}

/* Loading state per immagini */
.news-image img {
	transition: opacity 0.3s ease;
}

.news-image img[src=""] {
	display: none;
}

/* Effetto hover sulle immagini */
.news-image:hover img {
	transform: scale(1.02);
	transition: transform 0.3s ease;
}

/* Pulsante chiusura filtri mobile */
.mobile-close-filters {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 1000;
	display: none;
}

.filter-bar.mobile-filters-open .mobile-close-filters {
	display: block;
}

.mobile-close-filters .btn {
	background: var(--profile-avatar-color);
	color: white;
	border: 2px solid white;
	border-radius: 25px;
	padding: 10px 15px;
	font-weight: 500;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	transition: all 0.3s ease;
}

.mobile-close-filters .btn:hover {
	background: #e68a00;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.mobile-close-filters .btn i {
	margin-right: 6px;
	font-size: 14px;
}

/* Versione alternativa: pulsante fisso in alto a destra */
.mobile-close-filters-alt {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1001;
}

.mobile-close-filters-alt .btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--profile-avatar-color);
	color: white;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}





/*************************
FILTRI DI RICERCA
*************************/
main.chat-started .prompt-title,
main.chat-started .prompt-subtitle,
main.chat-started .filter-bar{
	display: none;
}
#clearFilters,
#applyFilters{
	height: 38px;
	width: 38px;
}
#applyFilters{
	color: #fff;
	background-color: var(--profile-avatar-color)
}
.btn-show-filters{
	display: none;
	width: 300px;
	max-width: 100%;
	border-radius: var(--border-radius);
	border: 1px solid var(--border-suggestion-btn);
}
.btn-show-filters:hover{
	border: 1px solid var(--border-suggestion-btn-hover);
}
.topbar .btn-show-filters{
	position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}
main.chat-started .topbar .btn-show-filters{
	display: block;
}
main.chat-started .filter-bar{
	border-bottom: 1px solid var(--select-border-color);
}
main.chat-started .filter-bar{
	padding-top: 15px;
	margin-bottom: 30px;
}
.filter-bar > div:first-of-type {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	column-gap: 10px;
	row-gap: 15px;
}
.filters-style input[type="text"],
.filters-style .select__button{
	width: 200px;
	height: 38px;
	font-size: var(--select-font-size);
	color: var(--select-text);
	text-align:left;
	border:1px solid var(--select-border-color);
	border-radius:var(--select-border-radius);
	background: var(--select-background);
	padding:5px 14px;
}
.filters-style input[type="text"]::placeholder{
	color: var(--select-text);
}
.filters-style .select__button{
	display:flex;
	align-items:center;
	background: var(--select-background);
	cursor:pointer;
	gap:8px;
	transition:box-shadow .2s, border-color .2s
}
.filters-style input[type="text"]:focus,
.filters-style .select__button:focus{
	outline:none;
	box-shadow:0 0 0 3px color-mix(in srgb, var(--select-focus) 24%, transparent);
	border-color:var(--select-focus)
}
.filters-style .select__placeholder{
	flex:1;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis
}
.filters-style .select__chev{
	transform:rotate(0);
	transition:transform .15s
}
.filters-style .select.open .select__chev{
	transform:rotate(180deg)
}
.filters-style .select__panel{
	position:absolute;
	inset-inline:0;
	top:calc(100% + 8px); 
	background:var(--select-background);
	border:1px solid var(--select-border-color);
	border-radius:var(--select-border-radius);
	box-shadow:var(--select-shadow);
	display:none;
	z-index:50
}
.filters-style .select.open .select__panel{
	display:block
}
.filters-style .select__search{
	padding:8px 10px;
	border-bottom:1px solid var(--select-border-color)
}
.filters-style .select__search input{
	width:100%;
	padding:10px 12px;
	border:1px solid var(--select-border-color);
	border-radius:10px
}
.filters-style .select__search input:focus{
	outline:none;
	border-color:var(--select-focus);
	box-shadow:0 0 0 3px color-mix(in srgb, var(--select-focus) 22%, transparent)
}
.filters-style .options{
	max-height:260px;
	overflow:auto;
	padding:6px;
	margin-bottom: 0;
}
.filters-style .option{
	display:flex;
	align-items:center;
	gap:10px;
	padding:10px 12px;
	border-radius:10px;
	cursor:pointer
}
.filters-style .option:hover{
	background:var(--option-hover)
}
.filters-style .option[aria-selected="true"]{
	background:var(--option-selected)
}
.filters-style .option__label{
	flex:1;
	font-size: calc(var(--select-font-size) + 1px);
}
.filters-style .option__check{
	opacity:0;
	transition:opacity .12s;
	flex:0 0 auto
}
.filters-style .option[aria-selected="true"] .option__check{
	opacity:1
}
.filters-style .option input[type="checkbox"]{
	position:absolute;
	inset:0;
	opacity:0;
	pointer-events:none
}
@media (max-width: 991.98px) {
	.topbar .btn-show-filters{
		display: block;
		top: 55px;
		font-size: 15px;
	}
	.filters-style > div:first-of-type {
		display: flex;
        flex-direction: column;
	}
	.filters-style > div:first-of-type>div,
	.filters-style input[type="text"],
	.filters-style .select__button,
	.filters-style input,
	.filters-style button {
		width: 100%;
		min-width: unset;
	}
	.filters-style > div:first-of-type>div+div{
		margin-top: 10px;
	}
	.filter-bar{
		display: none;
	}
	#mob-filters-modal .modal-header{
		background: var(--select-background);
	}
	/*
	.filter-bar.mobile-filters-open {
		position: relative;
	}
	.filter-bar>div:first-of-type{
		display: grid;
		grid-template-columns: 50% 50%;
	}
	.filter-bar>div:first-of-type>div:not(:last-of-type)>*{
		width: 100% !important;
	}
	.mobile-close-filters {
		animation: fadeInUp 0.3s ease;
	}

	@keyframes fadeInUp {
		from {
			opacity: 0;
			transform: translateY(20px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}
	*/
}
@media (max-width: 767.98px) {
	.filter-bar input,
	.filter-bar button {
		width: 100%;
	}
}
@media (max-width: 576px){
	.filter-bar > div:first-of-type {
		display: flex;
		flex-direction: column;
	}
}

/* Aggiungi questi stili al tuo style.css */

/* Avatar Icon */
.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--profile-avatar-color);
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.avatar-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.avatar-circle.logged-in {
  background: linear-gradient(135deg, #28a745, #20c997);
}

/* Dropdown migliorato */
.avatar-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  min-width: 320px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  animation: dropdownFadeIn 0.2s ease;
}

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

/* Animazione mobile fullscreen */
@keyframes mobileDropdownFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 768px) {
  .avatar-dropdown {
    animation: mobileDropdownFadeIn 0.3s ease;
  }
  
  .avatar-dropdown .login-section,
  .avatar-dropdown .user-section {
    animation: slideInUp 0.4s ease;
  }
}

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

/* Login Form */
.login-section h6 {
  color: var(--main-text-color);
  font-weight: 600;
}

.login-section .form-control {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.login-section .form-control:focus {
  border-color: var(--profile-avatar-color);
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

.login-section .btn-primary {
  background: var(--profile-avatar-color);
  border-color: var(--profile-avatar-color);
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.login-section .btn-primary:hover {
  background: #e68a00;
  border-color: #e68a00;
  transform: translateY(-1px);
}

.login-section .btn-primary:disabled {
  opacity: 0.7;
  transform: none;
}

/* User Section */
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #28a745, #20c997);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.subscription-badge .badge {
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.subscription-badge .badge.guest {
  background: #6c757d;
  color: white;
}

.subscription-badge .badge.subscriber {
  background: #0d6efd;
  color: white;
}

.subscription-badge .badge.premium {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
}

/* Usage Progress */
.usage-info .progress {
  background-color: #e9ecef;
  border-radius: 10px;
}

.usage-info .progress-bar {
  background: linear-gradient(90deg, #28a745, #20c997);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.usage-info .progress-bar.warning {
  background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.usage-info .progress-bar.danger {
  background: linear-gradient(90deg, #dc3545, #e91e63);
}

/* Dropdown Items */
.dropdown-item-custom {
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  text-align: start;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 2px 0;
}

.dropdown-item-custom:hover {
  background-color: var(--bg-secondary);
  transform: translateX(2px);
}

.dropdown-item-custom.text-danger:hover {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
  .avatar-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-width: unset;
    padding: 20px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
  }
  
  .avatar-dropdown .login-section,
  .avatar-dropdown .user-section {
    background: var(--bg-primary);
    border-radius: 15px;
    padding: 30px 20px;
    margin: auto;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .login-section h6 {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .login-section p {
    font-size: 14px;
    margin-bottom: 25px;
  }
  
  .login-section .form-control {
    padding: 15px;
    font-size: 16px;
    border-radius: 10px;
  }
  
  .login-section .btn-primary {
    padding: 15px;
    font-size: 16px;
    border-radius: 10px;
  }
  
  .user-info {
    text-align: center;
  }
  
  .user-info .d-flex {
    flex-direction: column;
    align-items: center;
  }
  
  .user-info .user-avatar {
    margin-bottom: 15px;
    width: 60px;
    height: 60px;
    font-size: 20px;
  }
  
  .user-info #userName {
    font-size: 18px;
    margin-bottom: 5px;
  }
  
  .user-info #userEmail {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .subscription-badge {
    margin-bottom: 20px;
  }
  
  .subscription-badge .badge {
    padding: 8px 20px;
    font-size: 12px;
  }
  
  .dropdown-item-custom {
    padding: 15px 20px;
    font-size: 16px;
    margin: 5px 0;
    border-radius: 10px;
  }
  
  /* Aggiungi pulsante chiudi per mobile */
  .avatar-dropdown::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
  }
  
  .avatar-dropdown::after {
    content: '✕';
    position: absolute;
    top: 25px;
    right: 28px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    pointer-events: none;
  }
}

/* Error States */
.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
}

/* Success Animation */
.login-success {
  animation: loginSuccess 0.5s ease;
}

@keyframes loginSuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Loading State */
.login-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Upgrade Button Special */
.dropdown-item-custom:has(.bi-star) {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.dropdown-item-custom:has(.bi-star):hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
}

/* Stili per tag criteri rimuovibili */
.criteria-tags-container {
    margin: 10px 0;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 3px solid var(--profile-avatar-color);
}

.criteria-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--profile-avatar-color);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px;
    transition: all 0.2s ease;
}

.criteria-tag.daterange {
    background: #28a745;
}

.criteria-tag:hover {
    background: #e68a00;
    transform: translateY(-1px);
}

.criteria-tag.daterange:hover {
    background: #1e7e34;
}

.remove-criteria {
    cursor: pointer;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.remove-criteria:hover {
    opacity: 1;
    color: #ffcccc;
}

.clickable-id {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-id:hover {
    background: #e68a00 !important;
    transform: scale(1.05);
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .criteria-tags-container {
        padding: 8px;
    }
    
    .criteria-tag {
        font-size: 11px;
        padding: 3px 8px;
        margin: 1px;
    }
    
    .remove-criteria {
        font-size: 12px;
    }
}

/* Aggiungi questi stili al tuo style.css esistente */

/* Stili per le icone multiple nei servizi marketing */
.service-icons {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.link-icon-container,
.pdf-icon-container {
    position: relative;
}

.link-visit-btn,
.pdf-download-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-visit-btn:hover,
.pdf-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.link-visit-btn i,
.pdf-download-btn i {
    font-size: 10px;
}

.link-visit-btn span,
.pdf-download-btn span {
    font-size: 10px;
    font-weight: 600;
}

/* Stili specifici per il link */
.link-visit-btn {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.link-visit-btn:hover {
    background: #218838;
    color: white;
    border-color: #218838;
}

/* Stili specifici per il PDF (mantieni quelli esistenti) */
.pdf-download-btn {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pdf-download-btn:hover {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
}

/* Contenitore per il contenuto del servizio quando non c'è modal */
.service-content {
    padding: 25px;
}

.service-content i {
    font-size: 25px;
    margin-bottom: 20px;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.service-content .h4 {
    font-weight: 600;
    margin-bottom: 15px;
}

.service-content p {
    margin-bottom: 0;
    color: #333;
    line-height: 1.5;
}

/* Responsiveness */
@media (max-width: 768px) {
    .service-icons {
        position: static;
        justify-content: center;
        margin-top: 15px;
        margin-bottom: 10px;
        gap: 10px;
    }
    
    .link-visit-btn,
    .pdf-download-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .link-visit-btn span,
    .pdf-download-btn span {
        font-size: 11px;
    }
}

@media (max-width: 575.98px) {
    .service-icons {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .link-visit-btn,
    .pdf-download-btn {
        width: 100px;
        justify-content: center;
    }
}