@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root {
	--primary-calculator-color: #ffffff;
	--secondary-calculator-color: #1a1a1a;
	--primary-input-color: #2d3748;
	--secondary-input-color: #4a5568;
	--primary-end-color: #2d3748;
	--secondary-end-color: #1a202c;
	--primary-input-text: #ffffff;
	--secondary-input-text: #000000;
	--primary-number-shadow: #4a5568;
	--secondary-number-shadow: #805ad5;
	--primary-input-shadow: #4a5568;
	--secondary-input-shadow: #68d391;
	--primary-trigger-shadow: #ed8936;
	--secondary-trigger-shadow: #f6e05e;
	--primary-calculator-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	--secondary-calculator-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
	--primary-body-color: #f7fafc;
	--secondary-body-color: #1a202c;
	--primary-heading-color: #2d3748;
	--secondary-heading-color: #ffffff;
	--gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	--gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	--gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	--border-radius: 16px;
	--border-radius-large: 24px;
	--shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
	--shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
	--shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.dark-theme {
	--primary-calculator-color: rgba(26, 32, 44, 0.95);
	--secondary-calculator-color: #1a1a1a;
	--primary-input-color: #2d3748;
	--secondary-input-color: #4a5568;
	--primary-end-color: #2d3748;
	--secondary-end-color: #1a202c;
	--primary-input-text: #ffffff;
	--secondary-input-text: #000000;
	--primary-body-color: #1a202c;
	--secondary-body-color: #2d3748;
	--primary-heading-color: #ffffff;
	--secondary-heading-color: #000000;
	--gradient-primary: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
	--shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
	--shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.4);
	--shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.neon-theme {
	--primary-calculator-color: rgba(0, 0, 0, 0.9);
	--secondary-calculator-color: #000000;
	--primary-input-color: #0a0a0a;
	--secondary-input-color: #1a1a1a;
	--primary-end-color: #0a0a0a;
	--secondary-end-color: #000000;
	--primary-input-text: #00ff00;
	--secondary-input-text: #ffffff;
	--primary-body-color: #000000;
	--secondary-body-color: #0a0a0a;
	--primary-heading-color: #00ff00;
	--secondary-heading-color: #ffffff;
	--gradient-primary: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
	--gradient-secondary: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
	--gradient-accent: linear-gradient(135deg, #00ff00 0%, #00ffff 100%);
	--shadow-soft: 0 4px 20px rgba(0, 255, 0, 0.3);
	--shadow-medium: 0 8px 30px rgba(0, 255, 255, 0.4);
	--shadow-strong: 0 15px 50px rgba(255, 0, 255, 0.5);
	--primary-number-shadow: #00ff00;
	--secondary-number-shadow: #00ffff;
	--primary-input-shadow: #00ff00;
	--secondary-input-shadow: #00ffff;
	--primary-trigger-shadow: #ff00ff;
	--secondary-trigger-shadow: #ffff00;
	--primary-calculator-shadow: 0 20px 40px rgba(0, 255, 0, 0.3);
	--secondary-calculator-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.html {
	scroll-behavior: smooth;
}

body {
	background: var(--gradient-primary);
	background-attachment: fixed;
	font-family: "Poppins", sans-serif;
	-ms-overflow-style: none;
	scrollbar-width: none;
	margin: 0;
	min-height: 100vh;
	min-height: calc(var(--vh, 1vh) * 100);
	position: relative;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
	            radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
	            radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
	z-index: -1;
	pointer-events: none;
}

/* hide scrollbar */
body::-webkit-scrollbar {
	display: none;
}

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	height: 80px;
	padding: 20px 40px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(20px);
	border-radius: var(--border-radius);
	margin-bottom: 20px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

#calc-style {
	font-size: 2.5rem;
	font-weight: 700;
	background: var(--gradient-accent);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calculator-container {
	text-align: center;
	width: 100%;
	max-width: 800px;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 40px;
	border-radius: var(--border-radius-large);
	margin: 40px auto;
	box-shadow: var(--shadow-strong);
	position: relative;
	overflow: hidden;
}

.calculator-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--gradient-accent);
}

input[type="text"] {
	width: 100%;
	height: 120px;
	border-radius: var(--border-radius);
	border: 2px solid rgba(255, 255, 255, 0.3);
	background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
	box-shadow: var(--shadow-medium), inset 0 2px 4px rgba(0, 0, 0, 0.1);
	color: #ffffff;
	font-size: 2.5rem;
	font-weight: 300;
	padding: 20px 30px;
	box-sizing: border-box;
	cursor: default;
	text-align: right;
	transition: all 0.3s ease;
	letter-spacing: 1px;
}

input[type="text"]:focus {
	outline: none;
	border-color: rgba(139, 92, 246, 0.5);
	box-shadow: var(--shadow-strong), 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.copy-result-btn {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	border-radius: var(--border-radius);
	padding: 12px 16px;
	margin-left: 15px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: var(--shadow-soft);
	font-size: 1.1rem;
}

.copy-result-btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-medium);
	background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.input-container {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 30px;
	position: relative;
}

.calc-buttons {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: 100%;
}

.button {
	margin: 8px;
	width: 100px;
	border: none;
	height: 80px;
	border-radius: var(--border-radius);
	color: #ffffff;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-size: 1.2rem;
	font-weight: 500;
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
}

.button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

.button:hover::before {
	left: 100%;
}

button:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-medium);
	filter: brightness(1.1);
}

