/* Online Tools — shared widget styles. Scoped under .ot-tool to avoid theme clashes. */
.ot-tool {
	--ot-accent: #2563eb;
	--ot-border: #e2e8f0;
	--ot-muted: #64748b;
	box-sizing: border-box;
	max-width: 640px;
	margin: 1.5em auto;
	padding: 1.5em;
	border: 1px solid var(--ot-border);
	border-radius: 12px;
	background: #fff;
	font-size: 16px;
	line-height: 1.5;
	color: #1e293b;
}
.ot-tool *, .ot-tool *::before, .ot-tool *::after { box-sizing: border-box; }

.ot-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	margin-bottom: 12px;
}
.ot-row > label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.85em;
	font-weight: 600;
	color: var(--ot-muted);
	flex: 1 1 120px;
	min-width: 0;
}
.ot-row > input[type="text"] { flex: 1 1 200px; }

.ot-tool input[type="text"],
.ot-tool input[type="number"],
.ot-tool input[type="date"],
.ot-tool select,
.ot-tool textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--ot-border);
	border-radius: 8px;
	font: inherit;
	color: inherit;
	background: #fff;
}
.ot-tool textarea { resize: vertical; margin-bottom: 12px; }
.ot-tool input:focus, .ot-tool select:focus, .ot-tool textarea:focus {
	outline: 2px solid var(--ot-accent);
	outline-offset: -1px;
	border-color: var(--ot-accent);
}

.ot-check {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 6px;
	font-size: 0.9em;
	font-weight: 500;
	cursor: pointer;
}
.ot-check input { width: auto !important; }
.ot-wrap { row-gap: 6px; }

.ot-btn {
	display: inline-block;
	padding: 10px 22px;
	border: 0;
	border-radius: 8px;
	background: var(--ot-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s;
}
.ot-btn:hover { filter: brightness(1.1); }
.ot-btn:disabled { opacity: 0.6; cursor: wait; }
.ot-ghost {
	background: transparent;
	color: var(--ot-accent);
	border: 1px solid var(--ot-accent);
}

.ot-output {
	margin: 14px 0 8px;
	padding: 14px;
	border-radius: 8px;
	background: #f8fafc;
	word-break: break-all;
	min-height: 1.5em;
}
.ot-output:empty { display: none; }
.ot-big { font-size: 1.5em; font-weight: 700; text-align: center; }
.ot-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.ot-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}
.ot-stat {
	flex: 1 1 100px;
	text-align: center;
	padding: 12px 8px;
	background: #f8fafc;
	border-radius: 8px;
}
.ot-stat b { display: block; font-size: 1.4em; color: var(--ot-accent); }
.ot-stat span { font-size: 0.8em; color: var(--ot-muted); }

.ot-muted { color: var(--ot-muted); }
.ot-small { font-size: 0.8em; margin-top: 10px; }
.ot-error { color: #dc2626; font-weight: 600; margin-top: 10px; }
.ot-subtitle { margin: 18px 0 8px; font-size: 1em; }
.ot-label { font-size: 0.85em; font-weight: 600; color: var(--ot-muted); }
.ot-full { width: 100%; margin-bottom: 12px; }
.ot-at { font-weight: 700; font-size: 1.2em; align-self: center; }

/* password strength */
.ot-strength {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 10px;
	font-size: 0.85em;
	color: var(--ot-muted);
}
.ot-strength-bar {
	display: block;
	height: 6px;
	width: 0;
	max-width: 160px;
	flex: 0 1 160px;
	border-radius: 3px;
	background: #e05252;
	transition: width 0.3s;
}

/* temp mail */
.ot-tm-addr-row { display: flex; gap: 8px; margin: 6px 0 10px; }
.ot-tm-addr-row input { flex: 1; }
.ot-tm-actions { display: flex; gap: 8px; }
.ot-tm-list { list-style: none; margin: 0; padding: 0; }
.ot-tm-list li { border: 1px solid var(--ot-border); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.ot-tm-msg-head {
	display: flex;
	flex-direction: column;
	padding: 10px 12px;
	cursor: pointer;
	gap: 2px;
}
.ot-tm-msg-head:hover { background: #f8fafc; }
.ot-tm-msg-from { font-size: 0.8em; color: var(--ot-muted); }
.ot-tm-msg-subj { font-weight: 600; }
.ot-tm-msg-body {
	padding: 10px 12px;
	border-top: 1px solid var(--ot-border);
	white-space: pre-wrap;
	word-break: break-word;
	font-size: 0.9em;
	max-height: 300px;
	overflow: auto;
}

/* social counter */
.ot-sc-result { text-align: center; margin-top: 16px; }
.ot-sc-main .ot-big { display: block; font-size: 2.2em; color: var(--ot-accent); }
.ot-sc-extra { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }

/* username generator */
.ot-un-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ot-un-item {
	padding: 8px 14px;
	background: #f8fafc;
	border: 1px solid var(--ot-border);
	border-radius: 999px;
	cursor: pointer;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
	transition: background 0.15s;
}
.ot-un-item:hover { background: #eef2ff; border-color: var(--ot-accent); }
.ot-un-copied { background: #dcfce7 !important; border-color: #3aa76d !important; }

/* QR */
.ot-qr-out { display: flex; justify-content: center; margin: 16px 0 10px; }
.ot-qr-out img, .ot-qr-out canvas { max-width: 100%; height: auto; }

/* all-tools page */
.ot-title { text-align: center; margin: 1.2em 0 0.2em; }
.ot-all .ot-section { margin-bottom: 2.5em; }
.ot-all .ot-tool { margin-top: 0.8em; }

/* RTL support */
.ot-tool[dir="rtl"] .ot-row { direction: rtl; }

@media (max-width: 480px) {
	.ot-tool { padding: 1em; }
	.ot-row { flex-direction: column; align-items: stretch; }
	.ot-row > label { flex: 1 1 auto; }
}
