body {
	font-family: 'Inter', sans-serif;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background: linear-gradient(
		135deg,
		#1a1a1a 0%,
		#000000 100%
	); /* Black and dark grey gradient */
	color: #e0e0e0; /* Light grey text */
	padding: 1rem;
	overflow: hidden; /* To contain pseudo-elements for blur effect */
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url('https://www.transparenttextures.com/patterns/stardust.png'); /* Example subtle texture */
	opacity: 0.05;
	z-index: -1;
}

.main-container {
	background-color: rgba(40, 40, 40, 0.65); /* Dark semi-transparent grey */
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%); /* For Safari */
	padding: 2.5rem; /* Increased padding */
	border-radius: 1rem; /* lg */
	border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
	box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3), 0 15px 15px rgba(0, 0, 0, 0.2);
	width: 100%;
	max-width: 900px; /* Increased width to 900px */
}

.password-display {
	background-color: rgba(0, 0, 0, 0.3); /* Darker semi-transparent input */
	border: 1px solid rgba(255, 105, 180, 0.3); /* Pink-tinted border */
	color: #f5f5f5; /* Brighter text for display */
	padding: 1rem 1.25rem; /* Increased padding */
	border-radius: 0.75rem; /* md */
	font-size: 1.25rem; /* xl */
	letter-spacing: 0.05em;
	/* overflow-x: auto; -- Changed */
	overflow: visible; /* Changed from hidden to visible to allow tooltip to show */
	white-space: nowrap; /* Keep content on one line for truncation to work */
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Ensure the span itself can be truncated if its content is too long */
#passwordOutput {
	display: block; /* Or inline-block, needed for truncate to effectively constrain width */
	overflow: hidden; /* Move overflow hidden to the actual text element for truncation */
	text-overflow: ellipsis; /* Add ellipsis for better truncation */
}

.btn {
	padding: 0.85rem 1.75rem; /* Slightly larger buttons */
	border-radius: 0.65rem; /* Slightly more rounded */
	font-weight: 600;
	transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.btn-primary {
	background: linear-gradient(
		135deg,
		#ff69b4 0%,
		#c71585 100%
	); /* Pink gradient */
	color: #ffffff;
	box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}
.btn-primary:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5);
}
.btn-primary:active {
	transform: translateY(-1px) scale(0.98);
	box-shadow: 0 2px 10px rgba(255, 105, 180, 0.4);
}

.btn-secondary {
	background-color: rgba(70, 70, 70, 0.5); /* Dark grey semi-transparent */
	color: #e0e0e0;
	border: 1px solid rgba(255, 105, 180, 0.3);
}
.btn-secondary:hover {
	background-color: rgba(90, 90, 90, 0.7);
	border-color: rgba(255, 105, 180, 0.5);
}

.form-label {
	font-size: 0.9rem; /* Slightly larger label */
	font-weight: 500;
	margin-bottom: 0.6rem;
	display: block;
	color: #b0b0b0; /* Lighter grey for labels */
}

.form-checkbox {
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 0.35rem;
	accent-color: #ff69b4; /* Pink accent */
	background-color: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 105, 180, 0.4);
}
.form-checkbox:checked {
	background-color: #ff69b4;
}

.slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 10px; /* Thicker slider */
	background: rgba(0, 0, 0, 0.4); /* Darker slider track */
	outline: none;
	border-radius: 5px;
	transition: opacity 0.2s;
}
.slider:hover {
	opacity: 1;
}
.slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 24px; /* Larger thumb */
	height: 24px;
	background: #ff69b4; /* Pink thumb */
	cursor: pointer;
	border-radius: 50%;
	border: 3px solid #1e1e1e; /* Dark border for thumb */
	box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}
.slider::-moz-range-thumb {
	width: 24px;
	height: 24px;
	background: #ff69b4;
	cursor: pointer;
	border-radius: 50%;
	border: 3px solid #1e1e1e;
	box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.tooltip {
	position: relative;
	display: inline-block; /* Or 'block' if it's taking full width of its cell */
}
.tooltip .tooltiptext {
	visibility: hidden;
	width: 150px; /* Wider tooltip */
	background-color: #1e1e1e; /* Dark tooltip background */
	color: #ffb6c1; /* Light Pink text */
	text-align: center;
	border-radius: 8px;
	padding: 8px 0; /* More padding */
	position: absolute;
	z-index: 100; /* Increased z-index from 50 to 100 for better stacking */
	bottom: 130%;
	left: 50%;
	margin-left: -75px;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	transform: translateY(5px);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.tooltip .tooltiptext::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -6px;
	border-width: 6px;
	border-style: solid;
	border-color: #1e1e1e transparent transparent transparent;
}
.tooltip.active .tooltiptext {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}
.length-value-text {
	font-weight: 700; /* Bold */
	font-size: 1.25rem; /* xl */
	background: -webkit-linear-gradient(#ff69b4, #c71585);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}
.title-gradient {
	background: -webkit-linear-gradient(
		45deg,
		#ff69b4,
		#ffc0cb,
		#ff69b4
	); /* Pinkish gradient */
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}
