:root {
	--bg: #050816;
	--bg-alt: #101827;
	--bg-card: #111827;
	--bg-card-soft: rgba(17, 24, 39, 0.9);
	--accent: #d4df3a;
	--accent-soft: rgba(212, 223, 58, 0.12);
	--text-main: #f9fafb;
	--text-muted: #9ca3af;
	--border-soft: rgba(148, 163, 184, 0.3);
	--danger: #f97373;
}

/* Light Theme Overrides */

body.theme-light {
	--bg: #f3f4f6;
	--bg-alt: #ffffff;
	--bg-card: #ffffff;
	--bg-card-soft: rgba(255, 255, 255, 0.98);
	--text-main: #111827;
	--text-muted: #6b7280;
	--border-soft: rgba(148, 163, 184, 0.5);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	min-height: 100vh;
	font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background:
			radial-gradient(circle at top left, #1f2937 0, #020617 40%, #000 100%);
	color: var(--text-main);
	-webkit-font-smoothing: antialiased;
}

body.theme-light {
	background:
			radial-gradient(circle at top left, #ffffff 0, #e5e7eb 45%, #d1d5db 100%);
}

.page {
	min-height: 100vh;
}

.container {
	width: min(1120px, 100% - 40px);
	margin: 0 auto;
	padding: 32px 0 40px;
}

/* Kopfbereich */

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

.brand {
	display: flex;
	align-items: center;
	gap: 18px;
}

.brand img {
	height: 40px;
	width: auto;
	display: block;
}

/* Standard: nur dunkles Logo */

.logo-dark {
	display: block !important;
}

.logo-light {
	display: none !important;
}

/* Light Theme Logo Umschaltung */

body.theme-light .logo-dark {
	display: none !important;
}

body.theme-light .logo-light {
	display: block !important;
}

.brand-title {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.brand-title h1 {
	margin: 0;
	font-size: 26px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Buttons */

.btn {
	border: none;
	outline: none;
	cursor: pointer;
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out, color 0.12s ease-out;
}

.btn.small {
	padding: 7px 14px;
	font-size: 12px;
}

.btn-primary {
	background: var(--accent);
	color: #111827;
	box-shadow:
			0 0 0 1px rgba(0, 0, 0, 0.3),
			0 18px 50px rgba(212, 223, 58, 0.25);
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 20px 60px rgba(212, 223, 58, 0.35);
	background: #e4ef4b;
}

.btn-ghost {
	background: transparent;
	color: var(--text-muted);
	box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.4);
}

.btn-ghost:hover {
	background: rgba(15, 23, 42, 0.9);
	color: var(--text-main);
	transform: translateY(-1px);
}

body.theme-light .btn-ghost:hover {
	background: rgba(243, 244, 246, 0.98);
}

.btn .icon {
	font-size: 16px;
}

/* Karten und Formular */

.card {
	border-radius: 20px;
	background:
			radial-gradient(circle at top left, rgba(212, 223, 58, 0.05), transparent 55%),
			radial-gradient(circle at bottom right, rgba(148, 163, 184, 0.12), transparent 55%),
			var(--bg-card-soft);
	padding: 22px 24px 20px;
	border: 1px solid var(--border-soft);
	box-shadow:
			0 22px 60px rgba(15, 23, 42, 0.9),
			0 0 0 1px rgba(15, 23, 42, 1);
	margin-bottom: 26px;
	overflow: hidden;
}

body.theme-light .card {
	box-shadow:
			0 18px 40px rgba(148, 163, 184, 0.35),
			0 0 0 1px rgba(209, 213, 219, 0.9);
}

.card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.card-header h2 {
	margin: 0;
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
}

.card-header span {
	font-size: 12px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

/* zwei Spalten */

.card-body {
	display: grid;
	grid-template-columns: minmax(0, 2.1fr) minmax(0, 3fr);
	column-gap: 18px;
	row-gap: 8px;
	align-items: flex-start;
	min-width: 0;
}

.field-column {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.field-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.field-hint {
	display: block;
	font-size: 11px;
	color: var(--text-muted);
	margin-top: 2px;
}

label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--text-muted);
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="file"],
textarea,
select {
	width: 100%;
	max-width: 100%;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.5);
	background: rgba(15, 23, 42, 0.9);
	color: var(--text-main);
	font-size: 15px;
	padding: 12px 14px;
	outline: none;
	transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body.theme-light input[type="text"],
body.theme-light input[type="date"],
body.theme-light input[type="time"],
body.theme-light input[type="file"],
body.theme-light textarea,
body.theme-light select {
	background: rgba(255, 255, 255, 0.96);
	border-color: rgba(148, 163, 184, 0.7);
}

input[type="date"],
input[type="time"] {
	-webkit-appearance: none;
	appearance: none;
	max-width: 100%;
	min-height: 44px;
}

.datetime-row input[type="date"],
.datetime-row input[type="time"] {
	min-width: 0;
	max-width: 100%;
}

textarea {
	border-radius: 16px;
	min-height: 100px;
	resize: vertical;
	line-height: 1.5;
}

select {
	-webkit-appearance: none;
	appearance: none;
	background-position: right 12px center;
	background-repeat: no-repeat;
	padding-right: 34px;
}

input::file-selector-button {
	border: none;
	border-radius: 999px;
	background: rgba(31, 41, 55, 0.9);
	color: var(--text-main);
	padding: 6px 12px;
	margin-right: 10px;
	cursor: pointer;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

body.theme-light input::file-selector-button {
	background: rgba(243, 244, 246, 0.98);
	color: #111827;
}

input::placeholder,
textarea::placeholder {
	color: rgba(148, 163, 184, 0.75);
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px rgba(212, 223, 58, 0.5);
	background: rgba(15, 23, 42, 1);
}

body.theme-light input:focus,
body.theme-light textarea:focus,
body.theme-light select:focus {
	background: #ffffff;
}

.datetime-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	min-width: 0;
}

.card-footer {
	margin-top: 10px;
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

/* Badge */

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	padding: 4px 9px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	background: rgba(15, 23, 42, 0.95);
	border: 1px solid rgba(148, 163, 184, 0.6);
	color: var(--text-muted);
}

body.theme-light .badge {
	background: rgba(243, 244, 246, 0.98);
}

.badge span {
	white-space: nowrap;
}

.badge-dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Status Pill */

.status-pill {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	margin-bottom: 4px;
	border: 1px solid transparent;
}

.status-low {
	background: rgba(22, 163, 74, 0.16);
	color: #4ade80;
	border-color: rgba(34, 197, 94, 0.6);
}

.status-middel {
	background: rgba(234, 179, 8, 0.14);
	color: #facc15;
	border-color: rgba(234, 179, 8, 0.6);
}

.status-kritisch {
	background: rgba(248, 113, 113, 0.16);
	color: #fb7185;
	border-color: rgba(248, 113, 113, 0.7);
}

/* Timeline Container */

.timeline-wrapper {
	border-radius: 22px;
	background:
			radial-gradient(circle at top right, rgba(212, 223, 58, 0.03), transparent 60%),
			radial-gradient(circle at bottom left, rgba(148, 163, 184, 0.10), transparent 55%),
			rgba(15, 23, 42, 0.92);
	border: 1px solid var(--border-soft);
	box-shadow:
			0 22px 60px rgba(15, 23, 42, 0.95),
			0 0 0 1px rgba(15, 23, 42, 1);
	padding: 22px 24px 18px;
	position: relative;
}

body.theme-light .timeline-wrapper {
	background:
			radial-gradient(circle at top right, rgba(212, 223, 58, 0.06), transparent 60%),
			rgba(249, 250, 251, 0.98);
	box-shadow:
			0 18px 40px rgba(148, 163, 184, 0.35),
			0 0 0 1px rgba(209, 213, 219, 0.9);
}

.timeline-header-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 10px;
}

.timeline-header-row h3 {
	margin: 0;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
}

.timeline-subtitle {
	font-size: 12px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.timeline-scroll {
	margin-top: 8px;
	max-height: calc(100vh - 320px);
	min-height: 220px;
	overflow-y: auto;
	padding-right: 8px;
}

.timeline-scroll::-webkit-scrollbar {
	width: 6px;
}

.timeline-scroll::-webkit-scrollbar-track {
	background: rgba(15, 23, 42, 0.8);
}

body.theme-light .timeline-scroll::-webkit-scrollbar-track {
	background: rgba(229, 231, 235, 0.9);
}

.timeline-scroll::-webkit-scrollbar-thumb {
	background: rgba(148, 163, 184, 0.6);
	border-radius: 999px;
}

/* Timeline Linie */

.timeline {
	position: relative;
	padding: 30px 0 12px;
}

.timeline::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	transform: translateX(-50%);
	background: linear-gradient(
			to bottom,
			rgba(148, 163, 184, 0.0) 0%,
			rgba(148, 163, 184, 0.9) 10%,
			rgba(212, 223, 58, 1) 50%,
			rgba(148, 163, 184, 0.9) 90%,
			rgba(148, 163, 184, 0.0) 100%
	);
	border-radius: 999px;
	opacity: 0.72;
}

.timeline-empty {
	text-align: center;
	color: var(--text-muted);
	font-size: 14px;
	padding: 32px 10px;
}

/* Timeline Einträge */

.timeline-item {
	position: relative;
	width: 100%;
	margin-bottom: 30px;
}

.timeline-item-inner {
	width: 50%;
	padding: 0 40px;
	position: relative;
}

/* Verbindungslinien vom Punkt zur Karte */

.timeline-item:nth-child(odd) .timeline-item-inner::before {
	content: '';
	position: absolute;
	top: 26px;
	right: -24px;
	width: 24px;
	height: 2px;
	background: linear-gradient(to right, rgba(148,163,184,0.0), rgba(148,163,184,0.9));
}

.timeline-item:nth-child(even) .timeline-item-inner::before {
	content: '';
	position: absolute;
	top: 26px;
	left: -24px;
	width: 24px;
	height: 2px;
	background: linear-gradient(to left, rgba(148,163,184,0.0), rgba(148,163,184,0.9));
}

/* links rechts wechseln */

.timeline-item:nth-child(odd) .timeline-item-inner {
	margin-left: 0;
	margin-right: auto;
	text-align: right;
}

.timeline-item:nth-child(even) .timeline-item-inner {
	margin-left: auto;
	margin-right: 0;
	text-align: left;
}

/* Punkt auf der Linie */

.timeline-item::before {
	content: '';
	position: absolute;
	top: 26px;
	left: 50%;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: var(--accent);
	box-shadow:
			0 0 0 4px var(--accent-soft),
			0 0 0 1px rgba(0, 0, 0, 0.8);
	transform: translate(-50%, -50%);
}

/* Fokus Eintrag */

.timeline-item-focus::before {
	box-shadow:
			0 0 0 6px rgba(212, 223, 58, 0.45),
			0 0 0 1px rgba(0, 0, 0, 0.9);
}

.timeline-item-focus .timeline-card {
	border-color: var(--accent);
	box-shadow:
			0 18px 48px rgba(212, 223, 58, 0.25),
			0 0 0 1px rgba(15, 23, 42, 0.95);
}

/* Box mit Datum und Zeit */

.timeline-timebadge {
	position: absolute;
	top: 26px;
	transform: translateY(-50%);
	padding: 6px 12px;
	border-radius: 12px;
	background: rgba(15, 23, 42, 0.98);
	border: 1px solid rgba(148, 163, 184, 0.7);
	color: var(--text-main);
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
}

body.theme-light .timeline-timebadge {
	background: rgba(255, 255, 255, 0.98);
}

.timeline-timebadge-date {
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
}

.timeline-timebadge-time {
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-main);
}

.timeline-item:nth-child(odd) .timeline-timebadge {
	left: 50%;
	margin-left: 24px;
	text-align: left;
}

.timeline-item:nth-child(even) .timeline-timebadge {
	right: 50%;
	margin-right: 24px;
	text-align: right;
}

/* Verbindung zwischen Punkt und Timebadge */

.timeline-timebadge::before {
	content: '';
	position: absolute;
	top: 50%;
	width: 16px;
	height: 2px;
	background: rgba(148, 163, 184, 0.9);
}

.timeline-item:nth-child(odd) .timeline-timebadge::before {
	right: 100%;
}

.timeline-item:nth-child(even) .timeline-timebadge::before {
	left: 100%;
}

/* Karten am Zeitstrahl */

.timeline-card {
	display: block;
	max-width: 460px;
	background: rgba(15, 23, 42, 0.96);
	padding: 10px 13px 11px;
	border-radius: 16px;
	border: 1px solid rgba(148, 163, 184, 0.55);
	box-shadow:
			0 14px 38px rgba(15, 23, 42, 0.95),
			0 0 0 1px rgba(15, 23, 42, 0.95);
	text-align: left;
}

body.theme-light .timeline-card {
	background: #ffffff;
	box-shadow:
			0 14px 30px rgba(148, 163, 184, 0.4),
			0 0 0 1px rgba(209, 213, 219, 0.9);
}

.timeline-card-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 4px;
}

