/* AI DPR Generator — extends chat resume builder styles */

.dpr-pdf-export {
	position: fixed;
	left: -10000px;
	top: 0;
	width: 190mm;
	background: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 13px;
	line-height: 1.55;
	color: #222;
}

.dpr-pdf-export .dpr-pdf-page {
	page-break-after: always;
	padding: 8px 0;
}

.dpr-pdf-export .dpr-pdf-page:last-child {
	page-break-after: auto;
}
body.chat-page.dpr-page {
	background: var(--gray-100, #f1f5f9);
	overflow-x: hidden;
}

body.chat-page.dpr-page .content {
	display: flex;
	flex-direction: column;
}

body.chat-page.dpr-page .resume-page-wrap {
	min-height: auto;
	padding: 0;
	padding-bottom: 0;
	overflow: visible;
	max-width: 900px;
	margin: 0 auto;
	width: 100%;
}

body.chat-page.dpr-page .chat-app {
	height: auto;
	min-height: 520px;
	max-height: none;
	overflow: visible;
	max-width: 100%;
}

body.chat-page.dpr-page .chat-messages {
	flex: 0 1 auto;
	max-height: min(420px, 45vh);
	min-height: 160px;
	overflow-y: auto;
}

body.chat-page.dpr-page .chat-composer {
	overflow: visible;
}

body.chat-page.dpr-page .chat-resume-panel.visible {
	overflow: visible;
	padding-bottom: 16px;
	max-width: 100%;
}

body.chat-page.dpr-page .ai-powered-banner {
	max-width: 100%;
}

.ai-powered-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	max-width: 820px;
	margin: 0 auto 14px;
	padding: 10px 16px;
	background: linear-gradient(90deg, #34006b, #7c3aed, #34006b);
	background-size: 200% 100%;
	animation: aiShimmer 4s ease infinite;
	border-radius: 999px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	font-family: "Poppins", sans-serif;
	box-shadow: 0 4px 16px rgba(52, 0, 107, 0.25);
}

.ai-powered-banner .ai-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.2);
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

.ai-powered-banner .ai-badge::before {
	content: "✦";
	font-size: 10px;
}

@keyframes aiShimmer {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

.chat-header .ai-tagline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	padding: 4px 10px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
}

.chat-msg.assistant .chat-avatar::after {
	content: "";
	position: absolute;
	width: 8px;
	height: 8px;
	background: #22c55e;
	border-radius: 50%;
	border: 2px solid #fff;
	bottom: -1px;
	right: -1px;
}

.chat-msg .chat-avatar {
	position: relative;
}

.chat-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.chat-form-grid .full-width {
	grid-column: 1 / -1;
}

.chat-form-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #34006b;
	margin-bottom: 4px;
}

.chat-form-field input,
.chat-form-field select,
.chat-form-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d9d9e3;
	border-radius: 8px;
	font-size: 13px;
	font-family: "Poppins", sans-serif;
	box-sizing: border-box;
}

.chat-form-field textarea {
	min-height: 72px;
	resize: vertical;
}

.dpr-preview-paper {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 36px 40px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 13px;
	line-height: 1.55;
	color: #222;
}

.dpr-preview-header {
	text-align: center;
	border-bottom: 3px double #34006b;
	padding-bottom: 16px;
	margin-bottom: 20px;
}

.dpr-preview-header h2 {
	margin: 0 0 6px;
	font-size: 20px;
	color: #1a1a2e;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.dpr-preview-header .scheme-badge {
	display: inline-block;
	margin-top: 8px;
	padding: 4px 14px;
	background: #ede7f6;
	color: #34006b;
	font-size: 11px;
	font-weight: 700;
	border-radius: 999px;
	font-family: "Poppins", sans-serif;
}

.dpr-ai-powered-stamp {
	text-align: center;
	margin: 16px 0;
	padding: 8px;
	background: linear-gradient(135deg, #f8f5fc, #ede7f6);
	border: 1px dashed #7c3aed;
	border-radius: 8px;
	font-family: "Poppins", sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #34006b;
}

.dpr-preview-section {
	margin-bottom: 18px;
}

.dpr-preview-section h3 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #34006b;
	border-bottom: 1px solid #e8e0f0;
	padding-bottom: 4px;
	margin: 0 0 10px;
	font-family: "Poppins", sans-serif;
}

