:root {
	--bg-color: #f5fbff;
	--text-color: #0f394c;
	--accent-color: #49b5e7;
	--accent-hover: #3a91b9;
	--card-bg: #ffffff;
	--border-color: rgba(73, 181, 231, 0.1);
	--selection-bg: #49b5e7;
	--selection-text: #ffffff;
}

/* Typography */
.title-color {
	color: var(--text-color);
	letter-spacing: -0.02em;
}

.accent-color {
	color: var(--accent-color);
}

.subtitle-text {
	color: rgba(15, 57, 76, 0.6);
	max-width: 400px;
	font-size: 1.1rem;
	line-height: 1.4;
}

/* Badge */
.badge-custom {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px;
	border-radius: 100px;
	background-color: rgba(73, 181, 231, 0.1);
	color: var(--accent-color);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.badge-custom i {
	width: 12px;
	height: 12px;
}

/* Input Area */
.input-container {
	position: relative;
}

.input-glow {
	position: absolute;
	inset: -2px;
	background: linear-gradient(135deg, var(--accent-color), var(--text-color));
	border-radius: 24px;
	filter: blur(8px);
	opacity: 0.1;
	transition: opacity 0.5s ease;
	z-index: 0;
}

.input-container:hover .input-glow {
	opacity: 0.2;
}

.input-card {
	position: relative;
	background-color: var(--card-bg);
	border-radius: 24px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
	border: 1px solid var(--border-color);
	overflow: hidden;
	z-index: 1;
}

.card-header-custom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 24px;
	background-color: rgba(245, 251, 255, 0.5);
	border-bottom: 1px solid var(--bg-color);
}

.dots {
	display: flex;
	gap: 6px;
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.dot.red {
	background-color: rgba(248, 113, 113, 0.2);
}

.dot.yellow {
	background-color: rgba(250, 204, 21, 0.2);
}

.dot.green {
	background-color: rgba(74, 222, 128, 0.2);
}

.version {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: rgba(15, 57, 76, 0.3);
}

.custom-textarea {
	width: 100%;
	height: 240px;
	padding: 20px;
	border: none;
	outline: none;
	resize: none;
	font-size: 1rem;
	line-height: 1.6;
	color: color-mix(in oklab, var(--text-color) 90%, transparent);
	background: transparent;
	font-weight: 500;
}

.custom-textarea::placeholder {
	color: color-mix(in oklab, var(--text-color) 40%, transparent);
	font-weight: 500;
}

@media (min-width: 768px) {
	.custom-textarea {
		height: 384px;
		padding: 32px;
		font-size: 1.25rem;
	}
}

/* Floating Controls */
.floating-controls {
	position: absolute;
	bottom: 12px;
	right: 12px;
}

@media (min-width: 768px) {
	.floating-controls {
		bottom: 24px;
		right: 24px;
	}
}

.control-btn {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background-color: var(--bg-color);
	border: 1px solid rgba(73, 181, 231, 0.05);
	color: rgba(15, 57, 76, 0.5);
	transition: all 0.2s ease;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

@media (min-width: 768px) {
	.control-btn {
		width: 52px;
		height: 52px;
		border-radius: 16px;
	}
}

.control-btn:hover {
	background-color: rgba(73, 181, 231, 0.1);
	color: var(--accent-color);
	transform: scale(1.05);
}

.control-btn#clearBtn:hover {
	background-color: #fff1f2;
	color: #ef4444;
}

.control-btn.disabled,
.tool-btn.disabled {
	opacity: 0.3;
	pointer-events: none;
}

.copy-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 20px;
	height: 44px;
	border-radius: 12px;
	background-color: var(--text-color);
	color: white;
	border: none;
	font-weight: 700;
	box-shadow: 0 10px 20px rgba(15, 57, 76, 0.15);
	transition: all 0.2s ease;
	font-size: 14px;
}

@media (min-width: 768px) {
	.copy-btn {
		gap: 12px;
		padding: 0 32px;
		height: 52px;
		border-radius: 16px;
		font-size: 16px;
	}
}

.copy-btn:hover {
	background-color: var(--accent-color);
	transform: scale(1.02);
}

.copy-btn.copied {
	background-color: #22c55e;
}

.copy-btn.disabled {
	opacity: 0.3;
	pointer-events: none;
}

.copy-btn i {
	width: 18px;
	height: 18px;
}

@media (min-width: 768px) {
	.copy-btn i {
		width: 22px;
		height: 22px;
	}
}

