:root {
	--primary-color: #4361ee;
	--primary-hover: #3949ab;
	--primary-light: #edf2ff;
	--secondary-color: #6c757d;
	--text-color: #212529;
	--text-muted: #6c757d;
	--background-color: #ffffff;
	--background-light: #f8f9fa;
	--border-color: #c9cccf;
	--footer-color: #494440;
	--footer-text: #e8e6e3;
	--nav-color: #d8e2dc;
	--nav-border: var(--border-color);
	--nav-height: 60px;
	--footer-height: 60px;
	--border-radius: 8px;
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
	--shadow: 0 2px 6px rgba(0,0,0,0.06);
	--shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
}

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

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
}

/* Main layout structure */
#outer-container {
	background-color: var(--background-light);
	min-height: 100vh; /* Ensure it fills at least the viewport height */
	display: flex;
	flex-direction: column;
	position: relative;
	padding-top: var(--nav-height);
	padding-bottom: var(--footer-height);
}

#container {
	max-width: 800px;
	width: 100%;
	margin: 0 auto;
	padding: 2rem;
	flex: 1 0 auto; /* Allow container to grow but not shrink */
}

/* Navigation */
nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--nav-height);
	background-color: var(--nav-color);
	color: var(--text-color);
	display: flex;
	align-items: center;
	padding: 0 2rem;
	z-index: 100;
	box-shadow: var(--shadow);
	border-bottom: 1px solid var(--nav-border);
}

nav a {
	color: var(--text-color);
	text-decoration: none !important;
	font-weight: 500;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

nav a:first-child {
	margin-right: auto; /* This ensures first link stays left even when alone */
}

nav a:not(:first-child) {
	margin-left: 1rem;
}

nav a:hover, nav a:visited:hover {
	color: var(--primary-color);
	background-color: var(--background-light);
	text-decoration: none !important;
}

nav a:visited {
	color: var(--text-color);
	text-decoration: none !important;
}

/* Keep any special styling for last nav link if needed in the future */

/* Footer */
footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: var(--footer-height);
	background-color: var(--footer-color);
	border-top: 1px solid #5d534c;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 2rem;
	z-index: 100;
	max-width: none;
	box-shadow: var(--shadow-sm);
	color: var(--footer-text);
}

footer a, footer a:visited {
	color: #e0cfc0;
	text-decoration: underline;
	font-weight: 500;
}

footer a:hover {
	color: #f0e6d9;
	text-decoration: underline;
}

/* Card component */
.card {
	background-color: var(--background-color);
	border-radius: var(--border-radius);
	padding: 2rem;
	margin-bottom: 2rem;
	box-shadow: var(--shadow);
	border: 1px solid var(--border-color);
}

/* Form elements */
input, textarea, select {
	font-family: inherit;
	font-size: 1rem;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	width: 100%;
	margin-bottom: 1rem;
	background-color: white;
}

::placeholder {
				color: rgba(0,0,0,0.2);
}

::-webkit-input-placeholder {
				color: rgba(0,0,0,0.2);
}

::-moz-placeholder {
				color: rgba(0,0,0,0.2);
				opacity: 1; /* Firefox needs this to apply the color properly */
}

:-ms-input-placeholder {
				color: rgba(0,0,0,0.2);
}

::-ms-input-placeholder {
				color: rgba(0,0,0,0.2);
}

/* Utility classes for buttons */
.btn-block {
	width: 100% !important;
	display: block !important;
}



input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: none;
}

/* Button styling */
button {
	font-family: inherit;
	font-size: 1rem;
	background-color: var(--primary-color);
	color: white;
	cursor: pointer;
	border: none;
	font-weight: 500;
	padding: 0.625rem 1.25rem;
	width: auto !important;
	display: inline-block !important;
	border-radius: 6px;
	margin-bottom: 1rem;
	min-width: unset !important;
}

button:hover {
	background-color: var(--primary-hover);
}

button.secondary {
	background-color: var(--background-color);
	color: var(--text-color);
	border: 1px solid var(--border-color);
}

/* Remove any button modifiers that would override our main button styles */

button.secondary:hover {
	background-color: #e9ecef;
}

/* Table styles */
table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
}

table th,
table td {
	padding: 0.75rem;
	text-align: left;
	border-bottom: 1px solid var(--border-color);
}

table tr:last-child td {
	border-bottom: none;
}

table th {
	font-weight: 600;
	background-color: var(--background-color);
	color: var(--text-color);
}

table tr:hover {
	background-color: inherit;
}



/* Responsive adjustments */
@media (max-width: 768px) {
	#container {
		padding: 1.5rem;
	}

	.card {
		padding: 1.5rem;
	}

	nav {
		padding: 0 1rem;
	}

	footer {
		padding: 0 1rem;
		font-size: 0.9rem;
	}

	input, textarea, select, button {
		font-size: 16px; /* Prevent zoom on mobile */
	}

	button {
		font-size: 16px;
	}
}

/* Additional utility classes */
.flex {
	display: flex;
}

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

.justify-between {
	justify-content: space-between;
}

.gap-4 {
	gap: 1rem;
}

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

.mt-6 {
	margin-top: 1.5rem;
}

/* Add some white space between sections */
h1, h2, h3 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: var(--text-color);
	font-weight: 600;
}

h1 {
	font-size: 1.75rem;
}

h2 {
	font-size: 1.5rem;
}

h3 {
	font-size: 1.25rem;
}

p {
	margin-bottom: 1rem;
	color: var(--text-color);
	line-height: 1.7;
}

/* Additional modern elements */
.badge {
	display: inline-block;
	padding: 0.35em 0.65em;
	font-size: 0.75em;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
	border-radius: 50rem;
	background-color: var(--primary-color);
}

.badge.secondary {
	background-color: var(--secondary-color);
}

/* Links */
a, a:visited {
	color: var(--primary-color);
	text-decoration: underline;
}

a:hover {
	color: var(--primary-hover);
}

/* My handcrafted */

.list-item {
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: .3rem .8rem;
    margin-bottom: .5rem;
}
