/* ═══════════════════════════════════════════════════════════
   Catch Free Dates - Основни стилове
   Тъмна тема по подразбиране
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
	--bg: #0f172a;
	--bg-secondary: #1e293b;
	--card-bg: #1e293b;
	--text: #f1f5f9;
	--text-secondary: #94a3b8;
	--muted: #64748b;
	--border: #334155;
	--border-hover: #fbbf24;
	--accent: #818cf8;
	--accent-hover: #6366f1;
	--shadow: 0 1px 3px rgba(0,0,0,0.3);
	--shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
	--radius: 12px;
	--radius-sm: 8px;
	--transition: 0.2s ease;

	/* Статуси */
	--free: #4ade80;
	--free-bg: rgba(74,222,128,0.15);
	--busy: #f87171;
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

body {
	font-family: Tahoma, -apple-system, BlinkMacSystemFont, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.5;
	min-height: 100vh;
	transition: background var(--transition), color var(--transition);
}

#app-version {
	z-index: 11111;
	position: absolute;
	color: #aaa;
	bottom: 0;
	font-size: .7em;
	padding: 1em;
	left: 50%;
	transform: translateX(-50%);
}

/* ─── Login Page ────────────────────────────────────────── */
.login-page {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 1rem;
}

.login-container {
	width: 100%;
	max-width: 400px;
}

.login-card {
	background: var(--card-bg);
	border-radius: var(--radius);
	padding: 2.5rem;
	box-shadow: var(--shadow-lg);
	text-align: center;
}

.login-logo svg {
	width: 64px;
	height: 64px;
	color: var(--accent);
	margin-bottom: 1rem;
}

.login-card h1 {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.login-subtitle {
	color: var(--text-secondary);
	font-size: 0.9rem;
	margin-bottom: 2rem;
}

.form-group {
	margin-bottom: 1.25rem;
	text-align: left;
}

.form-group label {
	display: block;
	font-size: 0.85rem;
	font-weight: 500;
	margin-bottom: 0.4rem;
	color: var(--text-secondary);
}

.form-group input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg);
	color: var(--text);
	font-size: 1rem;
	font-family: inherit;
	transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.form-group input.error {
	border-color: var(--busy);
}

.field-hint {
	display: block;
	font-size: 0.75rem;
	color: var(--muted);
	margin-top: 0.25rem;
}

.field-error {
	display: block;
	font-size: 0.8rem;
	color: var(--busy);
	margin-top: 0.25rem;
	min-height: 1.2em;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: var(--radius-sm);
	font-size: 1rem;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: all var(--transition);
}

.btn-primary {
	background: var(--accent);
	color: white;
}

.btn-primary:hover {
	background: var(--accent-hover);
}

.btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.btn-outline {
	background: transparent;
	color: var(--text-secondary);
	border: 1px solid var(--border);
}

.btn-outline:hover {
	background: var(--bg-secondary);
	color: var(--text);
	border-color: var(--border-hover);
}

.btn-full {
	width: 100%;
}

.btn-sm {
	padding: 0.4rem 0.75rem;
	font-size: 0.85rem;
}

.btn-icon {
	padding: 0.5rem;
	background: transparent;
	color: var(--text-secondary);
}

.btn-icon:hover {
	background: var(--bg-secondary);
	color: var(--text);
}

.btn-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.login-footer {
	margin-top: 1.5rem;
	font-size: 0.75rem;
	color: var(--muted);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}

.icon-lock {
	width: 14px;
	height: 14px;
}

/* ─── App Header ────────────────────────────────────────── */
.app-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	background: var(--card-bg);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.app-title {
	font-size: 1.1rem;
	font-weight: 700;
}

.user-badge {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	background: var(--bg-secondary);
	border-radius: 999px;
	font-size: 0.75rem;
	color: var(--text-secondary);
	max-width: 150px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	color: var(--text-secondary);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all var(--transition);
}

.icon-btn:hover {
	background: var(--bg-secondary);
	color: var(--text);
}

.icon-btn svg {
	width: 24px;
	height: 24px;
}


.welcome-hint {
	color: #4ade80 !important;
}

/* ─── Main Layout ───────────────────────────────────────── */
.main-content {
	display: flex;
	min-height: calc(100vh - 52px);
}

/* ─── Sidebar ───────────────────────────────────────────── */
.sidebar {
	width: 220px;
	min-width: 220px;
	background: var(--card-bg);
	border-right: 1px solid var(--border);
	padding: 1rem;
	overflow-y: auto;
	transition: all 0.3s ease;
}

