/*-------------------------
	Hacker Core Reset
--------------------------*/

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/*-------------------------
	General Styles
--------------------------*/

html {
	overflow: hidden;
}

body {
	font-family: 'Share Tech Mono', monospace;
	background-color: #0a0a0f;
	color: #00ffff;
	width: 100%;
	height: 100%;
	position: absolute;
	overflow: hidden;
	background-image: 
		linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 30px 30px;
}

/* scanlines overlay */
body::after {
	content: " ";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
	z-index: 2;
	background-size: 100% 2px, 3px 100%;
	pointer-events: none;
}

::selection {
	background: #ff00ff;
	color: #fff;
}

a, a:visited {
	outline: none;
	color: #00ffff;
	text-decoration: none;
}

/*-------------------------
	The Stage
--------------------------*/

#stage {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	transition: top 0.6s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 10;
}

#stage > section {
	height: 100%;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.content {
	text-align: center;
	width: 100%;
	max-width: 600px;
	padding: 40px;
	background: rgba(15, 15, 24, 0.85);
	border: 1px solid rgba(0, 255, 255, 0.3);
	box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.05);
	backdrop-filter: blur(5px);
	position: relative;
}

/* container corner accents */
.content::before {
	content: '';
	position: absolute;
	top: -1px; left: -1px;
	width: 20px; height: 20px;
	border-top: 2px solid #00ffff;
	border-left: 2px solid #00ffff;
}
.content::after {
	content: '';
	position: absolute;
	bottom: -1px; right: -1px;
	width: 20px; height: 20px;
	border-bottom: 2px solid #00ffff;
	border-right: 2px solid #00ffff;
}

/*-------------------------
	Typography & Forms
--------------------------*/

h1, h2 {
	font-weight: normal;
	letter-spacing: 2px;
	text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

h1 {
	font-size: 32px;
	margin-bottom: 10px;
	color: #e0e0e0;
}

h2 {
	font-size: 24px;
	margin-bottom: 15px;
	color: #00ffff;
}

.subtitle {
	color: #39ff14;
	margin-bottom: 40px;
	font-size: 14px;
	letter-spacing: 3px;
}

.desc {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #888888;
	margin: 0 0 35px;
	line-height: 1.6;
}

.desc b {
	color: #ff00ff;
	font-weight: normal;
	text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

.drag-hint {
	font-size: 11px;
	color: rgba(0, 255, 255, 0.4);
	margin-top: 15px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.content input[type="file"] {
	display: none;
}

.password-wrapper input {
	background-color: rgba(0, 0, 0, 0.5);
	border: 1px solid #00ffff;
	padding: 15px 20px;
	font: inherit;
	display: block;
	outline: none;
	width: 100%;
	max-width: 400px;
	margin: 0 auto 30px;
	color: #39ff14;
	font-size: 24px;
	text-align: center;
	letter-spacing: 5px;
	box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.2);
	transition: all 0.3s;
}

.password-wrapper input:focus {
	border-color: #39ff14;
	box-shadow: inset 0 0 15px rgba(57, 255, 20, 0.3), 0 0 15px rgba(57, 255, 20, 0.2);
}

.password-wrapper input::placeholder {
	color: rgba(0, 255, 255, 0.3);
	letter-spacing: 2px;
	font-size: 16px;
}

/* Password Visibility Toggle */
.password-wrapper {
	position: relative;
	max-width: 400px;
	margin: 0 auto 30px;
}

.password-wrapper input {
	margin-bottom: 0 !important;
	padding-right: 80px !important;
}

.toggle-password {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #00ffff;
	font-size: 11px;
	cursor: pointer;
	padding: 5px 10px;
	border: 1px solid rgba(0, 255, 255, 0.3);
	background: rgba(0, 0, 0, 0.4);
	transition: all 0.2s;
	user-select: none;
	letter-spacing: 1px;
}

.toggle-password:hover {
	border-color: #00ffff;
	background: rgba(0, 255, 255, 0.1);
	box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

/* Global Drag and Drop Overlay */
#drop-zone {
	position: fixed;
	top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(10, 10, 15, 0.9);
	backdrop-filter: blur(10px);
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
	border: 10px solid transparent;
}

#drop-zone.active {
	opacity: 1;
	pointer-events: all;
	border-image: repeating-linear-gradient(45deg, #00ffff, #00ffff 20px, transparent 20px, transparent 40px) 1;
	animation: borderPulse 2s infinite linear;
}

#drop-zone span {
	font-size: 32px;
	color: #00ffff;
	text-align: center;
	letter-spacing: 5px;
	text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
	line-height: 1.5;
}

@keyframes borderPulse {
	0% { filter: hue-rotate(0deg) brightness(1); }
	50% { filter: hue-rotate(20deg) brightness(1.5); }
	100% { filter: hue-rotate(0deg) brightness(1); }
}

/*-------------------------
	Navigation
--------------------------*/

a.back {
	position: absolute;
	cursor: pointer;
	top: 30px;
	left: 30px;
	z-index: 50;
	padding: 10px 15px;
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid #ff00ff;
	color: #ff00ff;
	font-size: 12px;
	letter-spacing: 2px;
	transition: all 0.3s;
	display: none;
}

a.back:hover {
	background: rgba(255, 0, 255, 0.2);
	box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
	text-shadow: 0 0 5px #ff00ff;
}

/*-------------------------
	Conditional views
--------------------------*/

[class*="if-"] {
	display: none;
}

body.encrypt .if-encrypt {
	display: block;
}

body.decrypt .if-decrypt {
	display: block;
}

/*-------------------------
	Button logic
--------------------------*/

.action-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: center;
}