.dpr-finance-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
	margin-top: 8px;
}

.dpr-finance-table th,
.dpr-finance-table td {
	border: 1px solid #ddd;
	padding: 8px 10px;
	text-align: left;
}

.dpr-finance-table th {
	background: #f8f5fc;
	color: #34006b;
	font-weight: 600;
}

.dpr-sections-checklist {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px 16px;
}

.dpr-sections-checklist li {
	font-size: 12px;
	padding: 4px 0;
}

.dpr-sections-checklist li::before {
	content: "✓ ";
	color: #16a34a;
	font-weight: 700;
}

.dpr-generating-step {
	font-size: 13px;
	color: #555;
}

.dpr-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.dpr-pager-label {
	font-size: 14px;
	font-weight: 600;
	color: #1e5aa8;
	font-family: "Segoe UI", system-ui, sans-serif;
	min-width: 100px;
	text-align: center;
}

.dpr-pager-btn {
	padding: 8px 16px;
	border: 1px solid #1e5aa8;
	border-radius: 8px;
	background: #fff;
	color: #1e5aa8;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-family: "Segoe UI", system-ui, sans-serif;
}

.dpr-pager-btn:hover:not(:disabled) {
	background: #e8f0fa;
}

.dpr-pager-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.dpr-page-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-bottom: 16px;
}

.dpr-page-dot {
	width: 32px;
	height: 32px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	cursor: pointer;
	font-family: "Segoe UI", system-ui, sans-serif;
}

.dpr-page-dot:hover {
	border-color: #1e5aa8;
	color: #1e5aa8;
}

.dpr-page-dot.active {
	background: #1e5aa8;
	border-color: #1e5aa8;
	color: #fff;
}

.dpr-page-sheet {
	min-height: 480px;
}

.dpr-page-inner {
	padding: 8px 0 24px;
}

.dpr-page-footer {
	margin-top: 24px;
	padding-top: 12px;
	border-top: 1px solid #e2e8f0;
	font-size: 11px;
	color: #64748b;
	text-align: center;
	font-family: "Segoe UI", system-ui, sans-serif;
}

.dpr-bullets {
	margin: 8px 0 8px 20px;
	padding: 0;
}

.dpr-bullets li {
	margin-bottom: 4px;
}

.dpr-preview-section h4 {
	font-size: 12px;
	font-weight: 700;
	color: #334155;
	margin: 14px 0 8px;
	font-family: "Segoe UI", system-ui, sans-serif;
}

.dpr-note {
	font-size: 11px;
	color: #64748b;
	margin-top: 8px;
	font-style: italic;
}

.dpr-table-sm {
	font-size: 11px;
}

.dpr-table-sm th,
.dpr-table-sm td {
	padding: 6px 8px;
}

@media print {
	.dpr-pager,
	.dpr-page-dots {
		display: none !important;
	}

	.dpr-page-sheet {
		page-break-after: always;
	}
}

@media (max-width: 768px) {
	body.chat-page.dpr-page .chat-app {
		height: auto;
		min-height: 400px;
	}

	body.chat-page.dpr-page .chat-messages {
		max-height: 35vh;
	}

	.chat-form-grid {
		grid-template-columns: 1fr;
	}

	.dpr-sections-checklist {
		grid-template-columns: 1fr;
	}

	.dpr-preview-paper {
		padding: 24px 18px;
	}
}

@media print {
	.sidebar,
	.topbar,
	.ai-powered-banner,
	.announcement,
	.chat-resume-actions {
		display: none !important;
	}

	.main {
		margin-left: 0 !important;
	}

	.chat-app {
		display: none !important;
	}

	.chat-resume-panel {
		display: block !important;
		margin: 0;
		padding: 0;
	}

	.dpr-preview-paper {
		box-shadow: none;
		border: none;
	}
}
