:root {
	--bg-color: #F7F7F6;
	--surface-color: #FFFFFF;
	--text-primary: #2C303A;
	--text-secondary: #757983;
	--border-color: #E6E8EA;
	--accent-color: #3B4A54;
	--accent-hover: #26333B;
	--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--radius-lg: 16px;
	--radius-sm: 8px;
	--shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}

body {
	font-family: var(--font-family), serif;
	background-color: var(--bg-color);
	color: var(--text-primary);
	overflow: hidden; /* Empêche le scroll du body, géré par main */
	height: 100vh;
}

a {
	text-decoration: none;
	color: #1565C0;
	cursor: pointer;
}

/* Gestion des vues */
.view {
	display: none;
	flex-direction: column;
	height: 100vh;
	animation: fadeIn 0.3s ease;
}

.view.active {
	display: flex;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Header */
.app-header {
	background-color: var(--surface-color);
	padding: 1.5rem 1.25rem;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 10;
}

.app-header h1 {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.app-header.with-back {
	justify-content: flex-start;
	gap: 0.5rem;
}

.header-titles {
	flex-grow: 1;
}

.header-titles h1 {
	font-size: 1.2rem;
}

.header-titles p {
	font-size: 0.85rem;
	color: var(--text-secondary);
}

.icon-btn {
	background: none;
	border: none;
	color: var(--text-primary);
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.icon-btn:active {
	background: var(--border-color);
}

.ai-btn {
	color: #A88B4B;
}

/* Contenu scrollable */
.content {
	flex: 1;
	overflow-y: auto;
	padding: 0 1.25rem 6rem;
}

/* Cartes Voyage */
.trip-card {
	background-color: var(--surface-color);
	border-radius: var(--radius-lg);
	padding: 1.25rem;
	margin-top: 1.25rem;
	box-shadow: var(--shadow-soft);
	border: 1px solid rgba(0, 0, 0, 0.02);
	cursor: pointer;
	transition: transform 0.2s;
}

.trip-card:active {
	transform: scale(0.98);
}

.trip-card h3 {
	font-size: 1.15rem;
	margin-bottom: 0.25rem;
}

.trip-card .dates {
	font-size: 0.85rem;
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

/* Bouton Flottant (FAB) */
.fab {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	background-color: var(--accent-color);
	color: white;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(59, 74, 84, 0.3);
	cursor: pointer;
	z-index: 20;
	transition: transform 0.2s, background 0.2s;
}

.fab:active {
	transform: scale(0.9);
}

/* Timeline (Programme) */
.timeline-content {
	padding-left: 1.5rem;
	padding-right: 0.75rem;
}

.day-header {
	font-size: 1rem;
	font-weight: 600;
	color: var(--accent-color);
	margin: 0.5rem 0 1rem -0.5rem;
	position: sticky;
	top: 0;
	background: var(--bg-color);
	padding: 0.5rem;
	z-index: 5;
	text-transform: capitalize;
}

.timeline-item {
	position: relative;
	padding-left: 1.5rem;
	padding-bottom: 1.5rem;
	border-left: 2px solid var(--border-color);
}

.timeline-item:last-child {
	border-left-color: transparent;
}

.timeline-icon {
	position: absolute;
	left: -1rem;
	top: 0;
	background: var(--surface-color);
	border: 2px solid var(--border-color);
	color: var(--text-secondary);
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.timeline-item.type-VISITE .timeline-icon {
	color: #D97757;
	border-color: #D97757;
}

.timeline-item.type-TRAJET .timeline-icon {
	color: #5786D9;
	border-color: #5786D9;
}

.timeline-card {
	background: var(--surface-color);
	padding: 1rem;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-soft);
	border: 1px solid var(--border-color);
	display: flex;
	gap: 15px;
	align-items: flex-start;
}

.timeline-time {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--accent-color);
	margin-bottom: 0.6rem;
}

.timeline-title {
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 0.3rem;
}

.timeline-address {
	font-size: 0.85rem;
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

/* Modales & Formulaires */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(4px);
	display: none;
	align-items: flex-end; /* Pour un effet tiroir sur mobile */
	justify-content: center;
	z-index: 50;
	opacity: 0;
	transition: opacity 0.3s;
}

.modal-overlay.active {
	display: flex;
	opacity: 1;
}

.modal-content {
	background: var(--surface-color);
	width: 100%;
	max-width: 500px;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	padding: 1.5rem;
	transform: translateY(100%);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	max-height: 90vh;
	overflow-y: auto;
}

.modal-overlay.active .modal-content {
	transform: translateY(0);
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.close-btn {
	background: none;
	border: none;
	color: var(--text-secondary);
	cursor: pointer;
	padding: 0.5rem;
}

.form-group {
	margin-bottom: 1.25rem;
}

.form-row {
	display: flex;
	gap: 1rem;
}

.form-row .form-group {
	flex: 1;
}

label {
	display: block;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--text-secondary);
	margin-bottom: 0.5rem;
}

input, select, textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	font-size: 1rem;
	font-family: inherit;
	background: #FAFAFA;
	transition: border-color 0.2s;
	outline: none;
}

input:focus, select:focus, textarea:focus {
	border-color: var(--accent-color);
	background: var(--surface-color);
}

.btn-primary {
	width: 100%;
	padding: 1rem;
	background: var(--accent-color);
	color: white;
	border: none;
	border-radius: var(--radius-sm);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	margin-top: 1rem;
}

.btn-primary:active {
	background: var(--accent-hover);
}

/* Utilitaires */
.loader {
	text-align: center;
	color: var(--text-secondary);
	margin-top: 2rem;
	font-size: 0.9rem;
}

.empty-state {
	text-align: center;
	color: var(--text-secondary);
	margin-top: 3rem;
}

.icon-btn-small {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-secondary);
	padding: 4px;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, color 0.2s;
}

.icon-btn-small:hover {
	background: var(--bg-color);
	color: var(--text-primary);
}

.text-red {
	color: #e63946;
}

.text-red:hover {
	color: #d62828;
}

.action-buttons {
	display: flex;
	gap: 0.25rem;
	justify-content: center;
}

.badge-price {
	display: inline-block;
	background: #E8F5E9;
	color: #2E7D32;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
	margin-top: 8px;
}

.timeline-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.8rem;
	color: #1976D2;
	text-decoration: none;
	margin-top: 8px;
	margin-left: 8px;
}

