/* Reset and base styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	line-height: 1.6;
	color: #e0e0e0;
	background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
	min-height: 100vh;
}

.container {
	max-width: 800px;
	margin: 0 auto;
	padding: 1rem;
}

/* Header styles */
header {
	text-align: center;
	margin-bottom: 1.5rem;
	color: white;
}

header h1 {
	font-size: 2rem;
	font-weight: 300;
	margin-bottom: 0;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	color: #ffffff;
}

/* Main content */
main {
	background: #1a1a1a;
	border: 1px solid #333;
	border-radius: 20px;
	padding: 1.5rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
	text-align: center;
	margin-top: 2rem;
	padding: 1rem;
}

.pendrica-logo {
	height: 30px;
	width: auto;
	opacity: 0.8;
	transition: opacity 0.3s ease;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.pendrica-logo:hover {
	opacity: 1;
}

/* Input section */
.input-section {
	margin-bottom: 1rem;
}

.input-section input {
	width: 100%;
	padding: 0.75rem;
	background: #0a0a0a;
	color: #e0e0e0;
	border: 1px solid #333;
	border-radius: 12px;
	font-size: 1rem;
	font-family: inherit;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.input-section input:focus {
	outline: none;
	border-color: #00ffff;
	box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.2);
}

.input-section input::placeholder {
	color: #666;
}

/* Options section */
.options-section {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: #f8f9fa;
	border-radius: 12px;
}

.option-group {
	display: flex;
	align-items: center;
}

.option-group label {
	display: flex;
	align-items: center;
	cursor: pointer;
	font-weight: 300;
	color: #555;
}

.option-group input[type="checkbox"] {
	margin-right: 0.75rem;
	width: 18px;
	height: 18px;
	accent-color: #667eea;
}

/* Button styles */
.btn {
	padding: 0.875rem 1.5rem;
	border: 1px solid #333;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 400;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	background: #1a1a1a;
	color: #e0e0e0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
	background: linear-gradient(135deg, #00ffff 0%, #00ff00 100%);
	color: #000;
	box-shadow: 0 4px 16px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
}

.btn-secondary {
	background: #1a1a1a;
	color: #e0e0e0;
	border: 1px solid #333;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
	background: #00ffff;
	color: #000;
	border-color: #00ffff;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(0, 255, 255, 0.3);
}

/* QR Result section */
.qr-result {
	text-align: center;
	padding: 1rem;
	background: #0a0a0a;
	border: 1px solid #333;
	border-radius: 16px;
	margin-top: 1rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.qr-result.hidden {
	display: none;
}

.qr-preview {
	margin-bottom: 1rem;
}

.qr-container-wrapper {
	position: relative;
	display: inline-block;
	background: #ffffff;
	padding: 0.5rem;
	border: 1px solid #333;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#qr-container {
	display: block;
}

.copy-canvas-btn {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 36px;
	height: 36px;
	background: rgba(0, 255, 255, 0.1);
	color: #00ffff;
	border: 1px solid #00ffff;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	transition: all 0.3s ease;
	z-index: 10;
	backdrop-filter: blur(4px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.copy-canvas-btn:hover {
	background: #00ffff;
	color: #000;
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

.copy-canvas-btn:active {
	transform: scale(0.95);
}

#qr-container canvas,
#qr-container svg {
	border-radius: 0;
}

.download-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.download-options .btn {
	flex: 1;
	min-width: 150px;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
	.container {
		padding: 0.5rem;
	}

	header h1 {
		font-size: 1.5rem;
	}

	main {
		padding: 1rem;
	}

	.download-options {
		flex-direction: column;
	}

	.download-options .btn {
		min-width: auto;
		width: 100%;
	}
}

@media (max-width: 480px) {
	header h1 {
		font-size: 1.25rem;
	}

	header p {
		font-size: 0.9rem;
	}

	main {
		padding: 0.75rem;
	}
}

/* Loading state */
.loading {
	opacity: 0.7;
	background-image: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
	0% { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}

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

/* Success/error states */
.success {
	border-color: #28a745 !important;
	background-color: #d4edda !important;
}

.error {
	border-color: #dc3545 !important;
	background-color: #f8d7da !important;
}