.sidebar.collapsed {
	width: 0;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	border-right: none;
}

.sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.sidebar-header h2 {
	font-size: 0.9rem;
	font-weight: 600;
}

.sidebar-toggle {
	width: 28px;
	height: 28px;
	background: var(--free-bg);
}

.sidebar-toggle svg {
	width: 16px;
	height: 16px;
}

.participants-list {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.participant-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.6rem;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: background var(--transition);
	font-size: 0.85rem;
}

.participant-item:hover {
	background: var(--bg-secondary);
}

.participant-item.active {
	background: var(--bg-secondary);
	font-weight: 500;
	border: 2px solid var(--accent);
	box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.participant-item.active::after {
	content: 'x';
	position: absolute;
	top: 0;
	right: 0px;
	background: var(--busy);
	aspect-ratio: 1;
	display: inline-block;
	text-align: center;
	align-content: center;
	margin: 0;
	padding: 0 5px 5px;
	line-height: 1;
	border-top-right-radius: 7px;
	border-bottom-left-radius: 7px;
}

.participant-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.participant-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.participant-contact {
	font-size: 0.7rem;
	color: var(--muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sidebar-open {
	position: fixed;
	left: 0;
	top: 60px;
	z-index: 99;
	width: 32px;
	height: 32px;
	border: none;
	background: var(--free-bg);
	color: var(--text-secondary);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	cursor: pointer;
	box-shadow: var(--shadow);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition);
}

.sidebar-open:hover {
	color: var(--text);
}

.sidebar-open svg {
	width: 16px;
	height: 16px;
}

/* ─── Calendar Section ──────────────────────────────────── */
.calendar-section {
	flex: 1;
	padding: 1rem;
	overflow-x: auto;
}

/* ─── Multi-Month Layout ────────────────────────────────── */
.calendar-months {
	display: flex;
	gap: 1rem;
}

.calendar-month-block {
	flex: 1;
	min-width: 0;
}

.month-block-title {
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	margin-bottom: 0.5rem;
	color: var(--text);
}

/* ─── Toolbar ───────────────────────────────────────────── */
.calendar-toolbar {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
	justify-content: end;
}

.month-title {
	font-size: 1.1rem;
	font-weight: 600;
	min-width: 180px;
	text-align: center;
}

.toolbar-separator {
	width: 1px;
	height: 24px;
	background: var(--border);
}

/* ─── Range Toggle ──────────────────────────────────────── */
.range-toggle {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8rem;
	color: var(--text-secondary);
	cursor: pointer;
	user-select: none;
}

.range-toggle input {
	display: none;
}

.toggle-slider {
	width: 36px;
	height: 20px;
	background: var(--border);
	border-radius: 999px;
	position: relative;
	transition: background var(--transition);
}

.toggle-slider::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	background: white;
	border-radius: 50%;
	top: 2px;
	left: 2px;
	transition: transform var(--transition);
}

.range-toggle input:checked + .toggle-slider {
	background: var(--accent);
}

.range-toggle input:checked + .toggle-slider::after {
	transform: translateX(16px);
}

/* ─── Calendar Grid ─────────────────────────────────────── */
.calendar-grid {
	background: var(--card-bg);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--border);
}

.weekday-row {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	background: var(--bg);
	border-bottom: 1px solid var(--border);
}

.weekday {
	padding: 0.6rem;
	text-align: center;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--text-secondary);
}

.weekday.weekend {
	color: var(--busy);
}

.days-container {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
}

.day-cell {
	aspect-ratio: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border);
	cursor: pointer;
	transition: all var(--transition);
	position: relative;
	font-size: 0.9rem;
	user-select: none;
	min-height: 44px;
}

.day-cell:nth-child(7n) {
	border-right: none;
}

.day-cell:not(.empty):hover {
	border: 1px solid var(--border-hover);
}

.day-cell.empty {
	cursor: default;
	background: transparent;
}

.day-cell.other-month {
	opacity: 0.3;
}

.day-cell.today {
	font-weight: 700;
	border: 2px solid var(--accent);
}
.day-cell.today:after {
	content: 'днес';
	font-size: 11px;
	font-weight: 400;
	color: greenyellow;
}

.day-cell.weekend {
	background: rgba(248,113,113,0.03);
}