button:active {
	transform: translateY(0);
	box-shadow: var(--shadow-soft);
}

.highlighted{
	background-color: hsla(180, 100%, 40%, 0.3) !important;
	transition: 0.2s;
	color: rgb(255, 85, 23);
	text-shadow: 0px 0px 1px white;
	box-shadow: 0 5px 15px rgba(5, 197, 245, 0.986);
}

.functions-one button:nth-child(13) {
	background-color: #dc3545;
	box-shadow: 2px 2px 40px #6d5255;
}

.functions-one button:nth-child(13):hover {
	color: white;
}

.functions-one {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
	width: 100%;
	max-width: 500px;
}

.functions-two {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
	width: 100%;
	max-width: 500px;
}

.functions-three {
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: 500px;
}

.functions-three .button {
	width: 200px;
	height: 80px;
	font-size: 1.5rem;
}

.calculator {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.padding-functions {
	display: none;
}

.more-toggle-btn {
	
	background-color: white;
	color: black;
	font-size: large;
	border-radius: 15px;
	padding: 15px;
	margin-right: 100px;
	
}

.solve-quadratic{
	background-color: white;
	color: black;
	margin-left: 60px;
	font-size: large;
	border-radius: 15px;
	padding: 5px;
	margin-right: 130px;
	height: 55px;
	width: 300px;
	
	
}
.more-functions-toggle{
	width: 80%;
}
.more-toggle-btn:hover {
	color: black;
	cursor: pointer;
	background-color: white;
}
.options-container{
	display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}


.other-functions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   /* 3 columns in each row */
    gap: 10px;
	justify-content:center;
    width: 100%;
    max-width: 380px;
    margin: 16px auto 24px auto;
	text-align: center;
}

.other-functions .button {
   width: 90px;           /* same as above buttons */
    min-width: 0;
    height: 42px;
    font-size: 1rem;
    border-radius: 20px;
    box-sizing: border-box;
    margin: 0;
}


.triggers {
	background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
	box-shadow: var(--shadow-medium);
	color: #ffffff;
	font-weight: 600;
}