.timeline-link:hover {
	text-decoration: underline;
}

.timeline-notes {
	background: #FAFAFA;
	border-left: 3px solid var(--border-color);
	padding: 8px;
	margin-top: 8px;
	font-size: 0.85rem;
	color: var(--text-secondary);
	border-radius: 0 4px 4px 0;
}

.lucide-spin {
	animation: spin 2s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

#ai-content p {
	margin-bottom: 1rem;
}

#ai-content h1,
#ai-content h2,
#ai-content h3 {
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
}

#ai-content ul,
#ai-content ol {
	margin-bottom: 1rem;
	margin-left: 1.5rem;
}

#ai-content li {
	margin-bottom: 0.5rem;
}

.badge-go {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.75rem;
	background: #E3F2FD;
	color: #1565C0;
	text-decoration: none;
	padding: 4px 8px;
	border-radius: 4px;
	font-weight: 600;
	transition: background 0.2s;
}

.badge-go:hover {
	background: #BBDEFB;
}

.badge-price {
	display: inline-flex;
	background: #E8F5E9;
	color: #2E7D32;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 4px;
	margin-top: 0;
}

.badge-doc {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.75rem;
	background: #F3E5F5;
	color: #8B5CF6;
	text-decoration: none;
	padding: 4px 8px;
	border-radius: 4px;
	font-weight: 600;
	transition: background 0.2s;
}

.badge-doc:hover {
	background: #E1BEE7;
}

.badge-url {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.75rem;
	background: #FFF3E0;
	color: #DD900D;
	text-decoration: none;
	padding: 4px 8px;
	border-radius: 4px;
	font-weight: 600;
	transition: background 0.2s;
}

.badge-url:hover {
	background: #FFE0B2;
}

.timeline-link {
	margin-top: 0;
	margin-left: 0;
}

.alert-warning {
	background-color: #FFF3CD;
	color: #856404;
	padding: 8px 10px;
	border-radius: 6px;
	margin-bottom: 10px;
	font-size: 0.8rem;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	border: 1px solid #FFEEBA;
}

.alert-warning span {
	line-height: 1.3;
}

.alert-info {
	background-color: #E3F2FD;
	color: #0D47A1;
	padding: 8px 10px;
	border-radius: 6px;
	margin-bottom: 10px;
	font-size: 0.8rem;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	border: 1px solid #BBDEFB;
}

.alert-info span {
	line-height: 1.3;
}

.alert-danger {
	background-color: #F8D7DA;
	color: #721C24;
	padding: 8px 10px;
	border-radius: 6px;
	margin-bottom: 10px;
	font-size: 0.8rem;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	border: 1px solid #F5C6CB;
}

.alert-danger span {
	line-height: 1.3;
}

/* --- BOITE À IDÉES --- */
.ideas-container {
	display: flex;
	overflow-x: auto;
	gap: 1rem;
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px dashed var(--border-color);
	scroll-snap-type: x mandatory;
}

.ideas-container::-webkit-scrollbar {
	height: 6px;
}

