/* LucrativeIT Project Manager — Feedback Widget (public-facing) */

#lpm-feedback-root, #lpm-feedback-root * {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#lpm-feedback-root {
	width: 0;
	height: 0;
	overflow: visible;
}

.lpm-fab {
	position: fixed;
	bottom: 24px;
	z-index: 999999;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: none;
	border-radius: 999px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0,0,0,.2);
	transition: transform .18s ease, box-shadow .18s ease;
}
.lpm-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.lpm-fab.lpm-pos-right { right: 24px; }
.lpm-fab.lpm-pos-left { left: 24px; }
.lpm-fab svg { width: 18px; height: 18px; flex-shrink: 0; }

.lpm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 16, 35, .45);
	backdrop-filter: blur(2px);
	z-index: 999998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 20px;
	overflow: hidden;
	animation: lpmFadeIn .15s ease;
}

.lpm-panel {
	width: 100%;
	max-width: 720px;
	max-height: calc(100vh - 48px);
	overflow-x: hidden;
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba(0,0,0,.3);
	padding: 22px;
	animation: lpmPopIn .18s ease;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.lpm-panel h3 { margin: 0 0 4px; font-size: 18px; color: #1e1b2e; }
.lpm-panel p.lpm-sub { margin: 0 0 16px; font-size: 13px; color: #79768c; }

.lpm-field { margin-bottom: 14px; }
.lpm-field label { display: block; font-size: 12px; font-weight: 600; color: #453f5c; margin-bottom: 6px; }
.lpm-field textarea,
.lpm-field input {
	width: 100%;
	max-width: 100%;
	border: 1.5px solid #e6e3f2;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 13.5px;
	color: #29253d;
	font-family: inherit;
	outline: none;
	transition: border-color .15s ease;
	box-sizing: border-box;
}
.lpm-field textarea {
	min-height: 96px;
	resize: vertical;
	line-height: 1.45;
}
.lpm-field input {
	resize: none;
}
.lpm-field textarea:focus,
.lpm-field input:focus { border-color: var(--lpm-accent, #6C5CE7); }

.lpm-screenshot-preview {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	border: 1.5px solid #e6e3f2;
	margin-bottom: 14px;
}
.lpm-screenshot-preview img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}
.lpm-screenshot-scroll {
	overflow: auto;
	max-height: 420px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.lpm-annotate-canvas {
	display: block;
	width: 100%;
	height: auto;
	touch-action: none;
}
.lpm-screenshot-preview .lpm-retake {
	position: absolute;
	top: 8px; left: 8px;
	background: rgba(0,0,0,.65);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 11px;
	padding: 5px 9px;
	cursor: pointer;
}

.lpm-zoom-controls {
	position: absolute;
	top: 8px; right: 8px;
	display: flex;
	align-items: center;
	gap: 2px;
	background: rgba(0,0,0,.65);
	border-radius: 8px;
	padding: 2px 4px;
}
.lpm-zoom-btn {
	background: transparent;
	color: #fff;
	border: none;
	font-size: 15px;
	line-height: 1;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	cursor: pointer;
}
.lpm-zoom-btn:hover { background: rgba(255,255,255,.18); }
.lpm-zoom-label {
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	min-width: 36px;
	text-align: center;
}

.lpm-annotate-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
	padding: 6px 8px;
	background: #f5f3ff;
	border: 1.5px solid #e6e3f2;
	border-radius: 10px;
}
.lpm-annotate-tools { display: flex; gap: 4px; }
.lpm-annotate-tool {
	width: 30px;
	height: 30px;
	border: 1.5px solid transparent;
	border-radius: 8px;
	background: #fff;
	color: #453f5c;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color .12s ease, background .12s ease;
}
.lpm-annotate-tool:hover { border-color: #d4ccf8; }
.lpm-annotate-tool.is-active {
	background: var(--lpm-accent, #6C5CE7);
	border-color: var(--lpm-accent, #6C5CE7);
	color: #fff;
}
.lpm-annotate-colors { display: flex; gap: 5px; align-items: center; }
.lpm-annotate-color {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1.5px #d9d5ea;
	cursor: pointer;
	padding: 0;
	transition: transform .1s ease, box-shadow .12s ease;
}
.lpm-annotate-color:hover { transform: scale(1.12); }
.lpm-annotate-color.is-active { box-shadow: 0 0 0 2px var(--lpm-accent, #6C5CE7); }
.lpm-annotate-actions { margin-left: auto; display: flex; gap: 6px; }
.lpm-annotate-undo {
	background: #fff;
	border: 1.5px solid #e6e3f2;
	border-radius: 8px;
	color: #453f5c;
	font-size: 11.5px;
	font-weight: 600;
	padding: 6px 10px;
	cursor: pointer;
}
.lpm-annotate-undo:hover { border-color: #d4ccf8; }
.lpm-annotate-undo[disabled] { opacity: .45; cursor: not-allowed; }
.lpm-annotate-delete:not([disabled]) { color: #e74c3c; border-color: #f5c9c4; }
.lpm-annotate-delete:not([disabled]):hover { border-color: #e74c3c; }

.lpm-capturing-note {
	font-size: 12px;
	color: #79768c;
	background: #f5f3ff;
	border-radius: 8px;
	padding: 8px 10px;
	margin-bottom: 14px;
}

.lpm-actions { display: flex; gap: 10px; margin-top: 4px; }
.lpm-btn {
	flex: 1;
	padding: 11px 14px;
	border-radius: 10px;
	border: none;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .15s ease, transform .1s ease;
}
.lpm-btn:active { transform: scale(.98); }
.lpm-btn-primary { background: var(--lpm-accent, #6C5CE7); color: #fff; }
.lpm-btn-secondary { background: #f0eefb; color: #453f5c; }
.lpm-btn[disabled] { opacity: .55; cursor: not-allowed; }

.lpm-success {
	text-align: center;
	padding: 20px 4px 6px;
}
.lpm-success .lpm-check {
	width: 52px; height: 52px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: #e7fbf3;
	color: #00b894;
	display: flex; align-items: center; justify-content: center;
	font-size: 26px;
}
.lpm-success h4 { margin: 0 0 4px; font-size: 16px; color: #1e1b2e; }
.lpm-success p { margin: 0; font-size: 13px; color: #79768c; }

.lpm-inline-feedback-btn {
	background: var(--lpm-accent, #6C5CE7);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 10px 18px;
	font-weight: 600;
	font-size: 13.5px;
	cursor: pointer;
}

.lpm-field label .lpm-required { color: #e74c3c; }

.lpm-error-text { color: #e74c3c; font-size: 12.5px; margin: -6px 0 12px; }

body.lpm-modal-open {
	overflow: hidden;
}

@keyframes lpmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lpmPopIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
