
/* Camera Calculator - Black & White Minimalist Design */

/* Reset and Base Styles */
.camera-calculator-container * {
	box-sizing: border-box;
}

.camera-calculator-container {
	max-width: 100%;
	margin: 0 auto;
	padding: 1.5rem;
	font-family: "Poppins", sans-serif;
	background: linear-gradient(135deg, #fff 0%, #f8fafc 50%, #fff 100%);
	border-radius: 16px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, .08), 0 0 0 1px rgba(255, 255, 255, .8);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, .3);
	animation: fadeInUp .8s ease-out;
	position: relative;
	overflow: hidden;
	font-weight: 400;
}

.camera-calculator-container::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #ff4000 0%, #000 50%, #ff4000 100%);
	background-size: 200% 100%;
	animation: shimmer 3s infinite;
}

/* Header Styles */
.calculator-header {
	text-align: center;
	margin-bottom: 1.5rem;
	animation: fadeIn 1s ease-out .2s both;
	font-weight: 400;
	font-family: "Poppins", sans-serif;
}

.calculator-title {
	font-size: 1.8rem;
	font-weight: 700;
	color: #000;
	margin: 0 0 .3rem 0;
	letter-spacing: -.02em;
	background: linear-gradient(135deg, #ff4000 0%, #000 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 2px 4px rgba(0, 0, 0, .1);
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.calculator-subtitle {
	font-size: .9rem;
	color: #666;
	margin: 0;
	font-weight: 400;
	font-family: "Poppins", sans-serif;
	opacity: .8;
}

/* Form Styles */
.calculator-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.form-row.single {
	grid-template-columns: 1fr;
}

.form-group {
	position: relative;
	animation: fadeInUp .6s ease-out;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.form-group:nth-child(1) {
	animation-delay: .1s;
}

.form-group:nth-child(2) {
	animation-delay: .2s;
}

.form-group:nth-child(3) {
	animation-delay: .3s;
}

.form-group:nth-child(4) {
	animation-delay: .4s;
}

.form-group label {
	display: block;
	font-size: .85rem;
	font-weight: 600;
	color: #2c2c2c;
	margin-bottom: .4rem;
	letter-spacing: .01em;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.form-group select {
	width: 100%;
	padding: .6rem .9rem;
	font-size: .85rem;
	border: 2px solid #e1e5e9;
	/* border-radius: 12px; */
	background: rgba(255, 255, 255, .95);
	color: #4d4d4d;
	transition: all .3s cubic-bezier(.4, 0, .2, 1);
	appearance: none;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23FF4000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 1rem center;
	background-repeat: no-repeat;
	background-size: 1em 1em;
	padding-right: 3rem;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.form-group select.nitro-lazy {
	background-image: none !important;
}

.form-group select:focus {
	outline: none;
	border-color: #ff4000;
	box-shadow: 0 0 0 4px rgba(241, 99, 52, .2), 0 4px 12px rgba(241, 99, 52, .1);
	transform: translateY(-2px);
}

.form-group select:hover {
	border-color: #ff4000;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(241, 99, 52, .1);
}

.form-group select:invalid {
	border-color: #e1e5e9;
}

/* Button Styles */
.calculate-btn {
	background: #ff4000;
	color: white;
	border: none;
	padding: 1rem 2rem;
	font-size: .95rem;
	font-weight: 600;
	/* border-radius: 12px; */
	cursor: pointer;
	transition: all .3s cubic-bezier(.4, 0, .2, 1);
	position: relative;
	overflow: hidden;
	margin-top: 1rem;
	animation: fadeInUp .6s ease-out .5s both;
	letter-spacing: .02em;
	box-shadow: 0 8px 25px rgba(241, 99, 52, .3);
	text-transform: uppercase;
	letter-spacing: .05em;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.calculate-btn:hover {
	transform: translateY(-4px);
	box-shadow: 0 15px 40px rgba(241, 99, 52, .4);
	background: #e55a2b;
}

.calculate-btn:active {
	transform: translateY(-1px);
}

.calculate-btn:disabled {
	opacity: .7;
	cursor: not-allowed;
	transform: none;
}

.calculate-btn .btn-loader {
	display: none;
	align-items: center;
	gap: .5rem;
}

.calculate-btn.loading .btn-text {
	display: none;
}

.calculate-btn.loading .btn-loader {
	display: flex;
}

/* Spinner Animation */
.spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, .3);
	border-top: 2px solid white;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

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

/* Results Container */
.results-container {
	margin-top: 1.5rem;
	animation: fadeInUp .8s ease-out;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.results-card {
	background: rgba(255, 255, 255, .95);
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 12px;
	padding: 1rem;
	box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
	backdrop-filter: blur(10px);
	position: relative;
	overflow: hidden;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.results-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #4d4d4d, #4a4a4a, #4d4d4d);
	background-size: 200% 100%;
	animation: shimmer 2s infinite;
}

.results-card h3 {
	font-size: 1.2rem;
	font-weight: 700;
	color: #4d4d4d;
	margin: 0 0 1rem 0;
	text-align: center;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.results-content {
	font-size: .9rem;
	line-height: 1.5;
	color: #2c2c2c;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

/* Compact Settings Display */
.settings-summary {
	background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
	border-radius: 8px;
	padding: 1rem;
	margin-bottom: 1rem;
	border: 1px solid #e1e5e9;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.setting-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: .9rem;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.setting-label {
	font-weight: 600;
	color: #ff4000;
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.setting-value {
	color: #000;
	font-family: "SF Mono", "Monaco", "Menlo", "Consolas", monospace;
	font-size: 1rem;
	font-weight: 700;
	background: white;
	padding: .5rem .8rem;
	border-radius: 6px;
	border: 2px solid #ff4000;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
	min-width: 80px;
	text-align: center;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.setting-description {
	font-size: .8rem;
	color: #666;
	margin-top: .5rem;
	text-align: center;
	font-style: italic;
	line-height: 1.3;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

/* Disclaimer Section */
.disclaimer-section {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid #e1e5e9;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.disclaimer-title {
	font-size: .9rem;
	font-weight: 700;
	color: #ff4000;
	margin: 0 0 .5rem 0;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.disclaimer-text {
	font-size: .8rem;
	color: #000;
	margin: 0;
	line-height: 1.4;
	text-align: left;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.settings-details {
	font-size: .85rem;
	line-height: 1.4;
	color: #4a4a4a;
	white-space: pre-line;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

/* Settings Container Styles */
.settings-container {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin: 0;
}

.setting-item {
	background: #fff;
	border-radius: 16px;
	padding: 1.5rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
	border: 1px solid #e1e5e9;
	transition: all .3s ease;
	position: relative;
	overflow: hidden;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.setting-item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.setting-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}

.setting-header {
	font-weight: 700;
	color: #667eea;
	font-size: .9rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	margin-bottom: .8rem;
	display: block;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.setting-value {
	color: #000;
	font-family: "SF Mono", "Monaco", "Menlo", "Consolas", monospace;
	font-size: 1.3rem;
	font-weight: 700;
	background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
	padding: 1rem 1.5rem;
	border-radius: 12px;
	display: inline-block;
	border: 2px solid #e1e5e9;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
	transition: all .2s ease;
	min-width: 140px;
	text-align: center;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

.setting-value:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
	border-color: #000;
}

.setting-value.updated {
	animation: highlightUpdate .6s ease-out;
	background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
	border-color: #ff4000;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
}

@keyframes highlightUpdate {
	0% {
		transform: scale(1);
		background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
	}
	
	50% {
		transform: scale(1.05);
		background: linear-gradient(135deg, #ffe4d6 0%, #fff5f0 100%);
		font-family: "Poppins", sans-serif;
		font-weight: 400;
	}
	
	100% {
		transform: scale(1);
		background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
		font-family: "Poppins", sans-serif;
		font-weight: 400;
	}
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	
	to {
		opacity: 1;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
	.camera-calculator-container {
		margin: 1rem;
		padding: 1.2rem;
		border-radius: 16px;
	}
	
	.calculator-title {
		font-size: 1.6rem;
	}
	
	.calculator-subtitle {
		font-size: .85rem;
	}
	
	.form-row {
		grid-template-columns: 1fr;
		gap: .8rem;
	}
	
	.form-group select {
		padding: .5rem .7rem;
		font-size: .8rem;
	}
	
	.calculate-btn {
		padding: .9rem 1.5rem;
		font-size: .9rem;
	}
	
	.results-card {
		padding: 1.2rem;
	}
	
	.setting-line {
		flex-direction: column;
		gap: .5rem;
		text-align: center;
	}
	
	.setting-value {
		font-size: .9rem;
		padding: .4rem .6rem;
		min-width: 70px;
	}
}

@media (max-width: 480px) {
	.camera-calculator-container {
		margin: .5rem;
		padding: 1rem;
	}
	
	.calculator-title {
		font-size: 1.4rem;
	}
	
	.form-group select {
		padding: .5rem .6rem;
		font-size: .8rem;
	}
	
	.calculate-btn {
		padding: .8rem 1.2rem;
		font-size: .85rem;
	}
	
	.settings-summary {
		padding: .8rem;
	}
}

/* Loading States */
.calculator-form.loading {
	pointer-events: none;
	opacity: .7;
}

/* Error States */
.form-group.error select {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, .1);
}

.error-message {
	color: #dc2626;
	font-size: .875rem;
	margin-top: .5rem;
	animation: fadeIn .3s ease-out;
}

/* Success States */
.form-group.success select {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(5, 150, 105, .1);
}

/* Focus States */
.camera-calculator-container:focus-within {
	box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}

form#camera-calculator-form select {
	border: 1px solid black;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
	.camera-calculator-container, .form-group, .calculate-btn, .results-container {
		animation: none;
	}
	
	.calculate-btn:hover {
		transform: none;
	}
	
	.form-group select:hover {
		transform: none;
	}
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
	.camera-calculator-container {
		border: 2px solid #000;
	}
	
	.form-group select {
		border: 2px solid #000;
	}
	
	.calculate-btn {
		background: #000;
		border: 2px solid #000;
	}
}

.label-input-text {
	font-family: "Poppins", sans-serif !important;
	font-weight: 400 !important;
}