/* Stats */
.stat-card {
	background-color: var(--card-bg);
	padding: 16px;
	border-radius: 16px;
	border: 1px solid var(--border-color);
	text-align: center;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

@media (min-width: 768px) {
	.stat-card {
		padding: 24px;
		border-radius: 24px;
	}
}

.stat-value {
	display: block;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-color);
	margin-bottom: 2px;
}

@media (min-width: 768px) {
	.stat-value {
		font-size: 1.875rem;
		margin-bottom: 4px;
	}
}

.stat-label {
	font-size: 8px;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: rgba(15, 57, 76, 0.4);
	font-weight: 900;
}

@media (min-width: 768px) {
	.stat-label {
		font-size: 10px;
	}
}

/* Tools Card */
.tools-card {
	background-color: var(--card-bg);
	padding: 24px;
	border-radius: 24px;
	border: 1px solid var(--border-color);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
	.tools-card {
		padding: 32px;
	}
}

.tools-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: rgba(15, 57, 76, 0.3);
	margin-bottom: 16px;
}

@media (min-width: 768px) {
	.tools-header {
		font-size: 12px;
		margin-bottom: 24px;
	}
}

.tools-header i {
	width: 14px;
	height: 14px;
}

.conversion-buttons {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem;
}

@media (min-width: 992px) {
	.conversion-buttons {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}
}

.tool-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px;
	border-radius: 12px;
	background-color: var(--bg-color);
	border: none;
	color: var(--text-color);
	font-weight: 600;
	transition: all 0.2s ease;
	width: 100%;
	text-align: left;
	font-size: 12px;
}

@media (min-width: 768px) {
	.tool-btn {
		padding: 16px;
		border-radius: 16px;
		font-size: 16px;
	}
}

.tool-btn:hover {
	background-color: var(--accent-color);
	color: white;
	transform: translateX(4px);
}

.tool-btn-content {
	display: flex;
	align-items: center;
	gap: 8px;
}

@media (min-width: 768px) {
	.tool-btn-content {
		gap: 16px;
	}
}

.tool-btn-content i {
	color: var(--accent-color);
	width: 16px;
	height: 16px;
	transition: color 0.2s ease;
}

@media (min-width: 768px) {
	.tool-btn-content i {
		width: 18px;
		height: 18px;
	}
}

.tool-btn:hover .tool-btn-content i {
	color: white;
}

.check-badge {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.2);
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.tool-btn-content svg {
	color: var(--accent-color);
}

@media (min-width: 768px) {
	.check-badge {
		display: flex;
	}
}

.tool-btn:hover .check-badge {
	opacity: 1;
}

.tool-btn:hover .tool-btn-content svg {
	color: var(--bg-color);
}


.check-badge i {
	width: 12px;
	height: 12px;
}

/* History Card */
.history-card {
	background-color: var(--text-color);
	padding: 32px;
	border-radius: 24px;
	color: white;
	box-shadow: 0 30px 60px rgba(15, 57, 76, 0.2);
}

.history-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: rgba(255, 255, 255, 0.4);
	margin-bottom: 0;
}

.clear-history-btn {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.4);
	padding: 4px;
	transition: color 0.2s ease;
}

.clear-history-btn:hover {
	color: white;
}

.history-item {
	width: 100%;
	text-align: left;
	padding: 16px;
	border-radius: 16px;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.7);
	transition: all 0.2s ease;
	cursor: pointer;
}

.history-item:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: white;
}

.history-text {
	font-size: 14px;
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.history-time {
	font-size: 10px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInScale {
	from {
		opacity: 0;
		transform: scale(0.98);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes fadeInRight {
	from {
		opacity: 0;
		transform: translateX(20px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.animate-in-up {
	animation: fadeInUp 0.6s ease-out forwards;
}

.animate-in-scale {
	animation: fadeInScale 0.6s ease-out forwards;
}

.animate-in-right {
	animation: fadeInRight 0.6s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.display-1 {
		font-size: 3rem;
	}

	.custom-textarea {
		height: 240px;
		padding: 20px;
		font-size: 1rem;
	}

	.floating-controls {
		bottom: 12px;
		right: 12px;
	}

	.control-btn {
		width: 44px;
		height: 44px;
		border-radius: 12px;
	}

	.copy-btn {
		padding: 0 20px;
		height: 44px;
		border-radius: 12px;
		font-size: 14px;
	}
}