.ideas-container::-webkit-scrollbar-thumb {
	background-color: #CBD5E1;
	border-radius: 10px;
}

.idea-card {
	flex: 0 0 250px;
	background: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: 1rem;
	scroll-snap-align: start;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
	position: relative;
}

.idea-card h4 {
	font-size: 1rem;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.idea-card p {
	font-size: 0.8rem;
	color: var(--text-secondary);
	margin-bottom: 0.75rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.idea-actions {
	display: flex;
	gap: 0.5rem;
}

/* --- DRAG & DROP --- */
.day-activities {
	min-height: 50px; /* Permet de drop même si la journée est vide */
	padding-bottom: 10px;
	transition: background-color 0.2s ease;
}

.timeline-item.dragging {
	opacity: 0.4;
	transform: scale(0.98);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.timeline-item {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-item:active {
	cursor: grabbing !important;
}

/* --- Boutons de bascule Timeline / Carte --- */
.toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 2px solid var(--text-primary);
}

.toggle-btn.active {
	background-color: var(--text-primary);
	color: white;
}

.toggle-btn.outline {
	background-color: transparent;
	color: var(--text-primary);
}

.toggle-btn:hover {
	opacity: 0.9;
}

/* --- PROGRESSION DU VOYAGE --- */
.timeline-item.status-past {
	opacity: 0.6;
	filter: grayscale(0.5);
}

.timeline-item.status-past .timeline-card {
	background-color: #f8fafc;
}

.timeline-item.status-current .timeline-card {
	border: 2px solid var(--accent-color);
	box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

/* --- TABLEAU DE BORD & STATS --- */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.stat-card {
	background: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: 1.25rem 1rem;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.stat-card h3 {
	font-size: 0.85rem;
	color: var(--text-secondary);
	margin-bottom: 0.5rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.stat-card p {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-primary);
}

/* --- VUE PORTEFEUILLE (BILLETS & DOCS) --- */
.wallet-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.wallet-card {
	background: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 1.5rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease;
}

.wallet-card:hover {
	transform: translateY(-3px);
}

.wallet-card h3 {
	margin: 0;
	font-size: 1.1rem;
	color: var(--text-primary);
}

.wallet-card p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--text-secondary);
	font-weight: 500;
}

.wallet-btn {
	background: var(--text-primary);
	color: white;
	text-decoration: none;
	padding: 12px;
	border-radius: 8px;
	font-weight: 600;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	transition: opacity 0.2s;
	margin-top: auto;
}

.wallet-btn:hover {
	opacity: 0.9;
	color: white;
}

/* --- BARRE D'ONGLETS (RESPONSIVE) --- */
.view-toggle {
	display: flex;
	gap: 10px;
	margin: 1rem;
	overflow-x: auto;
	padding-bottom: 5px;
	justify-content: flex-start;
	flex-shrink: 0;
	min-height: 45px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.view-toggle::-webkit-scrollbar {
	display: none;
}

.toggle-btn {
	flex-shrink: 0;
	white-space: nowrap;
}

@media (min-width: 600px) {
	.modal-overlay {
		align-items: center;
	}

	.modal-content {
		border-radius: var(--radius-lg);
		transform: translateY(20px);
	}

	.view-toggle {
		justify-content: center;
	}

	.trip-hero {
		height: 160px;
		margin: 15px 15px 0 15px;
	}

	.timeline-address i,
	.timeline-address svg{
		display: inline-block;
	}
}

/* MODE IMPRESSION & EXPORT PDF */
@media print {
	* {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	html, body {
		height: auto !important;
		overflow: visible !important;
		background-color: white !important;
		color: black !important;
		font-size: 11pt;
		margin: 0 !important;
		padding: 0 !important;
	}

	.view, .content, #activities-container, .day-container, .day-activities {
		display: block !important;
		position: static !important;
		height: auto !important;
		min-height: auto !important;
		max-height: none !important;
		overflow: visible !important;
		margin: 0 !important;
		page-break-inside: auto !important;
	}

	.app-header button,
	.view-toggle,
	.fab,
	.action-buttons,
	.weather-widget,
	.badge-doc,
	.badge-go,
	.badge-url,
	.edit-hero-btn,
	#btn-add-activity,
	#profile-area,
	.trip-hero {
		display: none !important;
	}

	.trip-notes-details {
		display: block !important;
		margin: 0 0 20px 0 !important;
		border: 1px solid #ccc !important;
		box-shadow: none !important;
		page-break-inside: avoid;
	}

	details.trip-notes-details > p,
	.trip-notes-details summary ~ * {
		display: block !important;
	}

	.day-container {
		margin-bottom: 30px !important;
	}

	.day-header {
		background: none !important;
		color: var(--accent-color) !important;
		font-size: 16pt !important;
		border-bottom: 2px solid #ccc !important;
		padding: 0 0 5px 0 !important;
		margin-bottom: 15px !important;
	}

	.timeline-item {
		page-break-inside: avoid;
		opacity: 1 !important;
		filter: none !important;
		border-left: 2px solid #ccc !important;
		margin-bottom: 10px !important;
		padding-bottom: 10px !important;
	}

	.timeline-card {
		box-shadow: none !important;
		border: 1px solid #ccc !important;
		background-color: white !important;
		padding: 10px 15px !important;
	}

	@page {
		margin: 1cm 1cm 1.5cm 1cm !important;
	}

	#detail-title {
		font-size: 24pt !important;
		margin: 0 0 5px 0 !important;
		color: var(--text-primary) !important;
		line-height: 1 !important;
	}

	.timeline-photo {
		box-shadow: none !important;
		border: 1px solid #ddd;
	}
}

aside {
	position: absolute;
	top: -5px;
	right: -5px;
	z-index: 100;
}

#profile-area {
	position: relative;
}

#profile-picture {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: #ccc;
	color: #fff;
	text-align: center;
	line-height: 50px;
	font-size: 20px;
	background-size: cover;
	cursor: pointer;
	position: relative;
	z-index: 1;
	margin: 20px;
}

#profile-info {
	position: absolute;
	top: 100%;
	z-index: 5;
	right: 15px;
	padding: 15px;
	width: auto;
	white-space: nowrap;
	display: none;
	text-align: center;
	background-color: #ffffff;
	border: 1px solid #ddd;
	border-radius: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	animation: fadeIn 0.3s ease-in-out;
}

