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

html {
	font-size: 14px;
}

@media (min-width: 768px) {
	html {
		font-size: 16px;
	}
}

body {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
	max-width: 960px;
}

/* Header Styling */
.d-flex.flex-column.flex-md-row {
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
	border-bottom: none !important;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.d-flex.flex-column.flex-md-row h5 {
	color: white !important;
	font-weight: 600 !important;
	letter-spacing: 1px;
}

.d-flex.flex-column.flex-md-row a {
	color: rgba(255, 255, 255, 0.9) !important;
	transition: all 0.3s ease;
	font-weight: 500;
}

.d-flex.flex-column.flex-md-row a:hover {
	color: white !important;
	transform: translateY(-2px);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Title Section */
.title {
	background: white;
	border-radius: 15px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
	margin-top: 20px !important;
}

.title h1 {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: 700;
	letter-spacing: -1px;
}

/* Input Group Styling */
.input-group {
	display: flex;
	gap: 10px;
	margin: 30px auto;
	max-width: 600px;
	padding: 0 15px;
	flex-wrap: wrap;
	justify-content: center;
}

.form-control {
	border: 2px solid rgba(255, 255, 255, 0.3) !important;
	border-radius: 10px !important;
	padding: 12px 16px !important;
	background: white !important;
	color: #333 !important;
	font-size: 15px;
	transition: all 0.3s ease;
	flex: 1;
	min-width: 250px;
}

.form-control:focus {
	border-color: #667eea !important;
	box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
	background: #f8f9ff !important;
}

.form-control::placeholder {
	color: #999;
}

/* Button Styling */
.btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	border: none !important;
	border-radius: 10px !important;
	padding: 12px 32px !important;
	font-weight: 600;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
	min-width: 150px;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
	transform: translateY(0);
	box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Loading Bar */
#bar {
	text-align: center;
	padding: 20px;
	animation: fadeInDown 0.5s ease;
}

#bar img {
	max-width: 60px;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

/* Result Styling */
.mt-3 {
	animation: slideUp 0.5s ease;
}

.row > .col-md-12 {
	margin-bottom: 15px;
}

.bg-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	border-radius: 10px 10px 0 0;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.bg-dark {
	background: rgba(50, 50, 50, 0.95) !important;
	border-radius: 0 0 10px 10px;
	border-left: 4px solid #667eea;
	color: white !important;
	word-wrap: break-word;
	transition: all 0.3s ease;
}

.bg-dark:hover {
	background: rgba(40, 40, 40, 0.95) !important;
	border-left-color: #764ba2;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#links a {
	display: inline-block;
	margin: 8px 8px 8px 0;
	padding: 10px 16px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	text-decoration: none;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

#links a:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
	text-decoration: none;
	color: white;
}

/* Footer */
.footer {
	background: rgba(0, 0, 0, 0.05) !important;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: auto;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

.footer .text-muted {
	color: rgba(255, 255, 255, 0.8) !important;
	font-size: 13px;
	line-height: 1.6;
}

/* Animations */
@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive */
@media (max-width: 576px) {
	.input-group {
		flex-direction: column;
	}

	.form-control {
		min-width: 0;
		width: 100%;
	}

	.btn-primary {
		width: 100%;
		min-width: 0;
	}

	.title h1 {
		font-size: 2rem;
	}

	.d-flex.flex-column.flex-md-row {
		padding: 1rem 0.75rem !important;
	}
}