.triggers:hover {
	background: linear-gradient(135deg, #ffb347 0%, #1e3c72 100%);
}

.backspace {
	background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
	box-shadow: var(--shadow-medium);
	color: #ffffff;
}

.backspace:hover {
	background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
}

.basic-stuff {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	color: #ffffff;
}

.basic-stuff:hover {
	background: linear-gradient(135deg, #4299e1 0%, #00d4aa 100%);
}

.numbers {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
}

.numbers:hover {
	background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.complex-stuff {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	color: #ffffff;
}

.complex-stuff:hover {
	background: linear-gradient(135deg, #ed64a6 0%, #f56565 100%);
}

footer {
	background-color: black;
	color: grey;
	text-align: center;
	padding: 1rem;
}

footer.end {
  font-size: 13px;
  padding: 0.5rem;
}
.love{
	font-size: 30px;
}
.love a {
	text-decoration: none;
	color: white;
}

.love a:hover {
	color: yellow;
}

.separate-btn {
	display: none !important;
}

/* #calc-style {
  font-family: "IM Fell Great Primer SC", serif;
} */

/* History toggle & other stuffs */
.toggleHistory {
	width: 92%;
	text-align: right;
}
@media only screen and (max-width: 600px) {
	.toggleHistory {
		width: 100%;
		text-align: center;
	}
  }
  
.toggleHistory button:hover {
	background-color: #80ffff;
}

/* table design */

table {
	font-family: arial, sans-serif;
	border-collapse: collapse;
	width: 100%;
	background-color: #b1b4b6;
}

td,
th {
	border: 1px solid #dddddd;
	text-align: left;
	padding: 8px;
}

tr:nth-child(even) {
	background-color: #dddddd;
}

.hClear-btn {
	background-color: red;
	color: white;
	height: 40px;
	margin: 10px;
	border: none;
	border-radius: 23px;
	cursor: pointer;
}

.hClear-btn:hover {
	color: black;
}

/* ===== RESPONSIVE WEB DESIGN (RWD) ===== */

/* Mobile First Approach - Base styles for mobile devices */
@media screen and (max-width: 480px) {
	.calculator-container {
		margin: 10px;
		padding: 20px;
		border-radius: var(--border-radius);
	}
	
	.navbar {
		padding: 15px 20px;
		height: 60px;
		margin-bottom: 10px;
	}
	
	#calc-style {
		font-size: 1.8rem;
	}
	
	input[type="text"] {
		height: 80px;
		font-size: 1.8rem;
		padding: 15px 20px;
	}
	
	.button {
		width: 70px;
		height: 70px;
		font-size: 1rem;
		margin: 5px;
	}
	
	.functions-one,
	.functions-two {
		grid-template-columns: repeat(4, 1fr);
		gap: 10px;
		max-width: 100%;
	}
	
	.functions-three .button {
		width: 150px;
		height: 70px;
		font-size: 1.2rem;
	}
	
	.more-toggle-btn,
	.solve-quadratic {
		width: 100%;
		font-size: 0.9rem;
		padding: 10px;
		margin: 5px 0;
	}
	
	.copy-result-btn {
		padding: 8px 12px;
		font-size: 1rem;
	}
}

/* Small Mobile Devices */
@media screen and (max-width: 360px) {
	.calculator-container {
		margin: 5px;
		padding: 15px;
	}
	
	.button {
		width: 60px;
		height: 60px;
		font-size: 0.9rem;
	}
	
	input[type="text"] {
		height: 70px;
		font-size: 1.5rem;
		padding: 12px 15px;
	}
	
	.functions-three .button {
		width: 130px;
		height: 60px;
	}
}

/* Tablet Portrait */
@media screen and (min-width: 481px) and (max-width: 768px) {
	.calculator-container {
		max-width: 90%;
		margin: 30px auto;
		padding: 30px;
	}
	
	.button {
		width: 80px;
		height: 80px;
	}
	
	input[type="text"] {
		height: 100px;
		font-size: 2rem;
	}
	
	.functions-one,
	.functions-two {
		max-width: 400px;
	}
	
	.functions-three .button {
		width: 180px;
	}
}

/* Tablet Landscape */
@media screen and (min-width: 769px) and (max-width: 1024px) {
	.calculator-container {
		max-width: 80%;
		margin: 40px auto;
	}
	
	.button {
		width: 90px;
		height: 90px;
	}
	
	input[type="text"] {
		height: 110px;
		font-size: 2.2rem;
	}
	
	.functions-one,
	.functions-two {
		max-width: 450px;
	}
	
	.functions-three .button {
		width: 200px;
		height: 90px;
	}
}

/* Desktop Small */
@media screen and (min-width: 1025px) and (max-width: 1200px) {
	.calculator-container {
		max-width: 70%;
	}
	
	.button {
		width: 100px;
		height: 100px;
	}

	input[type="text"] {
		height: 120px;
		font-size: 2.5rem;
	}
	
	.functions-one,
	.functions-two {
		max-width: 500px;
	}
}

/* Desktop Large */
@media screen and (min-width: 1201px) {
	.calculator-container {
		max-width: 800px;
	}
	
	.button {
		width: 100px;
		height: 100px;
	}
	
	input[type="text"] {
		height: 120px;
		font-size: 2.5rem;
	}
	
	.functions-one,
	.functions-two {
		max-width: 500px;
	}
}

/* Ultra-wide screens */
@media screen and (min-width: 1920px) {
	.calculator-container {
		max-width: 900px;
	}
	
	.button {
		width: 110px;
		height: 110px;
		font-size: 1.3rem;
	}
	
	input[type="text"] {
		height: 130px;
		font-size: 2.8rem;
	}
}

/* Landscape orientation for mobile devices */
@media screen and (max-height: 500px) and (orientation: landscape) {
	.calculator-container {
		margin: 5px;
		padding: 15px;
	}
	
	.navbar {
		height: 50px;
		padding: 10px 20px;
		margin-bottom: 5px;
	}
	
	input[type="text"] {
		height: 60px;
		font-size: 1.5rem;
		padding: 10px 15px;
	}
	
	.button {
		width: 50px;
		height: 50px;
		font-size: 0.8rem;
		margin: 3px;
	}
	
	.functions-three .button {
		width: 120px;
		height: 50px;
	}
}

/* High DPI displays */
@media screen and (-webkit-min-device-pixel-ratio: 2), 
       screen and (min-resolution: 192dpi) {
	.button {
		box-shadow: var(--shadow-soft);
	}
	
	input[type="text"] {
		box-shadow: var(--shadow-medium), inset 0 2px 4px rgba(0, 0, 0, 0.1);
	}
}

/* Print styles */
@media print {
	body {
		background: white !important;
	}
	
	.calculator-container {
		box-shadow: none;
		border: 1px solid #ccc;
	}
	
	.button {
		border: 1px solid #ccc;
		background: #f5f5f5 !important;
	}
}

/* ===== TOUCH AND ACCESSIBILITY IMPROVEMENTS ===== */

/* Touch-friendly button sizes */
@media (hover: none) and (pointer: coarse) {
    .button {
		min-height: 44px;
		min-width: 44px;
	}
	
	.copy-result-btn {
		min-height: 44px;
		min-width: 44px;
	}
	
	.mode-toggle {
		min-height: 44px;
		min-width: 44px;
	}
}

/* Focus states for accessibility */
.button:focus,
.copy-result-btn:focus,
.mode-toggle:focus {
	outline: 3px solid rgba(139, 92, 246, 0.5);
	outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	
	.button::before {
		display: none;
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.button {
		border: 2px solid currentColor;
	}
	
    input[type="text"] {
		border: 2px solid currentColor;
	}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	:root {
		--primary-calculator-color: rgba(26, 32, 44, 0.95);
		--primary-input-color: #1a202c;
		--primary-input-text: #ffffff;
		--primary-heading-color: #ffffff;
	}
}

/* Container queries for modern browsers */
@container (max-width: 400px) {
    .button {
		font-size: 0.9rem;
	}
	
	input[type="text"] {
		font-size: 1.5rem;
	}
}

/* ===== NEON THEME SPECIFIC STYLES ===== */
.neon-theme .button {
	box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
	text-shadow: 0 0 5px currentColor;
}

.neon-theme .numbers {
	background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
	color: #000000;
	text-shadow: 0 0 10px #00ff00;
}

.neon-theme .basic-stuff {
	background: linear-gradient(135deg, #00ffff 0%, #0099cc 100%);
	color: #000000;
	text-shadow: 0 0 10px #00ffff;
}

.neon-theme .complex-stuff {
	background: linear-gradient(135deg, #ff00ff 0%, #cc0099 100%);
	color: #ffffff;
	text-shadow: 0 0 10px #ff00ff;
}

.neon-theme .triggers {
	background: linear-gradient(135deg, #ffff00 0%, #cccc00 100%);
	color: #000000;
	text-shadow: 0 0 10px #ffff00;
}

.neon-theme .backspace {
	background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
	color: #ffffff;
	text-shadow: 0 0 10px #ff0000;
}

.neon-theme input[type="text"] {
	background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
	color: #00ff00;
	text-shadow: 0 0 10px #00ff00;
	box-shadow: 0 0 20px #00ff00, inset 0 2px 4px rgba(0, 255, 0, 0.1);
}

.neon-theme .calculator-container {
	background: rgba(0, 0, 0, 0.9);
	border: 2px solid #00ff00;
	box-shadow: 0 0 30px #00ff00, var(--shadow-strong);
}

.neon-theme .navbar {
	background: rgba(0, 0, 0, 0.8);
	border: 1px solid #00ff00;
	box-shadow: 0 0 20px #00ff00;
}

.neon-theme #calc-style {
	color: #00ff00;
	text-shadow: 0 0 10px #00ff00;
}

.neon-theme .copy-result-btn {
	background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
	color: #000000;
	text-shadow: 0 0 5px #00ff00;
	box-shadow: 0 0 15px #00ff00;
}

.mode-toggle {
	padding: 10px 10px;
	font-size: 20px;
	border: none;
	border-radius: 10px;
	margin: 5px;
	text-align: center;
	transition: all 0.5s ease-in;
	cursor: pointer;
}

.share{
	padding: 10px 10px;
	font-size: 20px;
	border: none;
	border-radius: 10px;
	margin: 5px;
	
	text-align: center;
	transition: all 0.5s ease-in;
	cursor: pointer;
	display: flex;
	justify-content: center;
	/* align-content: center; */
	/* align-self: center; */
	align-items: center;
	/* left: 60%; */
	/* background-color: #000000; */
	color: #fff; 
	font-size: larger;
}


.share a img{
	height: 25px;
	width: 25px;
	margin: 10px 5px;
	background: beige;
	border-radius: 10px;
	padding: 14px;
}

/* .share:hover{ */
	/* font-size: 22px; */
	/* background-color: #a2bbc9; */
	/* color: #070708; */
	/* transition: all 0.5s ease-in; */
	/* border-radius: 20px; */
	/* border: 3px solid ; */
/* } */

.mode-toggle:hover {
	background-color: #d3d3d3;
	transform: scale(1.1);
}

/* Active mode button styles */
.dark-theme .mode-toggle:first-child {
	background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
	color: #ffffff;
	box-shadow: 0 0 15px rgba(45, 55, 72, 0.5);
}

.neon-theme .mode-toggle:last-child {
	background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
	color: #000000;
	box-shadow: 0 0 15px #00ff00;
	text-shadow: 0 0 5px #00ff00;
}
.heading {
	color: var(--primary-heading-color);
}


/* Base Toast Container */
#toast {
	display: none;
	align-items: center;
	max-width: 400px;
	width: fit-content;
	padding: 16px 20px;
	position: fixed;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	z-index: 1000;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	overflow: hidden;
	border: 2px solid transparent;
  }
  
  /* Status-specific styles */
  #toast.info {
	background: linear-gradient(145deg, #ffffff, #f5f9ff);
	border-color: #3498db;
  }
  
  #toast.success {
	background: linear-gradient(145deg, #ffffff, #f5fff7);
	border-color: #2ecc71;
  }
  
  #toast.error {
	background: linear-gradient(145deg, #ffffff, #fff5f5);
	border-color: #e74c3c;
  }
  
  #toast.warning {
	background: linear-gradient(145deg, #ffffff, #fffbf5);
	border-color: #f1c40f;
  }
  
  #toast.open {
	display: flex;
	animation: toastSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  }
  
  #toast.closing {
	animation: toastSlideOut 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  }
  
  /* Icon Wrapper Styles */
  #icon-wrapper {
	position: relative;
	min-width: 40px;
	height: 40px;
	border-radius: 12px;
	margin-right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
  }
  
  .info #icon-wrapper {
	background: rgba(52, 152, 219, 0.15);
  }
  
  .success #icon-wrapper {
	background: rgba(46, 204, 113, 0.15);
  }
  
  .error #icon-wrapper {
	background: rgba(231, 76, 60, 0.15);
  }
  
  .warning #icon-wrapper {
	background: rgba(241, 196, 15, 0.15);
  }
  
  #toast.open #icon-wrapper {
	animation: iconBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s;
  }
  
  /* Icon Styles with Animated Elements */
  #icon {
	width: 24px;
	height: 24px;
	position: relative;
  }
  
  .info #icon::before {
	content: "";
	position: absolute;
	width: 4px;
	height: 4px;
	background: #3498db;
	border-radius: 50%;
	top: 20%;
	left: 50%;
	transform: translateX(-50%);
  }
  
  .info #icon::after {
	content: "";
	position: absolute;
	width: 4px;
	height: 12px;
	background: #3498db;
	border-radius: 2px;
	top: 40%;
	left: 50%;
	transform: translateX(-50%);
  }
  
  .success #icon::before {
	content: "";
	position: absolute;
	width: 20px;
	height: 10px;
	border: 3px solid #2ecc71;
	border-top: 0;
	border-right: 0;
	transform: rotate(-45deg);
	top: 30%;
	left: 15%;
  }
  
  .error #icon::before,
  .error #icon::after {
	content: "";
	position: absolute;
	width: 3px;
	height: 20px;
	background: #e74c3c;
	border-radius: 2px;
	top: 50%;
	left: 50%;
  }
  
  .error #icon::before {
	transform: translate(-50%, -50%) rotate(45deg);
  }
  
  .error #icon::after {
	transform: translate(-50%, -50%) rotate(-45deg);
  }
  
  .warning #icon::before {
	content: "";
	position: absolute;
	width: 3px;
	height: 12px;
	background: #f1c40f;
	border-radius: 2px;
	top: 20%;
	left: 50%;
	transform: translateX(-50%);
  }
  
  .warning #icon::after {
	content: "";
	position: absolute;
	width: 3px;
	height: 3px;
	background: #f1c40f;
	border-radius: 50%;
	bottom: 20%;
	left: 50%;
	transform: translateX(-50%);
  }
  
  /* Message Styles */
  #toast-message {
	flex-grow: 1;
	padding-right: 16px;
  }
  
  #toast-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.3px;
  }
  
  .info #toast-title { color: #3498db; }
  .success #toast-title { color: #2ecc71; }
  .error #toast-title { color: #e74c3c; }
  .warning #toast-title { color: #f1c40f; }
  
  #toast-description {
	margin: 4px 0 0;
	font-size: 14px;
	color: #666;
	line-height: 1.4;
	letter-spacing: 0.2px;
  }
  
  /* Close Button Styles */
  #toast-close {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 8px;
	margin: -8px;
	border-radius: 50%;
	transition: all 0.3s ease;
	position: relative;
	width: 30px;
	height: 30px;
  }
  
  #toast-close:hover {
	background: rgba(0, 0, 0, 0.05);
	transform: rotate(90deg);
  }
  
  #toast-close::before,
  #toast-close::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 2px;
	background: #666;
	top: 50%;
	left: 50%;
	transition: background 0.3s ease;
  }
  
  #toast-close:hover::before,
  #toast-close:hover::after {
	background: #333;
  }
  
  #toast-close::before {
	transform: translate(-50%, -50%) rotate(45deg);
  }
  
  #toast-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
  }
  
  /* Timer Bar */
  #timer {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 4px;
	width: 100%;
	background: rgba(0, 0, 0, 0.05);
	overflow: hidden;
  }
  
  #timer::before {
	content: '';
	position: absolute;
	height: 100%;
	width: 100%;
	left: 0;
	transform-origin: left;
	animation: timer 5s linear forwards;
  }
  
  .info #timer::before { background: #3498db; }
  .success #timer::before { background: #2ecc71; }
  .error #timer::before { background: #e74c3c; }
  .warning #timer::before { background: #f1c40f; }
  
  /* Animations */
  @keyframes toastSlideIn {
	0% {
	  opacity: 0;
	  transform: translateX(-50%) translateY(-100%);
	}
	50% {
	  transform: translateX(-50%) translateY(10%);
	}
	100% {
	  opacity: 1;
	  transform: translateX(-50%) translateY(0);
	}
  }
  
  @keyframes toastSlideOut {
	0% {
	  opacity: 1;
	  transform: translateX(-50%) translateY(0);
	}
	100% {
	  opacity: 0;
	  transform: translateX(-50%) translateY(-100%);
	}
  }
  
  @keyframes iconBounce {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.2); }
  }
  
  @keyframes timer {
	0% { transform: scaleX(1); }
	100% { transform: scaleX(0); }
  }
  
  /* Optional Shimmer Effect */
  #toast::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 200%;
	height: 100%;
	background: linear-gradient(
	  90deg,
	  transparent,
	  rgba(255, 255, 255, 0.4),
	  transparent
	);
	animation: shimmer 2s infinite;
  }
  
  @keyframes shimmer {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(50%); }
  }

