:root {
	--brand-light: #f5fbff;
	--brand-dark: #0f394c;
	--brand-primary: #49b5e7;
	--brand-white: #fff;
	--font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

.content {
	background-color: var(--brand-light);
	color: var(--brand-dark);
}

.app-container {
	max-width: 1200px;
	margin: 0 auto;
}

.max-w-4xl {
	max-width: 896px;
}

/* Animations */
@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-fade-in-down {
	animation: fadeInDown 0.6s ease-out forwards;
}

.animate-slide-up {
	opacity: 0;
	animation: slideUp 0.6s ease-out forwards;
}

/* Header */
.brand-icon-box {
	background-color: var(--brand-primary);
}

.brand-title {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.025em;
	color: var(--brand-dark);
}

@media (min-width: 768px) {
	.brand-title {
		font-size: 3.5rem;
	}
}

.brand-subtitle {
	color: rgba(15, 57, 76, 0.6);
	font-size: 0.75rem;
	font-weight: 500;
}

@media (min-width: 768px) {
	.brand-subtitle {
		font-size: 0.875rem;
	}
}

/* Mode Toggle */
.mode-toggle-container {
	border-color: rgba(15, 57, 76, 0.05) !important;
}

.mode-btn {
	border: none;
	background: transparent;
	padding: 0.375rem 1rem;
	border-radius: 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	transition: all 0.2s;
	color: var(--brand-dark);
}

@media (min-width: 768px) {
	.mode-btn {
		padding: 0.5rem 1.5rem;
		border-radius: 0.75rem;
		font-size: 0.875rem;
	}
}

.mode-btn.active {
	background-color: var(--brand-primary);
	color: var(--brand-white);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.mode-btn:not(.active):hover {
	background-color: var(--brand-light);
}

.icon-btn {
	border: 1px solid rgba(15, 57, 76, 0.05);
	background-color: var(--brand-white);
	color: var(--brand-dark);
	transition: all 0.2s;
	cursor: pointer;
}

.icon-btn:hover {
	color: var(--brand-primary);
	transform: scale(1.1);
}

.icon-btn:active {
	transform: scale(0.95);
}

/* Panels */
.panel {
	background-color: var(--brand-white);
	border-color: rgba(15, 57, 76, 0.05) !important;
}

.input-panel {
	min-height: 220px;
}

@media (min-width: 768px) {
	.input-panel {
		height: 300px;
	}
}

.output-panel {
	background-color: var(--brand-dark) !important;
	min-height: 200px;
	color: var(--brand-white);
}

@media (min-width: 768px) {
	.output-panel {
		height: 300px;
	}
}

.panel-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(15, 57, 76, 0.4);
}

.panel-label-light {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.4);
}

.ghost-btn {
	background: transparent;
	border: none;
	color: rgba(15, 57, 76, 0.4);
	transition: color 0.2s;
}

.ghost-btn:hover {
	color: var(--brand-primary);
}

.ghost-btn-light {
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.4);
	transition: color 0.2s;
}

.ghost-btn-light:hover {
	color: var(--brand-primary);
}

.input-textarea {
	font-size: 1.125rem;
	font-family: var(--font-mono);
	color: var(--brand-dark);
	resize: none;
	outline: none;
}

@media (min-width: 768px) {
	.input-textarea {
		font-size: 1.5rem;
	}
}

.input-textarea::placeholder {
	color: rgba(15, 57, 76, 0.2);
}

.output-p {
	font-size: 1.125rem;
	line-height: 1.625;
	word-break: break-all;
}

@media (min-width: 768px) {
	.output-p {
		font-size: 1.5rem;
	}
}

.font-mono {
	font-family: var(--font-mono) !important;
}

.font-sans {
	font-family: var(--font-sans) !important;
}

.playback-overlay {
	background-color: var(--brand-primary);
	opacity: 0.15;
	pointer-events: none;
	transition: opacity 0.3s;
}

/* Morse Buttons */
.morse-btn {
	height: 3rem;
	background-color: var(--brand-light);
	border: none;
	border-radius: 0.75rem;
	font-weight: 700;
	transition: all 0.2s;
}

.morse-btn:hover {
	background-color: rgba(73, 181, 231, 0.1);
}

.morse-btn:active {
	transform: scale(0.95);
}