.button {
	width: 100%;
	max-width: 280px;
	height: 60px;
	margin: 0 auto;
	text-align: center;
	color: #fff !important;
	text-transform: uppercase;
	font-size: 16px;
	letter-spacing: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: 1px solid transparent;
	background-color: rgba(10, 10, 15, 0.9);
	transition: all 0.3s;
	position: relative;
	overflow: hidden;
}

.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 {
	box-shadow: 0 0 20px currentColor;
}

/* Button Variants */
.button.green {
	color: #39ff14 !important;
	border-color: #39ff14;
}
.button.green:hover { background: rgba(57, 255, 20, 0.15); }

.button.magenta {
	color: #ff00ff !important;
	border-color: #ff00ff;
}
.button.magenta:hover { background: rgba(255, 0, 255, 0.15); }

.button.blue {
	color: #00ffff !important;
	border-color: #00ffff;
}
.button.blue:hover { background: rgba(0, 255, 255, 0.15); }

.button.red {
	color: #ff3333 !important;
	border-color: #ff3333;
}
.button.red:hover { background: rgba(255, 51, 51, 0.15); }

/*-------------------------
	Footer
--------------------------*/

footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 15px 30px;
	background: rgba(10, 10, 15, 0.95);
	border-top: 1px solid #00ffff;
	z-index: 50;
	display: flex;
	justify-content: flex-end;
}

footer a.tz {
	font-size: 12px;
	letter-spacing: 2px;
	color: #00ffff !important;
	text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
	transition: color 0.3s;
}

footer a.tz:hover {
	color: #fff !important;
}

/* Add custom responsive overrides */
@media (max-width: 600px) {
	.content {
		padding: 30px 20px;
		width: 90%;
	}
	h1 { font-size: 24px; }
	h2 { font-size: 18px; }
	.button { max-width: 100%; }
}

/*-------------------------
	Modal Overlay
--------------------------*/

.modal-overlay {
	position: fixed;
	top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(10, 10, 15, 0.85);
	backdrop-filter: blur(8px);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}

.modal-overlay.active {
	opacity: 1;
	pointer-events: all;
}

.modal-content {
	background: rgba(15, 15, 24, 0.95);
	border: 1px solid #ff00ff;
	box-shadow: 0 0 30px rgba(255, 0, 255, 0.2);
	padding: 40px;
	width: 90%;
	max-width: 500px;
	text-align: center;
	transform: scale(0.9);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	position: relative;
}

.modal-content::before {
	content: ''; position: absolute;
	top: 0; left: 0; width: 100%; height: 4px;
	background: repeating-linear-gradient(90deg, #ff00ff, #ff00ff 10px, transparent 10px, transparent 20px);
}

.modal-overlay.active .modal-content {
	transform: scale(1);
}

#modal-title {
	color: #ff00ff;
	margin-bottom: 15px;
	font-size: 24px;
}
