/**
 * Cashier Frontend Styles
 * Modern, clean interface for managing cashiers
 */

/* Container */
.mlet-checker-manager-wrap {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

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

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

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

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

.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);
	transition: transform 0.3s ease;
}

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

.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-icon {
	font-size: 48px;
	line-height: 1;
}

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

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

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

/* Actions Bar */
.mlet-actions-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	flex-wrap: wrap;
	gap: 15px;
}

/* Buttons */
.mlet-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
}

.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);
	color: white;
}

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

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

.mlet-btn-large {
	padding: 16px 32px;
	font-size: 16px;
}

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

/* Filters Bar */
.mlet-filters-bar {
	display: flex;
	gap: 15px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.mlet-search-box {
	flex: 1;
	min-width: 300px;
	position: relative;
}

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

#mlet-search-cashiers {
	width: 100%;
	padding: 12px 15px 12px 45px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 15px;
	transition: all 0.3s ease;
}

#mlet-search-cashiers:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mlet-select {
	padding: 12px 15px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 15px;
	cursor: pointer;
	background: white;
	transition: all 0.3s ease;
}

.mlet-select:focus {
	outline: none;
	border-color: #667eea;
}

/* Checkers Grid */
.mlet-checkers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.mlet-checker-card {
	background: white;
	border-radius: 16px;
	padding: 25px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.mlet-checker-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	border-color: #667eea;
}

.mlet-checker-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 15px;
}

.mlet-checker-avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: white;
	font-weight: 700;
	margin-right: 15px;
}

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

.mlet-checker-name {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 5px 0;
}

.mlet-checker-username {
	font-size: 14px;
	color: #666;
	display: flex;
	align-items: center;
	gap: 5px;
}

.mlet-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.mlet-status-badge.active {
	background: #d4edda;
	color: #155724;
}

.mlet-status-badge.inactive {
	background: #f8d7da;
	color: #721c24;
}

.mlet-checker-details {
	margin: 15px 0;
	padding: 15px 0;
	border-top: 1px solid #f0f0f0;
	border-bottom: 1px solid #f0f0f0;
}

.mlet-detail-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 14px;
	color: #666;
}

.mlet-detail-row:last-child {
	margin-bottom: 0;
}

.mlet-detail-row.mlet-warning-row {
	color: #d97706;
	background: #fef3c7;
	padding: 8px 12px;
	border-radius: 6px;
	font-weight: 600;
}

.mlet-detail-icon {
	font-size: 16px;
}

.mlet-checker-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin-bottom: 15px;
}

.mlet-stat-box {
	text-align: center;
	padding: 12px;
	background: #f8f9fa;
	border-radius: 8px;
}

.mlet-stat-box-value {
	font-size: 24px;
	font-weight: 700;
	color: #667eea;
	margin-bottom: 3px;
}

.mlet-stat-box-label {
	font-size: 12px;
	color: #666;
	text-transform: uppercase;
}

.mlet-checker-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.mlet-action-btn {
	flex: 1;
	padding: 10px;
	border: none;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.mlet-action-btn.edit {
	background: #e3f2fd;
	color: #1976d2;
}

.mlet-action-btn.edit:hover {
	background: #1976d2;
	color: white;
}

.mlet-action-btn.toggle {
	background: #fff3e0;
	color: #f57c00;
}

.mlet-action-btn.toggle:hover {
	background: #f57c00;
	color: white;
}

.mlet-action-btn.delete {
	background: #ffebee;
	color: #c62828;
}

.mlet-action-btn.delete:hover {
	background: #c62828;
	color: white;
}

.mlet-action-btn.assign-events {
	background: #e8f5e9;
	color: #2e7d32;
	font-weight: 700;
}

.mlet-action-btn.assign-events:hover {
	background: #2e7d32;
	color: white;
}

/* Loading State */
.mlet-loading-state {
	text-align: center;
	padding: 80px 20px;
	color: #666;
}

.mlet-spinner {
	width: 50px;
	height: 50px;
	margin: 0 auto 20px;
	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); }
}

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

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

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

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

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

.mlet-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(5px);
}

.mlet-modal-container {
	position: relative;
	width: 100%;
	max-width: 600px;
	max-height: 90vh;
	overflow: auto;
}

.mlet-modal-content {
	background: white;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: modalFadeIn 0.3s ease;
}

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