#timer 
{
  width: 0%;
  height: 4px;
  background: var(--primary);
  position: absolute;
  bottom: 0;
  left: 0;
  border-top-right-radius: 5px;
  box-shadow: 0 0 8px var(--primary);
}

.timer-animation 
{
  animation: countdown 5s linear forwards;
}

@keyframes countdown 
{
  from {
    width: 100%;
  } 
  to {
    width: 0%;
  } 
}

.success
{
  --primary: #2DD743;
  --secondary: #E3FEE6;
}

.success #icon 
{
  transform: rotate(-45deg);
}

.success  #icon::before
{
  width: 10px;
  height: 3px;
  transform: translate(calc(-50% + 1px), calc(-50% + 1px));
}

.success  #icon::after
{
  width: 3px;
  height: 6px;
  transform: translate(calc(-50% - 3px), calc(-50% - 1px));
}

.warning 
{
  --primary: #F29208;
  --secondary: #FFEEDF;
}

.warning  #icon::before
{
  width: 3px;
  height: 3px;
  transform: translate(-50%, calc(-50% + 4px));
}
.warning  #icon::after
{
  width: 3px;
  height: 7px;
  transform: translate(-50%, calc(-50% - 2px));
}

.error 
{
  --primary: #E63435;
  --secondary: #FFEAEC;
}