.flex-grow-1-5 {
	flex-grow: 1.5;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* Settings */
.settings-title {
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.range-label {
	font-size: 10px;
	font-weight: 700;
	color: rgba(15, 57, 76, 0.4);
	text-transform: uppercase;
}

.custom-range {
	-webkit-appearance: none;
	height: 6px;
	background: var(--brand-light);
	border-radius: 5px;
	outline: none;
}

.custom-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	background: var(--brand-primary);
	cursor: pointer;
	border-radius: 50%;
}

.primary-btn {
	background-color: var(--brand-primary);
	color: var(--brand-white);
	border: none;
	font-weight: 700;
	transition: all 0.2s;
}

.primary-btn:not(:disabled):hover {
	transform: scale(1.02);
}

.primary-btn:not(:disabled):active {
	transform: scale(0.98);
}

.primary-btn:disabled {
	opacity: 0.5;
}

/* Practice */
.practice-button {
	width: 9rem;
	height: 9rem;
	background-color: var(--brand-light);
	border: 4px solid rgba(15, 57, 76, 0.05);
	box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
	transition: all 0.2s;
	cursor: pointer;
	outline: none;
	touch-action: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
	.practice-button {
		width: 11rem;
		height: 11rem;
	}
}

.practice-button:active {
	transform: translateY(4px);
}

.practice-overlay {
	background-color: var(--brand-primary);
	opacity: 0;
	transition: opacity 0.1s;
}

.practice-button:active .practice-overlay {
	opacity: 0.05;
}

.practice-inner-circle {
	width: 4rem;
	height: 4rem;
	border: 1px solid rgba(15, 57, 76, 0.1);
	border-radius: 50%;
}

@media (min-width: 768px) {
	.practice-inner-circle {
		width: 5rem;
		height: 5rem;
	}
}

.practice-dot {
	width: 1rem;
	height: 1rem;
	background-color: rgba(15, 57, 76, 0.1);
	border-radius: 50%;
}

@media (min-width: 768px) {
	.practice-dot {
		width: 1.5rem;
		height: 1.5rem;
	}
}

.practice-instruction {
	bottom: 1rem;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: rgba(15, 57, 76, 0.3);
}

.practice-help-text {
	font-size: 10px;
	color: rgba(15, 57, 76, 0.4);
	font-weight: 500;
	max-width: 240px;
}

/* Info Section */
.info-section {
	background-color: rgba(15, 57, 76, 0.05);
}

.info-title {
	font-size: 1.125rem;
	font-weight: 700;
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.info-title {
		font-size: 1.25rem;
	}
}

.morse-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0.625rem;
	border-radius: 0.75rem;
	background-color: var(--brand-white);
	border: 1px solid rgba(15, 57, 76, 0.05);
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	transition: all 0.2s;
	min-width: 60px;
}

@media (min-width: 768px) {
	.morse-item {
		padding: 0.75rem;
		border-radius: 1rem;
	}
}

.morse-item:hover {
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.morse-char {
	font-weight: 800;
	font-size: 1.125rem;
	color: var(--brand-dark);
}

@media (min-width: 768px) {
	.morse-char {
		font-size: 1.25rem;
	}
}

.morse-code {
	font-family: var(--font-mono);
	font-size: 9px;
	color: var(--brand-primary);
	margin-top: 0.5rem;
	font-weight: 900;
	letter-spacing: 0.1em;
}

@media (min-width: 768px) {
	.morse-code {
		font-size: 0.75rem;
	}
}

.info-footer-text {
	font-size: 0.875rem;
	color: rgba(15, 57, 76, 0.6);
	line-height: 1.625;
}

/* Footer */
.text-footer {
	color: rgba(15, 57, 76, 0.3);
	font-size: 10px;
}

.footer-dots {
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

/* Utility */
.shadow-xl {
	box-shadow: 0 20px 25px -5px rgba(15, 57, 76, 0.05), 0 10px 10px -5px rgba(15, 57, 76, 0.04) !important;
}

.shadow-2xl {
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.z-index-10 {
	z-index: 10;
}

.inset-0 {
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.text-primary-brand {
	color: var(--brand-primary);
}

.bg-brand-dark {
	background-color: var(--brand-dark) !important;
}

.bg-brand-light {
	background-color: var(--brand-light) !important;
}

.bg-brand-primary {
	background-color: var(--brand-primary) !important;
}

.text-brand-dark {
	color: var(--brand-dark) !important;
}

.text-brand-primary {
	color: var(--brand-primary) !important;
}

.border-dashed {
	border-style: dashed !important;
}

.seo-badge {
	background-color: rgba(255, 255, 255, 0.1);
	color: white;
	font-weight: 500;
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	font-size: 0.7rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* SEO Section Adjustments */
.seo-section {
	line-height: 1.7;
}

.seo-section h2,
.seo-section h3,
.seo-section h4,
.seo-section h5 {
	color: var(--brand-dark);
}

.faq-section h4 {
	color: var(--brand-dark);
	border-left: 3px solid var(--brand-primary);
	padding-left: 1rem;
}

.extra-small {
	font-size: 0.75rem;
}

/* Scrollbar Hide */
.output-content::-webkit-scrollbar {
	display: none;
}

.output-content {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

table td {
	background-color: var(--brand-light) !important;
}