/**
 * Self Check-in Styles for Launch Zone Bay Booking System
 */

/* Container */
.lz-self-checkin-container {
	max-width: 600px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Header */
.lz-checkin-header {
	text-align: center;
	margin-bottom: 2rem;
}

.lz-checkin-title {
	font-size: 2rem;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 0.5rem 0;
}

.lz-checkin-subtitle {
	font-size: 1rem;
	color: #666;
	margin: 0;
}

/* Steps */
.lz-checkin-step {
	animation: lz-fade-in 0.3s ease-out;
}

@keyframes lz-fade-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Form */
.lz-checkin-form {
	background: #fff;
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lz-form-group {
	margin-bottom: 1.25rem;
}

.lz-form-group-half {
	flex: 1;
}

.lz-form-row {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.lz-form-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: #333;
	margin-bottom: 0.5rem;
}

.lz-form-label .lz-optional {
	color: #888;
	font-weight: 400;
}

.lz-form-input {
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.lz-form-input:focus {
	outline: none;
	border-color: #007bff;
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.lz-form-input::placeholder {
	color: #aaa;
}

/* Divider */
.lz-form-divider {
	display: flex;
	align-items: center;
	margin: 1.5rem 0;
	color: #888;
	font-size: 0.875rem;
}

.lz-form-divider::before,
.lz-form-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e0e0e0;
}

.lz-form-divider span {
	padding: 0 1rem;
}

/* Note */
.lz-form-note {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem;
	background: #e7f3ff;
	border-radius: 8px;
	font-size: 0.875rem;
	color: #0056b3;
	margin-bottom: 1.5rem;
}

.lz-icon-info::before {
	content: 'ℹ';
	font-style: normal;
}

/* Actions */
.lz-form-actions {
	text-align: center;
}

.lz-checkin-actions {
	text-align: center;
	margin-top: 2rem;
}

.lz-checkin-footer {
	text-align: center;
	margin-top: 1.5rem;
}

/* Buttons */
.lz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	border-radius: 8px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
	background: none;
}

.lz-btn-primary {
	background: #007bff;
	color: #fff;
	border-color: #007bff;
}

.lz-btn-primary:hover {
	background: #0056b3;
	border-color: #0056b3;
}

.lz-btn-success {
	background: #28a745;
	color: #fff;
	border-color: #28a745;
}

.lz-btn-success:hover {
	background: #1e7e34;
	border-color: #1e7e34;
}

.lz-btn-outline {
	background: #fff;
	color: #333;
	border-color: #ddd;
}

.lz-btn-outline:hover {
	background: #0056b3;
	border-color: #0056b3;
}

.lz-btn-link {
	color: #007bff;
	border: none;
	padding: 0.5rem;
}

.lz-btn-link:hover {
	color: #0056b3;
	text-decoration: underline;
}

.lz-btn-lg {
	padding: 1rem 2rem;
	font-size: 1.125rem;
}

.lz-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Spinner */
.lz-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: lz-spin 0.75s linear infinite;
}

@keyframes lz-spin {
	to { transform: rotate(360deg); }
}

/* Details Card */
.lz-detail-card {
	background: #fff;
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 1rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lz-detail-section-title {
	font-size: 1.125rem;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 1rem 0;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #eee;
}

.lz-detail-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 0.625rem 0;
	border-bottom: 1px solid #f5f5f5;
}

.lz-detail-row:last-child {
	border-bottom: none;
}

.lz-detail-label {
	font-weight: 500;
	color: #555;
	flex-shrink: 0;
	margin-right: 1rem;
}

.lz-detail-value {
	color: #333;
	text-align: right;
	word-break: break-word;
}

.lz-confirmation-code {
	font-family: 'SF Mono', Monaco, monospace;
	font-size: 1.125rem;
	font-weight: 600;
	color: #007bff;
	background: #e7f3ff;
	padding: 0.25rem 0.75rem;
	border-radius: 6px;
}

.lz-bay-numbers {
	font-weight: 600;
	color: #28a745;
}

.lz-inrange-code {
	font-family: 'SF Mono', Monaco, monospace;
	font-size: 1.125rem;
	font-weight: 600;
	color: #6f42c1;
	background: #f3e7ff;
	padding: 0.25rem 0.75rem;
	border-radius: 6px;
}

.lz-inrange-row {
	background: #f8f9fa;
	border-radius: 6px;
	padding: 0.5rem;
	margin-top: 0.5rem;
}

/* Status Badge */
.lz-checkin-status {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	padding: 0.75rem;
	background: #d4edda;
	border-radius: 8px;
}

.lz-status-label {
	font-weight: 500;
	color: #155724;
}

.lz-status-value {
	font-weight: 600;
	color: #155724;
}

.lz-status-value.checked-in {
	color: #28a745;
}

/* Payment Card */
.lz-payment-card {
	background: #f8f9fa;
}

.lz-payment-row {
	display: flex;
	justify-content: space-between;
	padding: 0.5rem 0;
	font-size: 0.9375rem;
}

.lz-payment-row:last-child {
	border-top: 2px solid #dee2e6;
	margin-top: 0.5rem;
	padding-top: 1rem;
}

.lz-payment-total {
	font-size: 1.125rem;
	font-weight: 600;
	color: #1a1a1a;
}

/* Notice */
.lz-checkin-notice {
	margin-top: 1rem;
	padding: 1rem;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 8px;
	text-align: center;
}

.lz-checkin-notice p {
	margin: 0;
	color: #856404;
}

/* Error Container */
.lz-checkin-error {
	background: #fff;
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	text-align: center;
}

.lz-error-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.lz-error-icon {
	width: 64px;
	height: 64px;
}

.lz-error-icon svg {
	width: 100%;
	height: 100%;
}

.lz-error-message {
	color: #721c24;
	font-size: 1rem;
	margin: 0;
}

/* Success Container */
.lz-checkin-success {
	background: #fff;
	border-radius: 12px;
	padding: 2.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	text-align: center;
}

.lz-success-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 1.5rem;
}

