/* ════════════════════════════════════════════════
   Excel to PDF Converter — Frontend Styles
════════════════════════════════════════════════ */

/* OUTER PAGE — full width, top-aligned */
.e2p-page {
	width: 100%;
	background: transparent;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 24px 0;
	margin: 0;
	box-sizing: border-box;
}
.e2p-page *,
.e2p-page *::before,
.e2p-page *::after { box-sizing: border-box; }

/* INNER WRAP — centred content column */
.e2p-wrap {
	width: 100%;
	max-width: 780px;
	background: transparent;
	border-radius: 20px;
	box-shadow: none;
	padding: 0 0 40px;
}

/* HEADER */
.e2p-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 24px 32px 20px;
	border-bottom: none;
	background: transparent;
	border-radius: 16px 16px 0 0;
}
.e2p-header-icon { font-size: 38px; line-height: 1; flex-shrink: 0; }
.e2p-header-text h1 {
	font-size: 20px; font-weight: 800; margin: 0 0 3px;
	color: #111827;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.e2p-header-text p {
	font-size: 12.5px; color: #6b7280; margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* INNER PADDING SECTION */
.e2p-notice, .e2p-result, .e2p-form {
	margin: 0 32px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* NOTICES */
.e2p-notice {
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 600;
	margin-top: 20px;
	text-align: center;
}
.e2p-notice[hidden] { display: none; }
.e2p-notice--success { background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; }
.e2p-notice--error   { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }
.e2p-notice--info    { background:#eff6ff; color:#1e40af; border:1px solid #bfdbfe; }

/* RESULT CARD */
.e2p-result {
	background: #f0fdf4;
	border: 1.5px solid #86efac;
	border-radius: 14px;
	padding: 20px 22px;
	margin-top: 22px;
}
.e2p-result[hidden] { display: none; }
.e2p-result-info { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.e2p-badge {
	background: #fff;
	border: 1px solid #d1fae5;
	border-radius: 20px;
	padding: 4px 12px;
	font-size: 12.5px;
	font-weight: 600;
	color: #065f46;
}
.e2p-result-filename {
	font-size: 13px; color: #374151; margin: 0 0 16px;
	font-weight: 600; word-break: break-all;
}
.e2p-result-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* BUTTONS */
.e2p-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 11px 22px;
	border-radius: 9px;
	font-weight: 700;
	font-size: 14px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: background .18s, transform .1s, opacity .18s;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.e2p-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.e2p-btn:active { transform: scale(.97); }

.e2p-btn--download { background: #16a34a; color: #fff; }
.e2p-btn--download:hover { background: #15803d; color: #fff; text-decoration: none; }

.e2p-btn--view { background: #fff; color: #2563eb; border: 2px solid #2563eb; }
.e2p-btn--view:hover { background: #eff6ff; color: #1d4ed8; text-decoration: none; }

.e2p-btn--convert {
	width: 100%;
	background: #2563eb;
	color: #fff;
	padding: 14px 28px;
	font-size: 15px;
	border-radius: 10px;
	margin-top: 4px;
}
.e2p-btn--convert:hover:not(:disabled) { background: #1d4ed8; }
.e2p-btn--convert:disabled { background: #93c5fd; cursor: not-allowed; opacity: .85; }

/* Loading spinner inside the convert button */
.e2p-spinner {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2.5px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	animation: e2p-spin .7s linear infinite;
	flex-shrink: 0;
}
.e2p-spinner[hidden] { display: none; }
@keyframes e2p-spin { to { transform: rotate(360deg); } }

/* FORM */
.e2p-form { margin-top: 24px; }

/* Drop zone */
.e2p-drop {
	border: 2.5px dashed #cbd5e1;
	border-radius: 14px;
	padding: 36px 20px;
	text-align: center;
	cursor: pointer;
	background: #f8fafc;
	transition: border-color .2s, background .2s;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-bottom: 22px;
}
.e2p-drop:hover, .e2p-drop.over { border-color: #3b82f6; background: #eff6ff; }
.e2p-drop.ready { border-color: #22c55e; background: #f0fdf4; }
.e2p-drop.dragover-invalid { border-color: #ef4444; background: #fef2f2; }
.e2p-drop:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.e2p-drop-icon svg { width: 52px; height: 52px; }
.e2p-drop-title { font-size: 15px; font-weight: 600; color: #374151; }
.e2p-drop-sub { font-size: 12px; color: #94a3b8; }

/* Section label */
.e2p-section { margin-bottom: 22px; }
.e2p-section-label {
	display: flex; align-items: center; gap: 6px;
	font-size: 13px; font-weight: 700; color: #374151;
	margin-bottom: 10px;
}
.e2p-section-label svg { width: 15px; height: 15px; color: #6b7280; }

/* Size pills */
.e2p-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.e2p-sz {
	display: flex; flex-direction: column; align-items: center;
	padding: 9px 18px;
	border: 1.5px solid #e2e8f0;
	border-radius: 9px;
	cursor: pointer;
	background: #fff;
	transition: border-color .15s, background .15s;
	min-width: 80px;
}
.e2p-sz input { display: none; }
.e2p-sz:hover, .e2p-sz--on { border-color: #3b82f6; background: #eff6ff; }
.e2p-sz-name { font-size: 13.5px; font-weight: 700; color: #1e293b; }
.e2p-sz-dim { font-size: 10px; color: #94a3b8; margin-top: 2px; }
.e2p-sz--on .e2p-sz-name { color: #2563eb; }
.e2p-sz--on .e2p-sz-dim { color: #60a5fa; }

/* Responsive */
@media (max-width: 600px) {
	.e2p-page { padding: 0; }
	.e2p-wrap { border-radius: 0; box-shadow: none; min-height: 100vh; }
	.e2p-header { padding: 18px 18px 16px; border-radius: 0; }
	.e2p-notice, .e2p-result, .e2p-form { margin: 0 16px; }
	.e2p-result-actions { flex-direction: column; }
	.e2p-btn--download,
	.e2p-btn--view { width: 100%; justify-content: center; }
	.e2p-drop { padding: 28px 14px; }
	.e2p-sizes { gap: 6px; }
	.e2p-sz { min-width: 72px; padding: 8px 12px; }
}
