/* File PDF viewer — fullscreen overlay for project PDFs */

.file-pdf-overlay {
	position: fixed;
	inset: 0;
	z-index: 32000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(2px);
}

.file-pdf-card {
	width: min(1100px, calc(100vw - 48px));
	height: calc(100vh - 64px);
	display: flex;
	flex-direction: column;
	background: var(--theme-bg-secondary);
	border: 1px solid var(--theme-border-primary);
	border-radius: 12px;
	box-shadow: var(--theme-shadow-primary);
	overflow: hidden;
}

.file-pdf-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--theme-border-primary);
	background: var(--theme-bg-tertiary);
}

.file-pdf-title {
	color: var(--theme-text-primary);
	font-size: 13px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.file-pdf-close {
	border: none;
	background: none;
	color: var(--theme-text-secondary);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 2px 8px;
	border-radius: 6px;
	flex-shrink: 0;
}

.file-pdf-close:hover {
	color: var(--theme-text-primary);
	background: var(--theme-bg-hover);
}

.file-pdf-body {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	position: relative;
	background: var(--theme-bg-primary);
}

.file-pdf-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--theme-text-secondary);
	font-size: 13px;
}
