﻿.show-path {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	background: #f8f9fa;
	border-radius: 10px;
	padding: 0 15px;
	margin-bottom: 15px;
	border: 1px solid #e9ecef;
	min-height: 70px;
	position: relative;
}

.path-segment {
	display: flex;
	align-items: center;
	background: white;
	padding: 10px 12px;
	border-radius: 8px;
	margin: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	border: 1px solid #e1e5e9;
	transition: all 0.3s;
	position: relative;
}

	.path-segment.editing {
		box-shadow: 0 4px 12px rgba(77, 171, 247, 0.3);
		border-color: #4dabf7;
	}

	.path-segment i.path-icon {
		margin-left: 6px;
		color: #6c757d;
		font-size: 16px;
	}

	.path-segment span {
		font-weight: 500;
		color: #495057;
		margin: 0 6px;
	}

.path-actions {
	display: flex;
	gap: 6px;
	margin-right: 4px;
}

.path-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 13px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}

	.path-btn.edit {
		color: #4dabf7;
	}

		.path-btn.edit:hover {
			background: #e7f5ff;
		}

	.path-btn.delete {
		color: #ff6b6b;
	}

		.path-btn.delete:hover {
			background: #fff5f5;
		}

.path-separator {
	margin: 0 8px;
	color: #adb5bd;
	font-weight: bold;
}

.empty-path {
	color: #6c757d;
	font-style: italic;
	padding: 8px;
}

.edit-combobox {
	position: absolute;
	top: 100%;
	/*left: 0;*/
	right: 0;
	background: white;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
	z-index: 100;
	margin-top: 4px;
	padding: 8px;
	border: 1px solid #e1e5e9;
	width:200px;
	display: none;
}

	.edit-combobox select {
		width: 100%;
		padding: 8px 10px;
		border-radius: 6px;
		border: 1px solid #ced4da;
		background: white;
		font-size: 13px;
		color: #495057;
		transition: all 0.3s;
		appearance: none;
		background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
		background-repeat: no-repeat;
		background-position: left 10px center;
		background-size: 12px;
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
		background-image: none;
		padding-right: 8px; /* فضای خالی برای متن */
	}
		/* برای مرورگرهای مختلف */
		.edit-combobox select::-ms-expand {
			display: none; /* برای IE */
		}

		.edit-combobox select:focus {
			outline: none;
			border-color: #4dabf7;
			box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.2);
		}

.combobox-actions {
	display: flex;
	gap: 6px;
	margin-top: 8px;
	justify-content: flex-end;
}

.combobox-btn {
	padding: 5px 10px;
	border: none;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}

	.combobox-btn.confirm {
		background: #4dabf7;
		color: white;
	}

		.combobox-btn.confirm:hover {
			background: #339af0;
		}

	.combobox-btn.cancel {
		background: #f8f9fa;
		color: #6c757d;
		border: 1px solid #e9ecef;
	}

		.combobox-btn.cancel:hover {
			background: #e9ecef;
		}

.add-btn {
	display: flex;
	align-items: center;
	background: #ebfbee;
	color: #2b8a3e;
	border: 1px dashed #40c057;
	border-radius: 8px;
	padding: 6px 10px;
	margin: 5px;
	cursor: pointer;
	transition: all 0.3s;
	font-weight: 500;
	font-size: 13px;
}

	.add-btn:hover {
		background: #d3f9d8;
		transform: translateY(-1px);
		box-shadow: 0 2px 6px rgba(64, 192, 87, 0.2);
	}

	.add-btn i {
		margin-left: 4px;
	}

@media (max-width: 600px) {
	.show-path {
		flex-direction: column;
		align-items: flex-start;
	}

	.path-separator {
		margin: 4px 0;
		transform: rotate(90deg);
	}

	.edit-combobox {
		width: 100%;
		left: 0;
		right: 0;
	}
}
