body {
	margin: 0;
	font-family: "Inter", sans-serif;
	display: flex;
	background: #f4f6f9;
}

/* Sidebar */
.sidebar {
	width: 220px;
	background: #2f3e46;
	color: white;
	height: 100vh;
	padding: 20px 0;
	position: fixed;
}

.sidebar .logo {
	font-size: 1.5rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 30px;
}

.sidebar-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar-menu li {
	padding: 15px 20px;
	cursor: pointer;
	transition: background 0.2s;
}

.sidebar-menu li:hover,
.sidebar-menu li.active {
	background: #354f52;
}

.sidebar-menu #logoutBtn {
	margin-top: 30px;
	color: #ff6b6b;
}

.profile {
	background-color: #52796f;
	padding: 7px 15px;
	border-radius: 25px;
	-webkit-border-radius: 25px;
	-moz-border-radius: 25px;
	-ms-border-radius: 25px;
	-o-border-radius: 25px;
}

.profile #adminName {
	color: #eee;
	font-weight: 600;
}

/* Main Content */
.main-content {
	margin-left: 220px;
	padding: 40px 100px;
	flex: 1;
}

.topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cards {
	display: flex;
	gap: 20px;
	margin: 20px 0;
	flex-wrap: wrap;
}

.card {
	background: white;
	padding: 20px;
	border-radius: 10px;
	flex: 1 1 200px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.card h3 {
	margin: 0;
	font-size: 1rem;
	color: #333;
}

.card p {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 10px 0 0;
}

/* Tables */
table {
	width: 90%;
	border-collapse: collapse;
	margin-bottom: 30px;
	margin: auto;
}

thead {
	background: #52796f;
	color: white;
}

th,
td {
	padding: 12px;
	border: 1px solid #ccc;
	text-align: center;
}

tbody tr:nth-child(even) {
	background: #f0f0f0;
}

tbody tr:hover {
	background: #d4ece7af;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
	padding-bottom: 40px;
}

.stat-card {
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
	border: 1px solid rgba(0, 0, 0, 0.02);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.stat-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stat-header {
	background: linear-gradient(135deg, #2f4f4f 0%, #52796f 100%);
	padding: 25px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: white;
}

.city-info h3 {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.city-info p {
	margin: 5px 0 0;
	font-size: 0.85rem;
	opacity: 0.8;
	display: flex;
	align-items: center;
	gap: 5px;
}

.header-progress {
	position: relative;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-progress-circle {
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.header-progress-value {
	position: absolute;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-body {
	padding: 20px;
	background: #fff;
}

.stat-body h4 {
	margin: 0 0 15px;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #888;
	font-weight: 600;
	text-align: right;
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 10px;
}

.neighborhood-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.neighborhood-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 15px;
	font-size: 0.95rem;
	color: #444;
}

.neighborhood-info {
	flex: 1;
	text-align: right;
	padding-left: 15px;
	font-weight: 500;
}

.neighborhood-stats {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 45%;
}

.progress-track {
	flex: 1;
	height: 8px;
	background-color: #f1f3f5;
	border-radius: 4px;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	background: #52796f;
	border-radius: 4px;
	transition: width 1s ease-in-out;
}

.percent-text {
	font-size: 0.8rem;
	font-weight: 600;
	color: #52796f;
	min-width: 35px;
	text-align: left;
}

.stat-body {
	padding: 20px;
	background: #fff;
}

.stat-body h4 {
	margin: 0 0 15px;
	font-size: 0.8rem;
	text-transform: uppercase;
	color: #adb5bd;
	font-weight: 700;
	text-align: right;
	letter-spacing: 0.5px;
}

.neighborhood-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.neighborhood-item {
	background-color: #f8f9fa;
	border: 1px solid #edf2f4;
	border-radius: 12px;
	padding: 12px 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: all 0.2s ease;
}

.neighborhood-item:hover {
	background-color: #ffffff;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transform: translateY(-2px);
	border-color: #e9ecef;
}

.neighborhood-info {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	justify-content: flex-end;
	font-weight: 600;
	font-size: 0.9rem;
	color: #343a40;
}

.location-icon {
	width: 16px;
	height: 16px;
	fill: #adb5bd;
}

.neighborhood-item:hover .location-icon {
	fill: #52796f;
}

.neighborhood-stats {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 45%;
}

.percent-text {
	font-size: 0.85rem;
	font-weight: 800;
	color: #495057;
	min-width: 35px;
	text-align: left;
}

.progress-track {
	flex: 1;
	height: 6px;
	background-color: #e9ecef;
	border-radius: 10px;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	border-radius: 10px;
	background-image: linear-gradient(
		45deg,
		rgba(255, 255, 255, 0.15) 25%,
		transparent 25%,
		transparent 50%,
		rgba(255, 255, 255, 0.15) 50%,
		rgba(255, 255, 255, 0.15) 75%,
		transparent 75%,
		transparent
	);
	background-size: 1rem 1rem;
}

.progress-circle {
	position: relative;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: conic-gradient(#52796f 0deg, #e0e0e0 0deg);
	display: flex;
	align-items: center;
	justify-content: center;
}

.progress-circle::before {
	content: "";
	position: absolute;
	width: 100px;
	height: 100px;
	background-color: white;
	border-radius: 50%;
}

.progress-value {
	position: relative;
	font-size: 1.5rem;
	font-weight: bold;
	color: #333;
	z-index: 1;
}

/* Profile Section CSS */
.profile-container {
	display: flex;
	gap: 40px;
	margin-top: 20px;
	margin: auto;
}

.profile-image img {
	width: 300px;
	height: 300px;
	border-radius: 50%;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-ms-border-radius: 50%;
	-o-border-radius: 50%;
}

.profile-details label {
	display: block;
	margin-bottom: 10px;
}

.profile-details input {
	padding: 5px;
	width: 200px;
}

.profile-details button {
	margin-top: 10px;
	padding: 5px 10px;
}

.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
	background-color: #f9f9f9;
	margin: 10% auto;
	padding: 20px;
	border-radius: 10px;
	width: 400px;
	position: relative;
}
.close-modal {
	position: absolute;
	right: 15px;
	top: 10px;
	font-size: 20px;
	cursor: pointer;
}
.modal-content input {
	width: 100%;
	padding: 8px;
	margin: 5px 0 12px 0;
}
.modal-content button {
	padding: 8px 15px;
	margin-top: 10px;
	cursor: pointer;
}
/* --- Profile card --- */
.profile-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f1f1f1;
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 20px;
}
.profile-card img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
}