/* Past dates - disabled */
.day-cell.past {
	opacity: 0.35;
	cursor: not-allowed;
	background: repeating-linear-gradient(
		45deg,
		transparent,
		transparent 4px,
		rgba(0,0,0,0.05) 4px,
		rgba(0,0,0,0.05) 8px
	) !important;
}


.day-cell.past:hover {
	border-color: var(--border) !important;
}

.day-cell.past .day-number {
	text-decoration: line-through;
	color: var(--muted);
}

/* ─── Readonly Mode ─────────────────────────────────────── */
.calendar-readonly .day-cell {
	cursor: default;
	pointer-events: none;
}

.calendar-readonly .day-cell:not(.empty):hover {
	border-color: var(--border);
}

.day-number {
	font-size: 0.85rem;
	line-height: 1;
}

.day-weekday {
	font-size: 0.6rem;
	color: var(--muted);
	margin-top: 2px;
}

/* ─── Day Status Colors ─────────────────────────────────── */
.day-cell.status-propose {
	background: var(--free-bg);
}
.wizard-card .day-cell.status-propose {
	background: var(--free);
}

/* Range selection */
.day-cell.range-start {
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
}

.day-cell.range-end {
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
}

.day-cell.range-middle {
	background: var(--bg-secondary) !important;
}

/* Selected day highlight */
.day-cell.selected {
	box-shadow: inset 0 0 0 2px var(--accent);
}

/* ─── Feature 3: Viewed user bright marks ─────────────────────────────── */
.day-cell.viewed-user-mark.status-propose {
	background: rgba(74, 222, 128, 0.32) !important;
	box-shadow: inset 0 0 0 2px var(--free), 0 0 12px rgba(74, 222, 128, 0.45);
}

.calendar-months.viewed-user-filter-mode .day-cell:not(.empty):not(.viewed-user-mark) {
	opacity: 0.2;
	filter: saturate(0.15);
	pointer-events: none;
}

.calendar-months.viewed-user-filter-mode .day-cell.viewed-user-mark {
	opacity: 1;
	transform: scale(1.02);
	z-index: 1;
}

.calendar-months.viewed-user-filter-mode .day-cell.viewed-user-mark .day-number {
	font-weight: 700;
}

.calendar-months.viewed-user-filter-mode .day-cell.viewed-user-empty {
	background: transparent;
}

.day-cell.viewed-user-mark.status-propose::after {
	border-color: var(--free);
	box-shadow: 0 0 10px var(--free), 0 0 20px var(--free);
}

@keyframes dot-pulse {
	0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
	50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

/* ─── User marks overlay (normal mode) ───────────────────────────────── */
.user-mark {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.1;
	pointer-events: none;
	background: var(--free);
}

/* ─── Participant Close Button ──────────────────────────── */
.participant-close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 24px;
	height: 24px;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all var(--transition);
}

.participant-close:hover {
	background: var(--bg-secondary);
	color: var(--text);
}

.participant-close svg {
	width: 16px;
	height: 16px;
}

.participant-item {
	position: relative;
}

/* ─── Modal ─────────────────────────────────────────────── */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 1rem;
}

.modal {
	background: var(--card-bg);
	border-radius: var(--radius);
	width: 100%;
	max-width: 500px;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-lg);
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--border);
}

.modal-header h2 {
	font-size: 1.1rem;
}

.modal-close {
	width: 32px;
	height: 32px;
}

.modal-body {
	padding: 1.5rem;
	overflow-y: auto;
}

.history-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--border);
	font-size: 0.85rem;
}

.history-item:last-child {
	border-bottom: none;
}

.history-date {
	font-weight: 500;
	min-width: 80px;
}

.history-status {
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	font-size: 0.75rem;
}

.history-status.propose { background: var(--free-bg); color: var(--free); }

.history-time {
	margin-left: auto;
	font-size: 0.75rem;
	color: var(--muted);
}

.loading-text {
	text-align: center;
	color: var(--muted);
	padding: 2rem;
}

/* ─── Help Modal ────────────────────────────────────────── */
.help-modal {
	max-width: 560px;
}

.help-body {
	line-height: 1.6;
}

.help-section {
	margin-bottom: 1.25rem;
}

.help-section h3 {
	font-size: 1rem;
	margin-bottom: 0.5rem;
	color: var(--text);
}

.help-section p {
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.help-list {
	list-style: none;
	padding: 0;
	margin: 0.75rem 0;
}

.help-list li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}

.help-status-dot {
	width: 14px;
	height: 14px;
	border-radius: 4px;
	flex-shrink: 0;
}

