/**
 * Feedback Widget Styles
 */

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

/* Trigger button - Vertical tab style positioned below AI button */
.feedback-button {
	position: fixed;
	top: calc(50% + 80px);
	right: 0;
	width: 40px;
	height: 48px;
	border-radius: 8px 0 0 8px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: white;
	border: none;
	border-right: none;
	box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	padding: 12px 8px;
	z-index: 1039;
}

.feedback-button:hover {
	width: 45px;
	box-shadow: -4px 0 15px rgba(16, 185, 129, 0.3);
}

.feedback-button:active {
	width: 38px;
}

.feedback-button.hidden {
	opacity: 0;
	pointer-events: none;
}

/* 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;
}

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

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

.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 */
.offcanvas-footer {
	background: #f9fafb;
}

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

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

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

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

/* Responsive */
@media (max-width: 768px) {
	.feedback-button {
		top: calc(50% + 60px);
		width: 38px;
		height: 44px;
		font-size: 18px;
	}
	
	.feedback-offcanvas {
		width: 90vw !important;
	}
}

@media (max-width: 480px) {
	.feedback-button {
		top: calc(50% + 40px);
		width: 36px;
		height: 40px;
		font-size: 16px;
	}
	
	.feedback-types {
		grid-template-columns: repeat(2, 1fr);
	}
}