#profile-info > button {
	cursor: pointer;
}

#profile-info p {
	font-size: 16px;
	font-weight: bold;
	margin: 4px 0;
	color: #333;
}

#profile-info a {
	text-decoration: none;
	color: #585FC0;
	font-size: 14px;
	display: inline-block;
}

#profile-info a:hover {
	text-decoration: underline;
}

#profile-info button {
	background-color: #585FC0;
	color: #fff;
	border: none;
	border-radius: 5px;
	padding: 8px 12px;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

#profile-info button:hover {
	background-color: #3f46a8;
}

.modal_gen {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
}

.modal-content_gen {
	background-color: #fefefe;
	margin: 15% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 80%;
	max-width: 500px;
	text-align: center;
	border-radius: 10px;
}

.modal_gen.is-active {
	display: flex !important;
}

/* ========================================== */
/* BANNIÈRE ET NOTES DU VOYAGE                */
/* ========================================== */
.trip-hero {
	position: relative;
	height: 100px; /* Hauteur très fine sur mobile ! */
	border-radius: var(--radius-lg);
	background-color: var(--accent-color);
	background-size: cover;
	background-position: center;
	overflow: hidden;
	margin: 10px 10px 0 10px; /* Marges réduites */
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.trip-hero-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	top: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.3));
	z-index: 1;
}

.edit-hero-btn {
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 2;
	background: rgba(255, 255, 255, 0.25);
	color: white;
	border: 1px solid rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(4px);
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

/* --- Accordéon des Notes --- */
.trip-notes-details {
	background: var(--surface-color);
	padding: 10px 15px;
	border-left: 4px solid var(--accent-color);
	border-radius: var(--radius-sm);
	margin: 10px 10px 0 10px; /* Marges réduites */
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.trip-notes-details summary {
	display: flex;
	align-items: center;
	cursor: pointer;
	list-style: none; /* Cache la flèche par défaut d'Apple/Firefox */
	outline: none;
}

.trip-notes-details summary::-webkit-details-marker {
	display: none; /* Cache la flèche de Chrome */
}

/* La petite flèche animée à droite */
.trip-notes-details summary::after {
	content: '▼';
	margin-left: auto;
	font-size: 0.7rem;
	color: var(--text-secondary);
	transition: transform 0.2s ease;
}

.trip-notes-details[open] summary::after {
	transform: rotate(180deg);
}

/* ========================================== */
/* ÉCRAN D'INSTALLATION PWA                   */
/* ========================================== */
.pwa-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--bg-color);
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.pwa-content {
	background: var(--surface-color);
	padding: 2.5rem 2rem;
	border-radius: var(--radius-lg);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	text-align: center;
	max-width: 400px;
	width: 100%;
	border: 1px solid var(--border-color);
}

.timeline-card-info {
	flex: 1;
	min-width: 0;
}

.timeline-photo {
	width: 75px;
	height: 75px;
	border-radius: 8px;
	object-fit: cover;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	flex-shrink: 0;
	background-color: #f1f5f9;
	margin-top: 5px;
}

.timeline-badges {
	margin-top: 0.6rem;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}