.error  #icon::before
{
  width: 3px;
  height: 3px;
  transform: translate(-50%, calc(-50% + 4px));
}

.error  #icon::after
{
  width: 3px;
  height: 7px;
  transform: translate(-50%, calc(-50% - 2px));
}

.info 
{
  --primary: #42C0F2;
  --secondary: #CFEFFC;
}

.info  #icon::before
{
  width: 3px;
  height: 7px;
  transform: translate(-50%, calc(-50% + 2px));
}

.info  #icon::after
{
  width: 3px;
  height: 3px;
  transform: translate(-50%, calc(-50% - 4px));
}

main button 
{
  padding: 0.6em 1.5em;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
}

#successBtn 
{ 
  border: 1px solid #2DD743; 
  color: #2DD743;
  background: #E3FEE6;
}

#warningBtn 
{ 
  border: 1px solid #F29208; 
  color: #F29208;
  background: #FFEEDF;
}

#errorBtn 
{ 
  border: 1px solid #E63435; 
  color: #E63435;
  background: #FFEAEC;
}

#infoBtn 
{ 
  border: 1px solid #42C0F2; 
  color: #42C0F2;
  background: #CFEFFC;
}

#scrollToTopBtn {
    display: none; /* Hidden by default */
    background-color: white; /* Blue */
    color: black; /* White text */
	
    border: none; /* No borders */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Some padding */
    cursor: pointer; /* Pointer cursor on hover */
	z-index: 1000;
}
#scrollToTopBtn:hover {
	background-color: #d2cdcd;
	transition: 0.2s;
	color: rgb(255, 85, 23);
	text-shadow: 0px 0px 1px white;
	box-shadow: 0 5px 15px rgba(5, 197, 245, 0.986);
}