.lz-success-icon svg {
	width: 100%;
	height: 100%;
}

.lz-success-title {
	font-size: 1.75rem;
	font-weight: 600;
	color: #155724;
	margin: 0 0 1rem 0;
}

.lz-success-message {
	font-size: 1rem;
	color: #555;
	margin: 0 0 1.5rem 0;
	line-height: 1.5;
}

.lz-success-details {
	background: #d4edda;
	border-radius: 8px;
	padding: 1rem 1.5rem;
	margin-bottom: 1.5rem;
	text-align: left;
}

.lz-success-row {
	display: flex;
	justify-content: space-between;
	padding: 0.5rem 0;
}

.lz-success-label {
	font-weight: 500;
	color: #155724;
}

.lz-success-value {
	font-weight: 600;
	color: #155724;
}

.lz-success-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: center;
}

/* Responsive */
@media (max-width: 600px) {
	.lz-self-checkin-container {
		padding: 1rem;
	}
	
	.lz-checkin-form,
	.lz-detail-card,
	.lz-checkin-success,
	.lz-checkin-error {
		padding: 1.25rem;
	}
	
	.lz-form-row {
		flex-direction: column;
		gap: 0;
	}
	
	.lz-checkin-title {
		font-size: 1.5rem;
	}
	
	.lz-btn-lg {
		padding: 0.875rem 1.5rem;
		font-size: 1rem;
		width: 100%;
	}
	
	.lz-success-actions {
		width: 100%;
	}
	
	.lz-success-actions .lz-btn {
		width: 100%;
	}
}

/* Animation for loading state */
.lz-is-loading .lz-btn-text {
	opacity: 0.7;
}

/* Hide elements */
.lz-hidden {
	display: none !important;
}

/* Booking List Styles */
.lz-booking-list {
	background: #fff;
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	animation: lz-fade-in 0.3s ease-out;
}

.lz-booking-list h3 {
	margin: 0 0 0.5rem 0;
	font-size: 1.5rem;
	color: #1a1a1a;
}

.lz-booking-list > p {
	margin: 0 0 1.5rem 0;
	color: #666;
}

.lz-booking-items {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.lz-booking-item {
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 1.25rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.lz-booking-item:hover {
	border-color: #007bff;
	box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.lz-booking-item.available {
	border-left: 4px solid #28a745;
}

.lz-booking-item.unavailable {
	border-left: 4px solid #ffc107;
	opacity: 0.9;
}

.lz-booking-item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
}

.lz-booking-code {
	font-weight: 600;
	font-size: 1.1rem;
	color: #007bff;
}

.lz-booking-status {
	font-size: 0.875rem;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-weight: 500;
}

.lz-booking-item.available .lz-booking-status {
	background: #d4edda;
	color: #155724;
}

.lz-booking-item.unavailable .lz-booking-status {
	background: #fff3cd;
	color: #856404;
}

.lz-booking-item-details {
	font-size: 0.95rem;
	color: #555;
}

.lz-booking-item-details > div {
	margin-bottom: 0.35rem;
}

.lz-booking-item-details strong {
	color: #333;
}

.lz-time-remaining {
	font-size: 0.875rem;
	color: #856404;
	font-weight: 500;
	margin-top: 0.5rem;
	padding: 0.5rem;
	background: #fff3cd;
	border-radius: 4px;
}

#lz-booking-list-container {
	display: none;
}

#lz-booking-list-container.lz-checkin-step {
	display: block;
}

/* Modal */
.lz-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lz-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	animation: lz-fade-in 0.2s ease-out;
}

.lz-modal-content {
	position: relative;
	background: #fff;
	border-radius: 16px;
	padding: 2rem;
	width: 100%;
	max-width: 420px;
	margin: 1rem;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
	animation: lz-modal-in 0.3s ease-out;
}

@keyframes lz-modal-in {
	from { opacity: 0; transform: translateY(20px) scale(0.96); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.lz-modal-header {
	text-align: center;
	margin-bottom: 1.25rem;
}

.lz-modal-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 1rem;
}

.lz-modal-icon svg {
	width: 100%;
	height: 100%;
}

.lz-modal-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0;
}

.lz-modal-body {
	margin-bottom: 1.5rem;
}

.lz-modal-text {
	font-size: 0.95rem;
	color: #555;
	margin: 0 0 1rem 0;
	text-align: center;
}

.lz-modal-booking-info {
	background: #f8f9fa;
	border-radius: 10px;
	padding: 1rem 1.25rem;
}

.lz-modal-booking-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 0;
	border-bottom: 1px solid #e9ecef;
	font-size: 0.9375rem;
}

.lz-modal-booking-row:last-child {
	border-bottom: none;
}

.lz-modal-label {
	color: #666;
	font-weight: 500;
}

.lz-modal-value {
	color: #1a1a1a;
	font-weight: 600;
}

.lz-modal-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
}

.lz-modal-actions .lz-btn {
	flex: 1;
	padding: 0.875rem 1rem;
	font-size: 1rem;
	border-radius: 10px;
}

@media (max-width: 600px) {
	.lz-modal-content {
		padding: 1.5rem;
		margin: 1rem;
	}

	.lz-modal-title {
		font-size: 1.25rem;
	}
}
