:root {
	--brand-color: #f72585;
	--brand-glow: rgba(247, 37, 133, 0.4);
	--bg-dark: #050505;
	--glass-bg: rgba(255, 255, 255, 0.03);
	--glass-border: rgba(255, 255, 255, 0.08);
	--text-main: #ffffff;
	--text-muted: #8b8b8b;
	--input-bg: rgba(0, 0, 0, 0.3);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--bg-dark);
	background-image:
		radial-gradient(circle at 10% 20%, rgba(247, 37, 133, 0.08) 0%, transparent 40%),
		radial-gradient(circle at 90% 80%, rgba(67, 97, 238, 0.08) 0%, transparent 40%);
	font-family: 'Outfit', sans-serif;
	color: var(--text-main);
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	user-select: none;
}

.interface-container {
	width: 90%;
	max-width: 1000px;
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 20px;
	padding: 20px;
}

.glass-panel {
	background: var(--glass-bg);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid var(--glass-border);
	border-radius: 24px;
	padding: 40px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: column;
}

.control-panel {
	height: 550px;
	position: relative;
	overflow: hidden;
}

.control-panel::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--brand-color), transparent);
}

.logo {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 30px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.mode-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 25px;
}

.mode-option {
	position: relative;
	cursor: pointer;
}

.mode-option input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

.mode-label {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 60px;
	background: var(--input-bg);
	border: 1px solid var(--glass-border);
	border-radius: 12px;
	color: var(--text-muted);
	font-weight: 600;
	font-size: 0.9rem;
	transition: all 0.2s ease;
}

.mode-label:hover {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.05);
}

.mode-option input:checked+.mode-label {
	background: var(--brand-color);
	border-color: var(--brand-color);
	color: white;
	box-shadow: 0 5px 15px var(--brand-glow);
}

.mode-label i{
	margin-right: 5px;
	font-size: 24px;
}

.settings-area {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding-top: 20px;
	border-top: 1px solid var(--glass-border);
}

.input-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.input-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.input-group label {
	font-size: 0.7rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 600;
}

.setting-input {
	background: var(--input-bg);
	border: 1px solid var(--glass-border);
	border-radius: 8px;
	padding: 12px;
	color: white;
	font-family: 'Space Mono', monospace;
	font-size: 1rem;
	outline: none;
	width: 100%;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.setting-input:focus {
	border-color: var(--brand-color);
	box-shadow: 0 0 10px rgba(247, 37, 133, 0.2);
}

#qtyWrapper {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	opacity: 1;
	transform: translateY(0);
	max-height: 100px;
	overflow: hidden;
}

#qtyWrapper.hidden {
	opacity: 0;
	transform: translateY(-10px);
	max-height: 0;
	margin-top: -15px;
}

.generate-btn {
	margin-top: auto;
	width: 100%;
	padding: 20px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--glass-border);
	color: white;
	border-radius: 12px;
	font-family: 'Space Mono', monospace;
	font-weight: 700;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.generate-btn::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	height: 3px;
	width: 0%;
	background: var(--brand-color);
	transition: width 0.3s ease;
}

.generate-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.3);
}

.generate-btn:hover::after {
	width: 100%;
}

.generate-btn:active {
	transform: scale(0.98);
}

.display-panel {
	align-items: center;
	justify-content: center;
	text-align: center;
	position: relative;
	min-height: 550px;
}

.result-label {
	position: absolute;
	top: 30px;
	left: 30px;
	font-size: 0.8rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 2px;
}

.numbers-output {
	font-family: 'Space Mono', monospace;
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.digit {
	font-size: 3.5rem;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
	animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.calculating .digit {
	color: var(--brand-color);
	text-shadow: none;
	opacity: 0.7;
}

@keyframes popIn {
	from {
		opacity: 0;
		transform: scale(0.5);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.footer-info {
	position: absolute;
	bottom: 20px;
	width: 100%;
	text-align: center;
	color: var(--text-muted);
	font-size: 0.75rem;
	pointer-events: none;
}

@media (max-width: 768px) {
	.interface-container {
		grid-template-columns: 1fr;
		height: auto;
		padding-bottom: 50px;
	}

	.control-panel {
		height: auto;
		padding-bottom: 30px;
	}

	.digit {
		font-size: 2.5rem;
	}
}


.float{
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: fixed;
	top: 20px;
	left: 40px;
	right: 40px;
	z-index: 9999;
}

.float img{
	height: 40px;
}

.float .icon-btn{
	height: 40px;
	min-width: 40px;
	padding: 10px;
	display: flex;
	justify-content: center;
	align-items: center;
	background: none;
	border: none;
	color: var(--text-muted);
	font-size: 16px;
	cursor: pointer;
	border-radius: 50px;
	transition: background 0.2s;
}

.icon-btn i{
	margin-right: 10px;
}

.icon-btn:hover {
	background-color: var(--glass-border);
}

@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        display: block;
        padding: 80px 0 40px 0;
    }

    .interface-container {
        width: 95%;
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
        margin: 0 auto;
    }

    .glass-panel {
        padding: 25px 20px;
        height: auto;
        min-height: unset;
    }

    .control-panel {
        height: auto;
        order: 2;
    }

    .display-panel {
        height: auto;
        min-height: 300px;
        order: 1;
    }

    .digit {
        font-size: 2.2rem;
    }

    .mode-label {
        height: 55px;
        font-size: 0.8rem;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .float {
        left: 15px;
        right: 15px;
        top: 15px;
    }
    
    .float img {
        height: 30px;
    }

	.generate-btn{
		margin-top: 20px;
	}
}

@media (max-width: 380px) {
    .digit {
        font-size: 1.8rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
}