.multi-select-component {
	position: relative;
	width: 100%;
}

.multi-select-component .select-input {
	/*border: 2px solid #e0e0e0;
	border-radius: 12px;
	padding: 12px;
	min-height: 54px;*/
	border: 1px solid #EAEAEA; /* Borde más delgado */
	border-radius: 8px;        /* Radio ajustado */
	background: #ffffff;       /* Fondo blanco */
	padding: 12px;
	min-height: 54px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

/*.multi-select-component .select-input:hover {

	border-color: #ffcc00;
	background: white;
}*/

/*.multi-select-component .select-input.active {
	border-color: #233551;
	background: white;
	box-shadow: 0 0 0 3px rgba(35, 53, 81, 0.1);
}*/

.multi-select-component .tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #233551;
	color: white;
	padding: 6px 10px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	animation: tagAppear 0.2s ease;
}

@keyframes tagAppear {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.multi-select-component .tag-remove {
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	transition: background 0.2s;
}

.multi-select-component .tag-remove:hover {
	opacity: 0.7;
}

.multi-select-component .placeholder {
	color: #999;
	user-select: none;
}

.multi-select-component .dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: white;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	max-height: 300px;
	overflow-y: auto;
	z-index: 1000;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	display: none;
	animation: dropdownAppear 0.2s ease;
}

@keyframes dropdownAppear {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.multi-select-component .dropdown.active {
	display: block;
}

.multi-select-component .search-input {
	width: 100%;
	border: none;
	border-bottom: 2px solid #d0d0d0;
	padding: 14px;
	font-size: 15px;
	outline: none;
	position: sticky;
	top: 0;
	background: white;
	z-index: 1;
}

.multi-select-component .search-input:focus {
	border-bottom-color: #ffcc00;
}

.multi-select-component .options-list {
	list-style: none;
	padding-inline-start:0px !important;
}

.multi-select-component .option-item {
	padding: 14px;
	cursor: pointer;
	transition: background 0.2s;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
}

.multi-select-component .option-item:hover {
	background: #fff8e1;
	border-color: #EFC115 !important;
}

#multiSelect .select-input:active {
	border-color: #ffcc00;
}


.multi-select-component .option-item.selected {
	background: #fff3cd;
	color: #233551;
	border-color:#1ab209;
	font-weight: 500;
}

.multi-select-component .option-checkbox {
	width: 20px;
	height: 20px;
	border: 2px solid #d0d0d0;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	flex-shrink: 0;
}

.multi-select-component .option-item.selected .option-checkbox {
	background: #EFC115;
	border-color: #EFC115;
}

.multi-select-component .option-checkbox::after {
	content: '✓';
	color: #233551;
	font-size: 14px;
	font-weight: bold;
	opacity: 0;
	transform: scale(0);
	transition: all 0.2s;
}

.multi-select-component .option-item.selected .option-checkbox::after {
	opacity: 1;
	transform: scale(1);
}

.multi-select-component .add-new-option {
	padding: 14px;
	background: #e8f5e9;
	border-top: 2px solid #e0e0e0;
	color: #2e7d32;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: background 0.2s;
}

.multi-select-component .add-new-option:hover {
	background: #c8e6c9;
}

.multi-select-component .add-icon {
	font-size: 20px;
	font-weight: bold;
}

.multi-select-component .no-results {
	padding: 30px;
	text-align: center;
	color: #999;
}

.multi-select-component .close-button {
	position: sticky;
	bottom: 0;
	width: calc(100% - 24px);
	margin: 12px;
	padding: 14px;
	background: #233551;
	color: white;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.multi-select-component .close-button-modal {
	width: calc(100% - 24px);
	margin: 12px;
	padding: 14px;
	background: #233551;
	color: white;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.multi-select-component .close-button:hover {
	background: #1a2839;
}

.multi-select-component .close-button:active {
	background: #0f1a29;
}

/* Modal para móvil */
.multi-select-component .dropdown-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9998;
	animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.multi-select-component .dropdown-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	background: white;
	z-index: 9999;
	flex-direction: column;
	animation: slideUp 0.3s ease;
	overflow: hidden;
}

@keyframes slideUp {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

.multi-select-component .modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 2px solid #d0d0d0;
	background: white;
	flex-shrink: 0;
}

.multi-select-component .modal-title {
	font-size: 18px;
	font-weight: 600;
	color: #233551;
}

.multi-select-component .modal-close-btn {
	background: none;
	border: none;
	font-size: 28px;
	color: #666;
	cursor: pointer;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.2s;
}

.multi-select-component .modal-close-btn:active {
	background: #f0f0f0;
}

.multi-select-component .modal-content {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	-webkit-overflow-scrolling: touch;
	min-height: 0;
}

.multi-select-component .modal-search {
	border: none;
	border-bottom: 2px solid #d0d0d0;
	padding: 16px 20px;
	font-size: 16px;
	outline: none;
	background: white;
	z-index: 2;
	flex-shrink: 0;
}

.multi-select-component .modal-options {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	min-height: 0;
}

.multi-select-component .modal-footer {
	flex-shrink: 0;
	background: white;
	border-top: 1px solid #e0e0e0;
}

@media (max-width: 640px) {
	.container {
		padding: 20px;
	}

	h2 {
		font-size: 20px;
	}

	.multi-select-component .select-input {
		padding: 10px;
		min-height: 50px;
	}



	.multi-select-component .dropdown {
		display: none !important;
	}

	.multi-select-component .dropdown-modal-overlay.active {
		display: block;
	}

	.multi-select-component .dropdown-modal.active {
		display: flex;
	}

	.multi-select-component .tag {
		font-size: 13px;
		padding: 5px 8px;
	}

	.multi-select-component .options-list {
		list-style: none;
		padding-inline-start:0px !important;
	}
}

@media (hover: none) {
	.multi-select-component .option-item:active {
		background: #fff8e1;
	}

	.multi-select-component .add-new-option:active {
		background: #c8e6c9;
	}
}