.ts-text-splitter,
.ts-text-splitter * {
	box-sizing: border-box;
}

.ts-text-splitter {
	font-family: "Segoe UI", Arial, sans-serif;
	padding: 20px;
}

.ts-text-splitter .ts-container {
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
}

.ts-text-splitter .ts-card {
	background: #ffffff;
	border-radius: 25px;
	padding: 25px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ts-text-splitter .ts-title {
	text-align: center;
	margin: 0 0 20px;
	color: #333333;
	font-size: 2rem;
	line-height: 1.2;
}

.ts-text-splitter .ts-input {
	width: 100%;
	min-height: 180px;
	border: none;
	outline: none;
	resize: vertical;
	background: #f4f6fa;
	padding: 15px;
	border-radius: 15px;
	font-size: 15px;
	margin-bottom: 15px;
	color: #222;
}

.ts-text-splitter .ts-options {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
}

.ts-text-splitter select,
.ts-text-splitter input[type="text"] {
	flex: 1;
	border: none;
	outline: none;
	background: #f4f6fa;
	padding: 12px;
	border-radius: 12px;
	font-size: 14px;
	color: #222;
	min-width: 0;
}

.ts-text-splitter .ts-button {
	width: 100%;
	border: none;
	background: var(--ts-accent, #667eea);
	color: #fff;
	padding: 14px;
	border-radius: 15px;
	font-size: 16px;
	cursor: pointer;
	transition: transform 0.25s ease, filter 0.25s ease, background 0.25s ease;
}

.ts-text-splitter .ts-button:hover {
	transform: translateY(-2px);
	filter: brightness(0.95);
}

.ts-text-splitter .ts-stats {
	margin: 15px 0;
	font-weight: 600;
	color: #555;
}

.ts-text-splitter .ts-output {
	max-height: 300px;
	overflow: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ts-text-splitter .ts-item {
	background: #f4f6fa;
	padding: 12px;
	border-radius: 12px;
	word-break: break-word;
	animation: tsFadeIn 0.3s ease;
	color: #222;
}

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

@media (max-width: 600px) {
	.ts-text-splitter {
		padding: 10px;
	}

	.ts-text-splitter .ts-options {
		flex-direction: column;
	}

	.ts-text-splitter .ts-card {
		padding: 18px;
		border-radius: 22px;
	}

	.ts-text-splitter .ts-title {
		font-size: 1.5rem;
	}
}