.timeline-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

/* Icon Buttons */

.icon-btn {
	border-radius: 999px;
	border: none;
	background: transparent;
	padding: 3px 6px;
	font-size: 14px;
	cursor: pointer;
	color: var(--text-muted);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.icon-btn.danger {
	color: var(--text-muted);
}

.icon-btn:hover {
	background: rgba(15, 23, 42, 0.95);
	color: var(--text-main);
	transform: translateY(-1px);
}

body.theme-light .icon-btn:hover {
	background: rgba(243, 244, 246, 0.98);
}

.icon-btn.danger:hover {
	color: var(--danger);
}

.inline-form {
	display: inline;
	margin: 0;
	padding: 0;
}

.timeline-text {
	font-size: 16px;
	line-height: 1.6;
	margin-top: 4px;
}

.timeline-text p {
	margin: 0;
}

.timeline-text p + p {
	margin-top: 8px;
}

/* PIN Error und Modal */

.pin-error {
	margin-top: 6px;
	font-size: 13px;
	color: #fb7185;
}

.pin-lock-info {
	font-size: 14px;
	color: var(--text-muted);
	text-align: center;
	margin-bottom: 12px;
}

.pin-hint {
	font-size: 13px;
	color: var(--text-muted);
	text-align: center;
	margin-bottom: 10px;
}

/* PIN Overlay */

.pin-overlay {
	position: fixed;
	inset: 0;
	background: rgba(3, 7, 18, 0.85);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 70;
	backdrop-filter: blur(12px);
}

body.theme-light .pin-overlay {
	background: rgba(15, 23, 42, 0.3);
}

.pin-overlay.visible {
	display: flex;
}

.pin-modal {
	width: min(420px, 100% - 48px);
	background:
			radial-gradient(circle at top center, rgba(212, 223, 58, 0.16), transparent 55%),
			rgba(15, 23, 42, 0.98);
	border-radius: 24px;
	border: 1px solid rgba(148, 163, 184, 0.8);
	box-shadow:
			0 32px 80px rgba(0, 0, 0, 0.95),
			0 0 0 1px rgba(15, 23, 42, 1);
	padding: 22px 22px 18px;
}

body.theme-light .pin-modal {
	background:
			radial-gradient(circle at top center, rgba(212, 223, 58, 0.18), transparent 55%),
			#ffffff;
	box-shadow:
			0 24px 60px rgba(148, 163, 184, 0.45),
			0 0 0 1px rgba(209, 213, 219, 0.95);
}

.pin-modal-header {
	margin-bottom: 16px;
}

.pin-modal-header h4 {
	margin: 0;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
}

.pin-modal-header span {
	font-size: 11px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.pin-modal-body {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.pin-box-row {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-bottom: 6px;
}

.pin-digit-input {
	width: 56px;
	height: 64px;
	border-radius: 16px;
	border: 1px solid rgba(148, 163, 184, 0.75);
	background: rgba(15, 23, 42, 0.96);
	color: var(--text-main);
	text-align: center;
	font-size: 28px;
	font-weight: 500;
	outline: none;
	transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.05s ease;
}

body.theme-light .pin-digit-input {
	background: rgba(255, 255, 255, 0.98);
}

.pin-digit-input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 2px rgba(212, 223, 58, 0.5);
	transform: translateY(-1px);
}

.pin-digit-input:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.pin-modal-footer {
	margin-top: 10px;
	display: flex;
	justify-content: center;
}

/* Filter Overlay */

.search-overlay {
	position: fixed;
	inset: 0;
	background: rgba(3, 7, 18, 0.82);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease-out;
	z-index: 50;
	backdrop-filter: blur(10px);
}

body.theme-light .search-overlay {
	background: rgba(15, 23, 42, 0.25);
}

.search-overlay.visible {
	opacity: 1;
	pointer-events: auto;
}

.search-modal {
	width: min(520px, 100% - 48px);
	background:
			radial-gradient(circle at top center, rgba(212, 223, 58, 0.12), transparent 55%),
			rgba(15, 23, 42, 0.98);
	border-radius: 24px;
	border: 1px solid rgba(148, 163, 184, 0.75);
	box-shadow:
			0 32px 80px rgba(0, 0, 0, 0.9),
			0 0 0 1px rgba(15, 23, 42, 1);
	padding: 22px 22px 18px;
	position: relative;
}

body.theme-light .search-modal {
	background:
			radial-gradient(circle at top center, rgba(212, 223, 58, 0.18), transparent 55%),
			#ffffff;
	box-shadow:
			0 24px 60px rgba(148, 163, 184, 0.45),
			0 0 0 1px rgba(209, 213, 219, 0.95);
}

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

.search-modal-header h4 {
	margin: 0;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
}

.search-modal-header span {
	font-size: 11px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.search-close {
	background: transparent;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	font-size: 18px;
	padding: 4px;
	border-radius: 999px;
	transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.search-close:hover {
	background: rgba(15, 23, 42, 0.92);
	color: var(--text-main);
	transform: translateY(-1px);
}

body.theme-light .search-close:hover {
	background: rgba(243, 244, 246, 0.98);
}

.search-fields {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}

.search-row {
	display: grid;
	grid-template-columns: minmax(0, 3.5fr) minmax(0, 2fr);
	gap: 10px;
}

.search-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.search-footer a {
	font-size: 12px;
	color: var(--text-muted);
	text-decoration: none;
}

.search-footer a:hover {
	color: var(--accent);
}

.search-btn-submit {
	padding-inline: 16px;
}

/* Bild Modal */

.image-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.78);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease-out;
	z-index: 60;
	backdrop-filter: blur(10px);
}

body.theme-light .image-modal-overlay {
	background: rgba(15, 23, 42, 0.7);
}

.image-modal-overlay.visible {
	opacity: 1;
	pointer-events: auto;
}

.image-modal {
	max-width: min(900px, 100% - 40px);
	max-height: min(80vh, 100% - 80px);
	background: rgba(17, 24, 39, 0.96);
	border-radius: 20px;
	border: 1px solid rgba(148, 163, 184, 0.8);
	box-shadow:
			0 32px 80px rgba(0, 0, 0, 0.9),
			0 0 0 1px rgba(15, 23, 42, 1);
	position: relative;
	padding: 12px 12px 16px;
	display: flex;
	flex-direction: column;
}

body.theme-light .image-modal {
	background: #ffffff;
	box-shadow:
			0 28px 70px rgba(148, 163, 184, 0.5),
			0 0 0 1px rgba(209, 213, 219, 0.95);
}

.image-modal-close {
	position: absolute;
	top: 8px;
	right: 10px;
	background: transparent;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	font-size: 20px;
	padding: 4px;
	border-radius: 999px;
	transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.image-modal-close:hover {
	background: rgba(15, 23, 42, 0.92);
	color: var(--text-main);
	transform: translateY(-1px);
}

body.theme-light .image-modal-close:hover {
	background: rgba(243, 244, 246, 0.98);
}

.image-modal-content {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 16px;
}

.image-modal-content img {
	max-width: 100%;
	max-height: 70vh;
	display: block;
	border-radius: 12px;
	border: 1px solid rgba(148, 163, 184, 0.6);
}

/* Mobil */

@media (max-width: 900px) {
	.card-body {
		grid-template-columns: 1fr;
	}

	.datetime-row {
		grid-template-columns: 1fr;
	}

	.datetime-row input[type="date"],
	.datetime-row input[type="time"] {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		display: block;
	}

	.search-row {
		grid-template-columns: 1fr;
	}

	.card-footer {
		justify-content: flex-start;
	}

	.timeline-scroll {
		max-height: none;
	}

	.timeline-item-inner {
		width: 100%;
		padding-left: 54px;
		padding-right: 12px;
	}

	.pin-digit-input {
		width: 52px;
		height: 60px;
	}
}

@media (max-width: 780px) {
	.header {
		flex-direction: column;
		align-items: flex-start;
	}

	.timeline::before {
		left: 16px;
		transform: none;
	}

	.timeline-item-inner {
		text-align: left !important;
		margin: 0 !important;
	}

	.timeline-item::before {
		left: 16px;
	}

	.timeline-card {
		max-width: none;
	}

	.timeline-item-inner::before {
		left: 32px;
		right: auto;
		width: 24px;
	}

	.timeline-item:nth-child(even) .timeline-item-inner::before {
		left: 32px;
	}

	.timeline-timebadge {
		left: 32px;
		right: auto;
		margin-left: 12px;
		margin-right: 0;
	}

	.timeline-timebadge::before {
		left: -16px;
		right: auto;
	}
}

@media (max-width: 520px) {
	.card {
		padding: 18px 16px 16px;
	}

	.timeline-wrapper {
		padding: 18px 16px 14px;
	}

	.brand img {
		height: 32px;
	}

	.brand-title h1 {
		font-size: 22px;
	}

	.card-header h2,
	.timeline-header-row h3 {
		font-size: 14px;
	}

	label {
		font-size: 10px;
	}

	input[type="text"],
	input[type="date"],
	input[type="time"],
	input[type="file"],
	textarea,
	select {
		font-size: 14px;
	}

	.badge {
		font-size: 10px;
	}

	.timeline-text {
		font-size: 15px;
	}

	.pin-digit-input {
		width: 48px;
		height: 56px;
		font-size: 24px;
	}
}
