/* Reset and base styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: #000000;
	min-height: 100vh;
	color: #ffffff;
	line-height: 1.6;
	font-weight: 300;
}

.container {
	max-width: 900px;
	margin: 0 auto;
	padding: 40px 20px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Header */
.header {
	text-align: left;
	margin-bottom: 60px;
	border-bottom: 1px solid #333;
	padding-bottom: 30px;
}

.header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
}

.logo i {
	font-size: 1.8rem;
	color: #fb9582;
}

.logo h1 {
	font-size: 1.8rem;
	font-weight: 400;
	color: #ffffff;
	letter-spacing: -0.02em;
}

.social-links {
	display: flex;
	gap: 15px;
}

.telegram-link {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #888;
	text-decoration: none;
	padding: 8px 16px;
	border: 1px solid #333;
	border-radius: 6px;
	transition: all 0.2s ease;
	font-size: 0.9rem;
}

.telegram-link:hover {
	color: #fb9582;
	border-color: #fb9582;
	background: #1a1a1a;
}

.telegram-link i {
	font-size: 1.1rem;
}

.subtitle {
	font-size: 0.95rem;
	color: #888;
	font-weight: 300;
	margin-left: 42px;
}

/* Main content */
.main-content {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding-top: 40px;
}

/* Upload section */
.upload-section {
	width: 100%;
	max-width: 500px;
}

.upload-area {
	background: #111;
	border: 2px dashed #333;
	border-radius: 8px;
	padding: 60px 40px;
	text-align: center;
	transition: all 0.2s ease;
	cursor: pointer;
	position: relative;
}

.upload-area:hover {
	border-color: #fb9582;
	background: #1a1a1a;
}

.upload-area.dragover {
	border-color: #fb9582;
	background: #1a1a1a;
	border-style: solid;
}

.upload-icon i {
	font-size: 3rem;
	color: #fb9582;
	margin-bottom: 24px;
	display: block;
}

.upload-area h2 {
	font-size: 1.3rem;
	margin-bottom: 12px;
	color: #ffffff;
	font-weight: 400;
}

.upload-area p {
	color: #888;
	margin-bottom: 24px;
	font-size: 0.95rem;
}

.browse-link {
	color: #fb9582;
	text-decoration: none;
	cursor: pointer;
	font-weight: 400;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.browse-link:hover {
	border-bottom-color: #fb9582;
}

.file-types {
	background: #1a1a1a;
	padding: 8px 16px;
	border-radius: 4px;
	display: inline-block;
	font-size: 0.85rem;
	color: #666;
	margin-top: 20px;
	border: 1px solid #333;
}

/* Processing section */
.processing-section {
	width: 100%;
	max-width: 500px;
}

.processing-card {
	background: #111;
	border-radius: 8px;
	padding: 50px 40px;
	text-align: center;
	border: 1px solid #333;
}

.spinner {
	width: 40px;
	height: 40px;
	border: 2px solid #333;
	border-top: 2px solid #fb9582;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 30px;
}

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

.processing-card h3 {
	font-size: 1.3rem;
	margin-bottom: 15px;
	color: #ffffff;
	font-weight: 400;
}

.processing-card p {
	color: #888;
	margin-bottom: 30px;
	font-size: 0.95rem;
}

.progress-bar {
	width: 100%;
	height: 4px;
	background: #333;
	border-radius: 2px;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	background: #fb9582;
	border-radius: 2px;
	width: 0%;
	animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
	0% {
		width: 0%;
	}
	50% {
		width: 70%;
	}
	100% {
		width: 100%;
	}
}

/* Result section */
.result-section {
	width: 100%;
	max-width: 600px;
}

.result-card {
	background: #111;
	border-radius: 8px;
	padding: 40px;
	text-align: center;
	border: 1px solid #333;
}

.success-icon i {
	font-size: 3rem;
	color: #fb9582;
	margin-bottom: 20px;
	display: block;
}

.result-card h3 {
	font-size: 1.3rem;
	margin-bottom: 30px;
	color: #ffffff;
	font-weight: 400;
}

.file-info {
	background: #1a1a1a;
	border-radius: 8px;
	padding: 25px;
	margin-bottom: 30px;
	text-align: left;
	border: 1px solid #333;
}

.info-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #333;
}

.info-row:last-child {
	border-bottom: none;
}

.info-row .label {
	font-weight: 400;
	color: #888;
	font-size: 0.9rem;
}

.info-row .value {
	color: #ffffff;
	font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
	font-size: 0.85rem;
}

.action-buttons {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Buttons */
.btn {
	padding: 12px 20px;
	border: none;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 400;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
}

.btn-primary {
	background: #fb9582;
	color: #000000;
	border: 1px solid #fb9582;
}

.btn-primary:hover {
	background: #fa8a75;
	border-color: #fa8a75;
}

.btn-secondary {
	background: transparent;
	color: #888;
	border: 1px solid #333;
}

.btn-secondary:hover {
	background: #1a1a1a;
	border-color: #555;
	color: #ffffff;
}

/* Error section */
.error-section {
	width: 100%;
	max-width: 500px;
}

.error-card {
	background: #111;
	border-radius: 8px;
	padding: 40px;
	text-align: center;
	border: 1px solid #333;
}

.error-icon i {
	font-size: 3rem;
	color: #ff6b6b;
	margin-bottom: 20px;
	display: block;
}

.error-card h3 {
	font-size: 1.3rem;
	margin-bottom: 15px;
	color: #ffffff;
	font-weight: 400;
}

.error-card p {
	color: #888;
	margin-bottom: 30px;
	background: #2a1a1a;
	padding: 15px;
	border-radius: 6px;
	border-left: 3px solid #ff6b6b;
	font-size: 0.9rem;
}

/* Footer */
.footer {
	margin-top: 80px;
	padding-top: 40px;
	border-top: 1px solid #333;
	color: #888;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
}

.footer-content > div {
	background: #111;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #333;
}

.footer-content h4 {
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #ffffff;
	font-weight: 400;
	font-size: 0.95rem;
}

.footer-content h4 i {
	color: #fb9582;
	font-size: 0.9rem;
}

.footer-content p {
	font-size: 0.85rem;
	color: #888;
	line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
	.container {
		padding: 20px 15px;
	}

	.header {
		margin-bottom: 40px;
	}

	.header-top {
		flex-direction: column;
		gap: 15px;
		align-items: stretch;
	}

	.logo h1 {
		font-size: 1.5rem;
	}

	.social-links {
		justify-content: center;
	}

	.subtitle {
		font-size: 0.9rem;
		margin-left: 0;
		text-align: center;
	}

	.upload-area {
		padding: 40px 20px;
	}

	.action-buttons {
		flex-direction: column;
		gap: 12px;
	}

	.btn {
		width: 100%;
		justify-content: center;
	}

	.footer-content {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.info-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		padding: 8px 0;
	}

	.main-content {
		padding-top: 20px;
	}
}
