/* --- JETBRAINS MONO --- */
@font-face {
  font-display: swap;
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  src: url('jetbrains-mono-v24-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  src: url('jetbrains-mono-v24-latin-600.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 800;
  src: url('jetbrains-mono-v24-latin-800.woff2') format('woff2');
}

/* roboto-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('roboto-v50-latin-regular.woff2') format('woff2');
}
/* roboto-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('roboto-v50-latin-700.woff2') format('woff2');
}


:root {
	--ink: #000;
	--paper: #fff;
	--border-thick: 3px solid var(--ink);
	--border-thin: 1px solid var(--ink);
}

* {
	box-sizing: border-box;
	-webkit-print-color-adjust: exact; 
	print-color-adjust: exact;
}

body {
	margin: 0;
	padding: 0;
	background-color: #888;
	font-family: 'JetBrains Mono', monospace;
}

.page {
	width: 210mm;
	height: 297mm;
	background: var(--paper);
	margin: 20px auto;
	padding: 15mm;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* HEADER */
header {
	border-bottom: var(--border-thick);
	padding-bottom: 5px;
	margin-bottom: 15px;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}

h1 {
	font-family: 'Roboto', sans-serif;
	font-size: 36pt;
	margin: 0;
	line-height: 0.9;
	text-transform: uppercase;
	letter-spacing: -1px;
}

.subtitle {
	font-size: 10pt;
	font-weight: bold;
	background: #000;
	color: #fff;
	padding: 2px 5px;
	display: inline-block;
	margin-bottom: 5px;
}

.meta-data {
	text-align: right;
	font-size: 9pt;
	line-height: 1.3;
}

/* WEEK INPUT */
.week-section {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	font-size: 10pt;
	font-weight: bold;
}
.week-line {
	border-bottom: 1px dashed #000;
	flex-grow: 1;
	margin-left: 10px;
	margin-top: 16px;
}

/* GRID SYSTEM */
.grid-container {
	display: grid;
	grid-template-columns: 1fr 1fr; /* 2 Coloane egale */
	grid-template-rows: auto auto auto auto; /* 4 Rânduri */
	gap: 15px;
	flex-grow: 1;
}

.module {
	border: var(--border-thick);
	padding: 10px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 120px; /* Asigură uniformitate */
}

.module::after {
	content: '';
	position: absolute;
	top: -4px; right: -4px;
	width: 10px; height: 10px;
	border-top: 4px solid #000;
	border-right: 4px solid #000;
}

.module h3 {
	font-family: 'Roboto', sans-serif;
	margin: 0;
	font-size: 14pt;
	border-bottom: 2px solid #000;
	display: inline-block;
	padding-right: 10px;
	margin-bottom: 5px;
}

.module p {
	/*font-size: 12pt;*/
	margin: 0 0 8px 0;
	line-height: 1.2;
	flex-grow: 1;
}

/* TRACKER 7 ZILE */
.tracker-row {
	display: flex;
	justify-content: space-between;
	border-top: 1px dotted #000;
	padding-top: 5px;
}

.day-slot { text-align: center; }

.check-box {
	width: 22px;
	height: 22px;
	border: 2px solid #000;
	background: #fff;
	margin-bottom: 2px;
}

.day-label {
	/*font-size: 6pt;*/
	font-weight: bold;
	color: #555;
}

/* MANIFESTO MODULE STYLE */
.manifesto-module {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	background: repeating-linear-gradient(
		45deg,
		#fff,
		#fff 10px,
		#f0f0f0 10px,
		#f0f0f0 20px
	);
}

.manifesto-module h2 {
	font-family: 'Roboto', sans-serif;
	font-size: 18pt;
	margin: 0;
	letter-spacing: 1px;
	line-height: 1.1;
}

.manifesto-module p {
	/*font-size: 8pt;*/
	font-style: italic;
	margin-top: 5px;
	flex-grow: 0;
}

.manifesto-link {
	font-size: 8pt;
	margin-top: 10px;
	font-weight: bold;
}

/* FOOTER SCORING */
.footer-score {
	margin-top: 15px;
	border: var(--border-thick);
	padding: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #ddd;
	color: #333;
}

.footer-score .text {
	font-size: 9pt;
}

.footer-score strong {
	color: #000;
	/*text-decoration: underline;*/
}

.rank-box {
	background: #fff;
	color: #000;
	padding: 5px 15px;
	font-weight: bold;
	font-family: 'Roboto', sans-serif;
	font-size: 14pt;
	border: 2px solid #fff;
}

@media print {
	body { background: none; }
	.page { margin: 0; box-shadow: none; height: 100vh; width: 100%; border: none; }
	.lang-selector { display: none; }
}

.header-top-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.lang-selector {
    display: flex;
    gap: 5px;
}

.lang-selector a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8pt;
    text-decoration: none;
    color: #000;
    border: 1px solid #000;
    padding: 2px 5px;
    line-height: 1.4;
	margin-bottom: 5px;
}

.lang-selector a.active {
    background: #000;
    color: #fff;
}

.lang-selector a:hover:not(.active) {
    background: #ddd;
}

