/**
 * Form Responses Reports Styles
 */

.mlet-form-reports-wrap,
.mlet-cashier-reports-wrap {
	max-width: 1400px;
	margin: 40px auto;
	padding: 0 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Header */
.mlet-reports-header {
	text-align: center;
	margin-bottom: 40px;
}

.mlet-reports-header h1 {
	font-size: 36px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 10px 0;
}

.mlet-subtitle {
	font-size: 16px;
	color: #666;
	margin: 0;
}

/* Stats Grid */
.mlet-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.mlet-stat-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 25px;
	border-radius: 16px;
	color: white;
	display: flex;
	align-items: center;
	gap: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mlet-stat-card:nth-child(2) {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.mlet-stat-card:nth-child(3) {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.mlet-stat-card:nth-child(4) {
	background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.mlet-stat-icon {
	font-size: 48px;
	line-height: 1;
}

.mlet-stat-info {
	flex: 1;
}

.mlet-stat-value {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 5px;
}

.mlet-stat-label {
	font-size: 14px;
	opacity: 0.9;
}

/* Notifications */
.mlet-notifications {
	background: white;
	padding: 20px;
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	margin-bottom: 30px;
}

.mlet-notification-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 2px solid #f0f0f0;
}

.mlet-notification-header span {
	font-weight: 700;
	font-size: 18px;
	color: #1a1a1a;
}

.mlet-clear-notifications {
	background: none;
	border: none;
	color: #999;
	cursor: pointer;
	font-size: 13px;
}

.mlet-clear-notifications:hover {
	color: #667eea;
}

.mlet-notification-item {
	padding: 15px;
	background: #f8f9ff;
	border-left: 4px solid #667eea;
	border-radius: 8px;
	margin-bottom: 10px;
	animation: slideIn 0.3s ease;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.mlet-notification-item.new {
	background: #e8f5e9;
	border-color: #4caf50;
}

.mlet-notification-time {
	font-size: 12px;
	color: #999;
	margin-bottom: 5px;
}

.mlet-notification-text {
	font-size: 14px;
	color: #1a1a1a;
}

.mlet-notification-details {
	font-size: 13px;
	color: #666;
	margin-top: 5px;
}

/* Filters */
.mlet-reports-filters {
	background: white;
	padding: 25px;
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	margin-bottom: 30px;
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	align-items: flex-end;
}

.mlet-filter-group {
	flex: 1;
	min-width: 180px;
}

.mlet-filter-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #1a1a1a;
	font-size: 14px;
}

.mlet-select {
	width: 100%;
	padding: 10px 15px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	background: white;
}

.mlet-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.mlet-btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.mlet-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.mlet-btn-secondary {
	background: #f5f5f5;
	color: #333;
}

.mlet-btn-secondary:hover {
	background: #e0e0e0;
}

/* Tabs */
.mlet-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 30px;
	border-bottom: 2px solid #e0e0e0;
	overflow-x: auto;
}

.mlet-tab {
	padding: 12px 24px;
	border: none;
	background: none;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	color: #666;
	border-bottom: 3px solid transparent;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.mlet-tab:hover {
	color: #667eea;
}

.mlet-tab.active {
	color: #667eea;
	border-bottom-color: #667eea;
}

/* Tab Content */
.mlet-tab-content {
	display: none;
	background: white;
	padding: 30px;
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	margin-bottom: 30px;
}

.mlet-tab-content.active {
	display: block;
}

.mlet-tab-content h2 {
	margin-top: 0;
	color: #1a1a1a;
	font-size: 24px;
}

/* Report Table */
.mlet-report-table-container {
	overflow-x: auto;
}

.mlet-report-table {
	width: 100%;
	border-collapse: collapse;
}

.mlet-report-table thead {
	background: #f8f9fa;
}

.mlet-report-table th {
	padding: 15px;
	text-align: left;
	font-weight: 600;
	color: #1a1a1a;
	border-bottom: 2px solid #e0e0e0;
}

.mlet-report-table td {
	padding: 12px 15px;
	border-bottom: 1px solid #f0f0f0;
}

.mlet-report-table tbody tr:hover {
	background: #f8f9ff;
}

/* Payment Methods Grid */
.mlet-payment-methods-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.mlet-payment-card {
	background: white;
	padding: 30px;
	border-radius: 16px;
	text-align: center;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.mlet-payment-card:hover {
	transform: translateY(-5px);
}

.mlet-payment-icon {
	font-size: 48px;
	margin-bottom: 15px;
}

.mlet-payment-label {
	font-size: 16px;
	font-weight: 600;
	color: #666;
	margin-bottom: 10px;
}

.mlet-payment-amount {
	font-size: 32px;
	font-weight: 700;
	color: #667eea;
	margin-bottom: 5px;
}

.mlet-payment-count {
	font-size: 14px;
	color: #999;
}

/* Loading */
.mlet-loading {
	text-align: center;
	padding: 40px;
	color: #666;
}

.mlet-spinner {
	width: 40px;
	height: 40px;
	margin: 0 auto 15px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #667eea;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Export Section */
.mlet-export-section {
	text-align: center;
	margin-top: 30px;
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Search Box */
.mlet-search-box {
	position: relative;
	margin-bottom: 20px;
}

.mlet-search-icon {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 18px;
	color: #999;
}

#search-transactions {
	width: 100%;
	padding: 12px 15px 12px 45px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 15px;
}

/* Event Selector Section */
.mlet-event-selector-section {
	background: white;
	padding: 30px;
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	margin-bottom: 30px;
}

.mlet-event-selector-header {
	text-align: center;
	margin-bottom: 25px;
}

.mlet-event-selector-header h2 {
	margin: 0 0 10px 0;
	color: #1a1a1a;
	font-size: 24px;
}

.mlet-event-selector-header p {
	margin: 0;
	color: #666;
	font-size: 15px;
}

.mlet-event-selector {
	display: flex;
	gap: 15px;
	align-items: flex-end;
	max-width: 800px;
	margin: 0 auto;
}

.mlet-event-selector .mlet-filter-group {
	flex: 1;
}

/* Empty State */
.mlet-empty-state {
	text-align: center;
	padding: 60px 20px;
	background: white;
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	margin-bottom: 30px;
}

.mlet-empty-icon {
	font-size: 64px;
	margin-bottom: 20px;
	opacity: 0.5;
}

.mlet-empty-state h3 {
	margin: 0 0 10px 0;
	color: #1a1a1a;
	font-size: 22px;
}

.mlet-empty-state p {
	margin: 0;
	color: #666;
	font-size: 15px;
}

/* Event Info Card */
.mlet-event-info-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 25px 30px;
	border-radius: 16px;
	margin-bottom: 30px;
	box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.mlet-event-info-card h3 {
	margin: 0 0 10px 0;
	font-size: 24px;
	font-weight: 700;
}

.mlet-event-meta {
	display: flex;
	gap: 20px;
	font-size: 14px;
	opacity: 0.9;
}

.mlet-event-meta span::before {
	content: '•';
	margin-right: 8px;
}

.mlet-event-meta span:first-child::before {
	content: '';
	margin: 0;
}

/* Results Container */
.mlet-results-container {
	background: white;
	padding: 30px;
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	margin-top: 30px;
}

.mlet-results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 2px solid #f0f0f0;
}

.mlet-results-header h2 {
	margin: 0;
	font-size: 22px;
	color: #1a1a1a;
}

.mlet-results-actions {
	display: flex;
	gap: 10px;
}

/* Responses Table */
.mlet-table-container {
	overflow-x: auto;
}

.mlet-responses-table {
	width: 100%;
	border-collapse: collapse;
}

.mlet-responses-table thead {
	background: #f8f9fa;
}

.mlet-responses-table th {
	padding: 15px;
	text-align: left;
	font-weight: 600;
	color: #1a1a1a;
	border-bottom: 2px solid #e0e0e0;
	white-space: nowrap;
}

.mlet-responses-table td {
	padding: 12px 15px;
	border-bottom: 1px solid #f0f0f0;
}

.mlet-responses-table tbody tr:hover {
	background: #f8f9ff;
}

.mlet-badge {
	display: inline-block;
	padding: 4px 12px;
	background: #e3f2fd;
	color: #1976d2;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 600;
}

.mlet-btn-icon {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	padding: 5px 10px;
	transition: transform 0.2s;
}

.mlet-btn-icon:hover {
	transform: scale(1.2);
}

/* Modal */
.mlet-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mlet-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
}

.mlet-modal-content {
	position: relative;
	background: white;
	border-radius: 16px;
	max-width: 700px;
	width: 90%;
	max-height: 80vh;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	z-index: 1;
}

.mlet-modal-header {
	padding: 25px 30px;
	border-bottom: 2px solid #f0f0f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.mlet-modal-header h3 {
	margin: 0;
	font-size: 22px;
	color: #1a1a1a;
}

.mlet-modal-close {
	background: none;
	border: none;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	color: #999;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mlet-modal-close:hover {
	color: #333;
}

.mlet-modal-body {
	padding: 30px;
	max-height: calc(80vh - 160px);
	overflow-y: auto;
}

.mlet-modal-footer {
	padding: 20px 30px;
	border-top: 2px solid #f0f0f0;
	text-align: right;
}

/* Detail Sections */
.mlet-detail-section {
	margin-bottom: 25px;
	padding-bottom: 25px;
	border-bottom: 1px solid #f0f0f0;
}

.mlet-detail-section:last-child {
	border-bottom: none;
}

.mlet-detail-section h4 {
	margin: 0 0 15px 0;
	font-size: 18px;
	color: #667eea;
}

.mlet-detail-section p {
	margin: 8px 0;
	font-size: 15px;
	color: #333;
}

/* Response Items */
.mlet-responses-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.mlet-response-item {
	padding: 15px;
	background: #f8f9ff;
	border-left: 4px solid #667eea;
	border-radius: 8px;
}

.mlet-response-label {
	font-size: 13px;
	font-weight: 600;
	color: #666;
	margin-bottom: 5px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mlet-response-value {
	font-size: 15px;
	color: #1a1a1a;
	line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
	.mlet-form-reports-wrap,
	.mlet-cashier-reports-wrap {
		padding: 0 15px;
	}
	
	.mlet-reports-header h1 {
		font-size: 28px;
	}
	
	.mlet-stats-grid {
		grid-template-columns: 1fr;
	}
	
	.mlet-reports-filters {
		flex-direction: column;
	}
	
	.mlet-filter-group {
		min-width: 100%;
	}
	
	.mlet-tabs {
		justify-content: flex-start;
	}
	
	.mlet-payment-methods-grid {
		grid-template-columns: 1fr;
	}
	
	.mlet-export-section {
		flex-direction: column;
	}
}