.help-status-dot.propose { background: var(--free); }
.help-status-dot.empty { background: var(--border); }

.help-hint {
	font-size: 0.8rem;
	color: var(--muted);
	margin-top: 0.5rem;
}

.help-contact {
	margin-top: 1.5rem;
	padding: 1rem;
	background: var(--bg-secondary);
	border-radius: var(--radius-sm);
	font-size: 0.9rem;
	color: var(--text-secondary);
}

.help-contact a {
	color: var(--accent);
	text-decoration: none;
}

.help-contact a:hover {
	text-decoration: underline;
}

/* ─── Toast ─────────────────────────────────────────────── */
.toast-container {
	position: fixed;
	bottom: 1rem;
	right: 1rem;
	z-index: 2000;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.toast {
	padding: 0.75rem 1.25rem;
	background: var(--card-bg);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
	font-size: 0.85rem;
	animation: toast-in 0.3s ease;
	max-width: 300px;
}

.toast.success {
	border-left: 3px solid var(--free);
}

.toast.error {
	border-left: 3px solid var(--busy);
}

@keyframes toast-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1024px) {
	.calendar-month-block {
		min-width: 40%;
		max-width: 50%;
	}

	#calendarMonths {
		flex-wrap: wrap;
	}
}
@media (max-width: 768px) {
	.sidebar {
		position: fixed;
		left: 0;
		top: 52px;
		bottom: 0;
		z-index: 99;
		width: 200px;
		min-width: 200px;
		box-shadow: var(--shadow-lg);
	}

	.sidebar.collapsed {
		transform: translateX(-100%);
	}

	.calendar-months {
		flex-direction: column;
	}

	.calendar-toolbar {
		gap: 0.35rem;
	}

	.month-title {
		font-size: 0.95rem;
		min-width: 140px;
	}

	.day-cell {
		min-height: 36px;
		font-size: 0.8rem;
	}

	.day-number {
		font-size: 0.75rem;
	}

	.day-weekday {
		display: none;
	}

	.toolbar-separator {
		display: none;
	}

	.user-badge {
		display: none;
	}

	#calendarMonths {
		max-width: 540px;
		margin: 0 auto;
	}
}

@media (max-width: 480px) {
	.calendar-section {
		padding: 0.5rem;
	}

	.day-cell {
		min-height: 30px;
	}

	.day-number {
		font-size: 1rem;
	}
	
	.wizard-card, #proposePage {
		padding: 5% !important;
	}

	#summaryBox {
		padding: 1rem 0;
	}

	#calendarMonths {
		max-width: 360px;
	}
}

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: var(--border);
	border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--muted);
}

/* ─── Action Wizard (New v2.2.0) ──────────────────────────────── */
.wizard-container {
	position: fixed;
	inset: 0;
	z-index: 50000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg);
}

.wizard-page {
	display: none;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	overflow: auto;
}

.wizard-page.active {
	display: flex;
}

.wizard-card {
	background: var(--card-bg);
	border-radius: var(--radius);
	padding: 2.5rem;
	max-width: 480px;
	width: 100%;
	text-align: center;
	box-shadow: var(--shadow-lg);
}

.wizard-card-full {
	max-width: 900px;
}

.wizard-icon {
	font-size: 3.5rem;
	margin-bottom: 1rem;
}

.wizard-card h2 {
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	color: var(--text);
}

.wizard-card p {
	font-size: 0.95rem;
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

.wizard-card .btn {
	margin-bottom: 0.5rem;
}

.step-header {
	margin-bottom: 1.5rem;
	text-align: center;
}

.step-badge {
	display: inline-block;
	padding: 0.6rem 1rem;
	background: var(--accent);
	color: white;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.step-hint {
	color: var(--text-secondary);
	font-size: 0.85rem;
	margin-top: 0.5rem;
}

.step-actions {
	display: flex;
	justify-content: center;
	margin-top: 1.5rem;
	gap: 0.75rem;
}


.summary-dates-count {
	font-size: 1.6em;
	vertical-align: middle;
	border: 3px solid #26b000;
	border-radius: 50%;
	padding: 5px 6px;
}


/* ─── Wizard Calendar ─────────────────────────────────────────── */
.wizard-calendar {
	margin: 1rem 0;
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 0.5rem;
	scroll-snap-type: x proximity;
}

.wizard-calendar .calendar-month-block {
	flex: 0 0 min(340px, 85vw);
	min-width: 300px;
	scroll-snap-align: start;

}

@media (max-width: 768px) {
	.wizard-calendar {
		display: block;
		overflow: visible;
		padding-bottom: 0;
	}

	.wizard-calendar .calendar-month-block {
		min-width: 0;
		width: 100%;
		margin-bottom: 1rem;
	}

	.wizard-calendar .calendar-month-block:last-child {
		margin-bottom: 0;
	}
}
/* ─── Name Chips ──────────────────────────────────────────────── */
.name-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.5rem;
}

.chip {
	padding: 0.3rem 0.8rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--bg-secondary);
	cursor: pointer;
	font-size: 0.85rem;
	color: var(--text-secondary);
	transition: all var(--transition);
	font-family: inherit;
}

