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

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

.container {
	max-width: 1200px;
	margin: 0 auto;
	background: white;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 15px 15px;
	text-align: center;
}

header h1 {
	font-size: 2em;
	margin-bottom: 3px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
	font-size: 0.9em;
	opacity: 0.9;
}

main {
	padding: 15px 10px;
}

/* Compact Countdown Section */
.compact-countdown-section {
	margin-bottom: 20px;
}

.compact-countdown-section h2 {
	text-align: center;
	margin-bottom: 15px;
	color: #333;
	font-size: 1.3em;
}

.compact-countdown-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 30px;
	flex-wrap: wrap;
}

.countdown-box {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	padding: 20px 30px;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	text-align: center;
	min-width: 200px;
}

.days-left {
	font-size: 2.5em;
	font-weight: bold;
	color: white;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.countdown-box p {
	color: white;
	font-size: 0.95em;
	margin-top: 3px;
}

.vertical-graph-container {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: 15px;
	height: 180px;
}

.vertical-graph {
	width: 100px;
	height: 100%;
	background: #e0e0e0;
	border-radius: 10px;
	position: relative;
	overflow: hidden;
}

.graph-bar {
	position: absolute;
	bottom: 0;
	width: 100%;
	background: linear-gradient(to top, #4CAF50, #8BC34A);
	transition: height 0.5s ease;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 10px;
}

.bar-label {
	color: white;
	font-weight: bold;
	font-size: 1.2em;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.graph-labels {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	font-weight: bold;
	color: #666;
}

/* Counts Container - Side by Side Layout */
.counts-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin-bottom: 20px;
}

/* Count Sections */
.count-section {
	padding: 12px;
	background: #f9f9f9;
	border-radius: 10px;
}

.count-section h2 {
	text-align: center;
	margin-bottom: 10px;
	color: #333;
	font-size: 1.3em;
}

.graph-container {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
	min-height: 250px;
}

canvas {
	max-width: 100%;
	height: auto;
}

.total-count {
	text-align: center;
	font-size: 1.3em;
	margin-bottom: 12px;
	color: #333;
	font-weight: bold;
}

.total-count span {
	color: #667eea;
	font-size: 1.2em;
}

.add-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: stretch;
}

.region-select {
	padding: 10px 15px;
	font-size: 0.95em;
	border: 2px solid #ddd;
	border-radius: 8px;
	transition: border-color 0.3s;
	background: white;
	cursor: pointer;
}

.region-select:focus {
	outline: none;
	border-color: #667eea;
}

.add-form input {
	padding: 10px 15px;
	font-size: 0.95em;
	border: 2px solid #ddd;
	border-radius: 8px;
	transition: border-color 0.3s;
}

.add-form input:focus {
	outline: none;
	border-color: #667eea;
}

.add-form textarea {
	padding: 10px 15px;
	font-size: 0.95em;
	border: 2px solid #ddd;
	border-radius: 8px;
	transition: border-color 0.3s;
	resize: vertical;
	font-family: inherit;
}

.add-form textarea:focus {
	outline: none;
	border-color: #667eea;
}

.add-form button {
	padding: 10px 25px;
	font-size: 0.95em;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	font-weight: bold;
}

.add-form button:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.add-form button:active {
	transform: translateY(0);
}

footer {
	background: #f0f0f0;
	padding: 12px;
	text-align: center;
}

.admin-link {
	color: #667eea;
	text-decoration: none;
	font-weight: bold;
	font-size: 1em;
	transition: color 0.3s;
}

.admin-link:hover {
	color: #764ba2;
}

/* Progress Sections */
.progress-section {
	margin-bottom: 20px;
	padding: 0 5px;
	/* Match the overall page padding */
}

.progress-section h2 {
	text-align: center;
	margin-bottom: 15px;
	color: #333;
	font-size: 1.3em;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.counts-container {
		grid-template-columns: 1fr;
	}
}

/* Progress Bars Container */
.progress-bars-container {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 0 5px;
	/* Match the overall page padding for consistency */
}

.progress-bar-item {
	width: 100%;
}

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

.progress-label {
	font-size: 1.1em;
	font-weight: bold;
	color: #333;
}

.progress-value {
	font-size: 1.05em;
	font-weight: bold;
	color: #667eea;
}

.progress-bar-track {
	width: 100%;
	height: 40px;
	background: #e0e0e0;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
	position: relative;
}

.progress-bar-fill {
	height: 100%;
	transition: width 0.5s ease;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 15px;
	position: relative;
}

.pledged-fill {
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.achieved-fill {
	background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
}

.progress-percentage {
	color: white;
	font-weight: bold;
	font-size: 1em;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
	white-space: nowrap;
}

/* Regional Totals */
.regional-totals {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 15px;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 5px;
	/* Match the overall page padding for consistency */
}

.regional-card {
	background: white;
	padding: 15px;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s, box-shadow 0.3s;
}

.regional-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.regional-card h3 {
	margin: 0 0 10px 0;
	color: #667eea;
	font-size: 1.2em;
	text-align: center;
}

.regional-stats {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.regional-stat {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px;
	background: #f9f9f9;
	border-radius: 6px;
}

.stat-label {
	font-weight: 600;
	color: #666;
}

.stat-value {
	font-weight: bold;
	font-size: 1.1em;
}

.stat-value.pledged {
	color: #764ba2;
}

.stat-value.achieved {
	color: #4CAF50;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.counts-container {
		grid-template-columns: 1fr;
	}

	.regional-totals {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	header h1 {
		font-size: 1.8em;
	}

	.days-left {
		font-size: 2.2em;
	}

	.countdown-box {
		padding: 12px 25px;
	}

	.vertical-graph-container {
		height: 200px;
	}
}

/* Responsive behavior for compact countdown */
@media (max-width: 768px) {
	.compact-countdown-container {
		flex-direction: column;
		gap: 20px;
	}

	.horizontal-graph-container {
		min-width: 250px;
	}

	.horizontal-graph {
		width: 250px;
	}

	.horizontal-graph-labels {
		width: 250px;
	}

	.countdown-box {
		min-width: auto;
		width: 100%;
		max-width: 250px;
	}
}

/* Horizontal Graph Styles */
.horizontal-graph-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	min-width: 300px;
}

.horizontal-graph {
	width: 300px;
	height: 40px;
	background: #e0e0e0;
	border-radius: 20px;
	position: relative;
	overflow: hidden;
}

.horizontal-graph-bar {
	position: absolute;
	right: 0;
	height: 100%;
	background: linear-gradient(to left, #4CAF50, #8BC34A);
	transition: width 0.5s ease;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding-left: 15px;
}

.horizontal-bar-label {
	color: white;
	font-weight: bold;
	font-size: 1em;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.horizontal-graph-labels {
	display: flex;
	justify-content: space-between;
	width: 300px;
	font-weight: bold;
	color: #666;
	font-size: 0.9em;
}

/* Entry Lists with Action Buttons */
.entries-list {
	margin-top: 15px;
	margin-bottom: 15px;
	max-height: 400px;
	overflow-y: auto;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 10px;
	background: white;
}

.entry-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	margin-bottom: 8px;
	background: #f9f9f9;
	border-radius: 6px;
	position: relative;
	transition: background 0.2s;
}

.entry-item:hover {
	background: #f0f0f0;
}

.entry-item.own-entry {
	background: #e3f2fd;
	border: 1px solid #90caf9;
}

.entry-item.own-entry:hover {
	background: #bbdefb;
}

.entry-bar {
	height: 30px;
	min-width: 40px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0 8px;
	transition: width 0.3s ease;
}

.entry-value {
	color: white;
	font-weight: bold;
	font-size: 0.9em;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.entry-info {
	flex: 1;
	min-width: 0;
}

.entry-region {
	font-weight: 600;
	color: #333;
	font-size: 0.95em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.entry-date {
	font-size: 0.8em;
	color: #888;
}

.entry-description {
	font-size: 0.85em;
	color: #555;
	margin-top: 4px;
	font-style: italic;
	line-height: 1.3;
	word-wrap: break-word;
}

.entry-actions {
	display: flex;
	gap: 5px;
	flex-shrink: 0;
}

.btn-edit-entry,
.btn-delete-entry {
	padding: 4px 8px;
	font-size: 1.1em;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: transform 0.2s, background 0.2s;
	background: rgba(255, 255, 255, 0.9);
}

.btn-edit-entry:hover {
	transform: scale(1.1);
	background: #fff3cd;
}

.btn-delete-entry:hover {
	transform: scale(1.1);
	background: #ffcccc;
}