.mlet-modal-header {
	padding: 25px 30px;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f8f9fa;
	border-radius: 20px 20px 0 0;
}

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

.mlet-modal-close {
	background: none;
	border: none;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.mlet-modal-close:hover {
	background: #e0e0e0;
	color: #000;
}

.mlet-modal-body {
	padding: 30px;
}

.mlet-modal-footer {
	padding: 20px 30px;
	border-top: 1px solid #e0e0e0;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	background: #f8f9fa;
	border-radius: 0 0 20px 20px;
}

/* Form */
.mlet-form-group {
	margin-bottom: 20px;
}

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

.mlet-form-group input[type="text"],
.mlet-form-group input[type="email"],
.mlet-form-group input[type="tel"],
.mlet-form-group input[type="password"] {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 15px;
	transition: all 0.3s ease;
}

.mlet-form-group input:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mlet-form-group small {
	display: block;
	margin-top: 5px;
	font-size: 13px;
	color: #666;
}

.mlet-form-group .required {
	color: #e53e3e;
	font-weight: 700;
}

.mlet-form-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.mlet-password-field {
	display: flex;
	gap: 10px;
}

.mlet-password-field input {
	flex: 1;
}

.mlet-checkbox-label {
	display: flex !important;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-weight: 500 !important;
}

.mlet-checkbox-label input[type="checkbox"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
}

/* Notices */
.mlet-notice {
	padding: 15px 20px;
	border-radius: 8px;
	margin: 20px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.mlet-notice.success {
	background: #d4edda;
	color: #155724;
	border-left: 4px solid #28a745;
}

.mlet-notice.error {
	background: #f8d7da;
	color: #721c24;
	border-left: 4px solid #dc3545;
}

.mlet-notice .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

/* Info Boxes */
.mlet-info-box {
	padding: 15px 20px;
	border-radius: 8px;
	margin: 15px 0;
	border-left: 4px solid;
}

.mlet-info-box strong {
	display: block;
	margin-bottom: 5px;
}

.mlet-info-warning {
	background: #fff3cd;
	border-color: #ffc107;
	color: #856404;
}

.mlet-events-summary {
	padding: 15px;
	background: #f0f0f0;
	border-radius: 8px;
	margin-top: 15px;
}

.mlet-events-summary strong {
	display: block;
	margin-bottom: 8px;
	color: #1a1a1a;
}

.mlet-events-summary #events-summary-text {
	color: #666;
}

/* Events Selection */
.mlet-events-list {
	max-height: 300px;
	overflow-y: auto;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 10px;
	background: #f9f9f9;
}

.mlet-events-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mlet-event-checkbox {
	display: flex !important;
	align-items: center;
	padding: 12px 15px;
	background: white;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	gap: 12px;
}

.mlet-event-checkbox:hover {
	border-color: #667eea;
	background: #f8f9ff;
}

.mlet-event-checkbox input[type="checkbox"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
	flex-shrink: 0;
}

.mlet-event-checkbox input[type="checkbox"]:checked ~ .mlet-event-name {
	color: #667eea;
	font-weight: 600;
}

.mlet-event-name {
	flex: 1;
	font-weight: 500;
	color: #1a1a1a;
}

.mlet-event-date {
	font-size: 13px;
	color: #666;
	background: #f0f0f0;
	padding: 4px 10px;
	border-radius: 12px;
}

.mlet-loading-events,
.mlet-no-events {
	text-align: center;
	padding: 30px;
	color: #666;
	font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
	.mlet-checker-manager-wrap {
		padding: 0 15px;
	}
	
	.mlet-frontend-header h1 {
		font-size: 28px;
	}
	
	.mlet-quick-stats {
		grid-template-columns: 1fr;
	}
	
	.mlet-actions-bar {
		flex-direction: column;
		align-items: stretch;
	}
	
	.mlet-filters-bar {
		flex-direction: column;
	}
	
	.mlet-search-box {
		min-width: 100%;
	}
	
	.mlet-checkers-grid {
		grid-template-columns: 1fr;
	}
	
	.mlet-form-row-2 {
		grid-template-columns: 1fr;
	}
	
	.mlet-password-field {
		flex-direction: column;
	}
	
	.mlet-checker-actions {
		flex-direction: column;
	}
	
	.mlet-action-btn {
		width: 100%;
	}
}