.chip:hover,
.chip.active {
	background: var(--accent);
	color: white;
	border-color: var(--accent);
}

/* ─── Summary Box ─────────────────────────────────────────────── */
.summary-box {
	background: var(--bg-secondary);
	border-radius: var(--radius-sm);
	padding: 1rem;
	margin-bottom: 1.5rem;
	text-align: center;
}

.summary-box p {
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}

.summary-dates-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	justify-content: center;
	margin-top: 0.5rem;
}

.summary-date-chip {
	padding: 0.2rem 0.6rem;
	background: var(--free-bg);
	border-radius: 999px;
	font-size: 0.8rem;
	color: var(--text);
}

/* ─── Wizard Login Form ─────────────────────────────────────────── */
.wizard-login-form {
	text-align: center;
	padding: 0.5rem 0;
}

.wizard-login-icon {
	font-size: 3rem;
	margin-bottom: 0.75rem;
}

/* ─── Wizard Form ─────────────────────────────────────────────── */
.wizard-form {
	text-align: left;
	margin-bottom: 1.5rem;
}

.wizard-form .form-group {
	margin-bottom: 1rem;
}

.wizard-form label {
	display: block;
	font-size: 0.85rem;
	font-weight: 500;
	margin-bottom: 0.4rem;
	color: var(--text-secondary);
}

.wizard-form input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg);
	color: var(--text);
	font-size: 1rem;
	font-family: inherit;
	transition: border-color var(--transition), box-shadow var(--transition);
}

.wizard-form input:placeholder {
	color: var(--text-secondary);
}

.wizard-form input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.wizard-form input.error {
	border-color: var(--busy);
}

.wizard-form .field-error {
	display: block;
	font-size: 0.8rem;
	color: var(--busy);
	margin-top: 0.25rem;
	min-height: 1.2em;
}

.btn-lg {
	padding: 1rem 2rem;
	font-size: 1.1rem;
}

/* ─── Save/Clear/Edit Buttons ──────────────────────────────── */
.btn-save {
	background: var(--free);
	color: #0f172a;
}
.btn-save:hover {
	background: #22c55e;
}

.btn-clear {
	background: rgba(248,113,113,0.15);
	color: var(--busy);
}
.btn-clear:hover {
	background: var(--busy);
	color: white;
}

.btn-edit {
	background: var(--bg-secondary);
	color: var(--text);
	border: 1px solid var(--border);
}
.btn-edit:hover {
	background: var(--accent);
	color: white;
	border-color: var(--accent);
}

/* ─── Large Save Button ──────────────────────────────────────── */
.save-section {
	display: flex;
	justify-content: center;
	margin: 1.5rem 0;
}

.btn-save-large {
	padding: 1rem 2.5rem;
	font-size: 1.2rem;
	font-weight: 700;
	background: var(--free);
	color: #0f172a;
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	transition: all var(--transition);
	box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
	animation: pulse-green 2s ease-in-out infinite;
}

.btn[disabled] {
	filter: grayscale(1);
}

.btn-save-large:hover:not(:disabled) {
	background: #22c55e;
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(74, 222, 128, 0.5);
}

@keyframes pulse-green {
	0%, 100% { box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3); }
	50% { box-shadow: 0 4px 25px rgba(74, 222, 128, 0.6); }
}

/* ─── Participants Not Ready Message ────────────────────────── */
.participants-not-ready {
	text-align: center;
	padding: 2rem 1rem;
	color: var(--muted);
	font-size: 0.85rem;
}

.participants-not-ready .notice-icon {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}



.color-multi .user-marks-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: end;
	padding: 2px;
}

.color-multi .user-mark {
	width: 10%;
	height: 10%;
	position: relative;
	display: inline-block;
	opacity: 1;
	margin: 2%;
}