/**
 * Minimal Custom CSS - استفاده از Pico.css
 * فقط برای Lucide Icons و کوچک tweaks
 */

:root {
	--form-element-spacing: 1rem;
	--transition-duration: 0.2s;
}

/* Lucide Icons */
i[data-lucide],
svg[data-lucide] {
	display: inline-block;
	vertical-align: middle;
	width: 1.25em;
	height: 1.25em;
	stroke-width: 2;
	stroke: currentColor;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Navigation */
nav {
	position: sticky;
	top: 0;
	z-index: 999;
}

nav ul li a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

nav strong a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

/* Stat Cards */
.stat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem;
	border: 1px solid var(--form-element-border-color);
	border-radius: var(--border-radius);
	background-color: var(--card-background-color);
	box-shadow: var(--card-box-shadow);
	transition: all var(--transition-duration) ease;
}

.stat-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.stat-card i[data-lucide] {
	opacity: 0.7;
	transition: opacity var(--transition-duration);
	color: var(--form-element-valid-border-color);
}

.stat-card:hover i[data-lucide] {
	opacity: 1;
}

.stat-card p {
	margin: 0.5rem 0 0;
	color: var(--form-element-valid-border-color);
}

.stat-card small {
	color: var(--muted-color);
	font-size: 0.9rem;
	margin-top: 0.25rem;
}

/* Main layout */
body > nav {
	margin-bottom: 1rem;
}

main,
.main-content {
	animation: fadeIn 0.3s ease-in;
}

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

/* Headings with Icons */
h1, h2, h3 {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

h1 svg, h2 svg, h3 svg {
	flex-shrink: 0;
}

/* Modal Styling */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	animation: fadeIn 0.2s ease;
}

.modal.show {
	display: block;
}

.modal-content {
	background-color: var(--card-background-color);
	margin: 5% auto;
	padding: 2rem;
	border: 1px solid var(--form-element-border-color);
	border-radius: var(--border-radius);
	width: 90%;
	max-width: 600px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	animation: slideDown 0.2s ease;
}

.modal-content h2 {
	margin-top: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.modal-close {
	float: right;
	font-size: 1.5rem;
	font-weight: bold;
	cursor: pointer;
	color: var(--muted-color);
	transition: color var(--transition-duration);
	border: none;
	background: none;
	padding: 0;
}

.modal-close:hover {
	color: var(--form-element-invalid-border-color);
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-50px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Helper Classes */
.flex-between {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.text-center {
	text-align: center;
}

.mt-2 {
	margin-top: 1rem;
}

.mb-2 {
	margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 576px) {
	nav ul li a {
		padding: 0.5rem 0.75rem;
		font-size: 0.85rem;
	}

	nav ul li a svg {
		width: 1rem;
		height: 1rem;
	}

	.stat-card {
		padding: 1.5rem;
	}

	.stat-card p {
		font-size: 1.5rem;
	}

	h1, h2, h3 {
		font-size: 1.2rem;
	}

	h1 i, h2 i, h3 i {
		width: 1.5rem;
		height: 1.5rem;
	}

	.modal-content {
		width: 95%;
		margin: 20% auto;
		padding: 1.5rem;
	}
}
