* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: #0b1220;
	color: white;
	font-family: Inter, Arial, sans-serif;
	display: flex;
	justify-content: center;
}

/* ===================================== */
/* LAYOUT */
/* ===================================== */

.container {
	width: 50%;
	min-width: 950px;
	padding: 35px 0 60px;
}

/* ===================================== */
/* HEADER */
/* ===================================== */

.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
}

.logo {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.stats {
	display: flex;
	gap: 16px;
	opacity: 0.7;
	font-size: 13px;
}

/* ===================================== */
/* CARDS */
/* ===================================== */

.card,
.response-card {
	background: #111827;
	border: 1px solid #1f2937;
	border-radius: 16px;
	padding: 18px;
	margin-bottom: 18px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

/* ===================================== */
/* INPUTS */
/* ===================================== */

input,
textarea {
	width: 100%;
	background: #0f172a;
	color: white;
	border: 1px solid #1f2937;
	border-radius: 12px;
	padding: 12px 14px;
	margin-bottom: 12px;
	font-size: 14px;
	transition: 0.15s;
}

input:focus,
textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

textarea {
	height: 280px;
	resize: vertical;
	line-height: 1.6;
}

/* ===================================== */
/* TOOLBAR */
/* ===================================== */

.toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 6px;
}

.modes {
	display: flex;
	gap: 8px;
}

/* ===================================== */
/* BUTTONS */
/* ===================================== */

button {
	border: none;
	border-radius: 10px;
	padding: 10px 14px;
	cursor: pointer;
	background: #1f2937;
	color: white;
	font-size: 13px;
	transition: 0.15s;
}

button:hover {
	transform: translateY(-1px);
	opacity: 0.92;
}

button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

button.active {
	background: #2563eb;
}

.primary {
	background: #22c55e;
	margin-left: 10px;
}

.danger {
	background: #dc2626;
}

/* ===================================== */
/* RESPONSE */
/* ===================================== */

.response-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
}

.response-actions {
	display: flex;
	gap: 8px;
}

#status {
	font-size: 13px;
	opacity: 0.7;
}

.output {
	min-height: 220px;
	line-height: 1.75;
	white-space: pre-wrap;
	word-break: break-word;
	color: #f3f4f6;
	font-size: 15px;
}

/* ===================================== */
/* EMPTY STATE */
/* ===================================== */

.empty {
	opacity: 0.4;
	font-style: italic;
}

/* ===================================== */
/* FOOTER */
/* ===================================== */

.footer {
	text-align: center;
	opacity: 0.4;
	font-size: 12px;
	margin-top: 10px;
}