/**
 * Feedback Widget Styles
 */

/* Main widget container */
.feedback-widget {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Trigger button removed. .feedback-button was a 14px edge tab pinned to
   right:0, which placed it on top of .main's scrollbar on every page.
   Send Feedback now lives in the header Help menu (#helpMenu), which targets
   #feedbackOffcanvas directly. */

/* Feedback offcanvas panel */
.feedback-offcanvas {
	width: 400px !important;
	max-width: 90vw;
}

.feedback-offcanvas .offcanvas-header {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: white;
}

.feedback-offcanvas .offcanvas-title i {
	font-size: 20px;
}

/* Body */
.offcanvas-body {
	padding: 20px;
}

/* Type selection buttons */
.feedback-types {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}

.feedback-type-btn {
	cursor: pointer;
}

.feedback-type-btn input {
	display: none;
}

.feedback-type-btn .type-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 8px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.feedback-type-btn .type-content i {
	font-size: 1.25rem;
	margin-bottom: 4px;
	color: #6b7280;
}

.feedback-type-btn .type-content span {
	font-size: 0.75rem;
	color: #6b7280;
}

.feedback-type-btn:hover .type-content {
	border-color: #10b981;
	background: #f0fdf4;
}

.feedback-type-btn.active .type-content {
	border-color: #10b981;
	background: #ecfdf5;
}

.feedback-type-btn.active .type-content i,
.feedback-type-btn.active .type-content span {
	color: #059669;
}

/* Form elements */
.offcanvas-body .form-control {
	border-radius: 8px;
}

.feedback-offcanvas .offcanvas-body .form-control:focus {
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.feedback-offcanvas .offcanvas-body .btn-primary {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	border: none;
	border-radius: 8px;
	padding: 10px 20px;
	font-weight: 500;
}

.feedback-offcanvas .offcanvas-body .btn-primary:hover {
	background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Success message */
.feedback-success {
	text-align: center;
	padding: 20px;
}

.feedback-success .success-icon {
	width: 64px;
	height: 64px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}

.feedback-success .success-icon i {
	font-size: 2rem;
	color: white;
}

.feedback-success h5 {
	color: #059669;
	font-weight: 600;
	margin-bottom: 8px;
}

.feedback-success p {
	color: #6b7280;
	margin-bottom: 8px;
}

.feedback-success .ticket-number {
	font-family: monospace;
	font-size: 0.9rem;
	color: #374151;
	background: #f3f4f6;
	padding: 4px 12px;
	border-radius: 4px;
	display: inline-block;
}

/* Footer */
.feedback-offcanvas .offcanvas-footer {
	background: #f9fafb;
}

.feedback-offcanvas .offcanvas-footer .btn-primary {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	border: none;
	font-weight: 500;
}

.feedback-offcanvas .offcanvas-footer .btn-primary:hover {
	background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.feedback-offcanvas .offcanvas-footer a {
	text-decoration: none;
	transition: color 0.2s;
}

.offcanvas-footer a:hover {
	color: #10b981 !important;
}

/* Responsive */
@media (max-width: 768px) {
	.feedback-offcanvas {
		width: 90vw !important;
	}
}

@media (max-width: 480px) {
	.feedback-types {
		grid-template-columns: repeat(2, 1fr);
	}
}
