/* DDero customisations for tasks.ddero.com (Vikunja).
 * Served by nginx from /var/www/tasks.ddero.com/public and injected into every
 * HTML page by nginx (sub_filter) — nothing inside the Vikunja binary is changed,
 * so upgrades cannot undo it.
 *
 * Vazirmatn by Saber Rastikerdar — SIL Open Font License 1.1 (fonts/OFL.txt).
 * v33.0.3, the variable-weight build (100–900), byte-identical in the GitHub
 * release and the npm package.
 */
@font-face {
	font-family: 'Vazirmatn';
	src: url('/ddero-ui/fonts/Vazirmatn-wght.woff2') format('woff2-variations'),
	     url('/ddero-ui/fonts/Vazirmatn-wght.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* Persian UI: Vazirmatn everywhere (it carries its own Latin glyphs too), except
 * code, which keeps a monospace face. Vikunja sets <html lang> from the user's
 * language, so English users keep the stock fonts. */
html[lang^="fa"] body,
html[lang^="fa"] body :where(*:not(code, pre, kbd, samp, code *, pre *, svg, svg *)) {
	font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif !important;
}
/* Vikunja's headings use a light display face; Vazirmatn reads better a notch heavier. */
html[lang^="fa"] .title,
html[lang^="fa"] h1, html[lang^="fa"] h2, html[lang^="fa"] h3 {
	font-weight: 700;
}
/* Custom logo sizing in the header and login page. */
img.logo[src*="/ddero-ui/"] {
	block-size: 40px;
	inline-size: auto;
}

/* «اتصال تلگرام» dialog (ddero.js) */
.ddero-tg-overlay {
	position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, .45);
	display: flex; align-items: center; justify-content: center; padding: 16px;
}
.ddero-tg-modal {
	direction: rtl; text-align: start; font-family: 'Vazirmatn', Tahoma, sans-serif;
	background: var(--white, #fff); color: var(--text, #1f2937);
	border-radius: 14px; padding: 22px 24px; max-width: 480px; width: 100%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3); line-height: 1.8; font-size: 15px;
}
.ddero-tg-title { font-size: 18px; font-weight: 800; margin: 0 0 10px; }
.ddero-tg-modal p { margin: 0 0 8px; }
.ddero-tg-muted { opacity: .7; font-size: 13px; }
.ddero-tg-error { color: #dc2626; font-weight: 600; }
.ddero-tg-wait::before { content: '⏳ '; }
.ddero-tg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ddero-tg-btn {
	font: inherit; font-weight: 700; font-size: 14px; border-radius: 8px; padding: 8px 14px; cursor: pointer;
	border: 1px solid rgba(127, 127, 127, .35); background: transparent; color: var(--primary, #1973ff);
	text-decoration: none; display: inline-block;
}
.ddero-tg-btn.primary { background: #229ed9; border-color: #229ed9; color: #fff; }
.ddero-tg-btn.big { padding: 10px 18px; font-size: 15px; }
.ddero-tg-btn.danger { color: #dc2626; }
.ddero-tg-btn.ghost { margin-inline-start: auto; color: inherit; }
