/* Eversource Toolkit - Shared Styles */
/* Clean, minimal design system for all pages */

/* === CSS Reset & Base === */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
		Cantarell, sans-serif;
	line-height: 1.6;
	color: #1a1a1a;
	background-color: #ffffff;
	min-height: 100vh;
	padding-top: 70px; /* Account for fixed header */
}

/* === Header === */
.eversource-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 70px;
	background-color: #fafafa;
	border-bottom: 1px solid #e2e8f0;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 2rem;
}

.header-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: #575f70;
	margin: 0;
	text-align: center;
	flex: 1;
}

.header-home-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1rem;
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	text-decoration: none;
	color: #475569;
	font-weight: 500;
	font-size: 0.875rem;
	transition: all 0.2s ease;
	position: absolute;
}

.header-home-btn:hover {
	background-color: #e2e8f0;
	border-color: #94a3b8;
	color: #334155;
}

.header-home-btn::before {
	content: "←";
	margin-right: 0.5rem;
	font-weight: bold;
}

/* === Layout === */
.container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.container--narrow {
	max-width: 800px;
}

.container--wide {
	max-width: 1200px;
}

/* === Typography === */
h1 {
	font-size: 2.5rem;
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 2rem;
	text-align: center;
	letter-spacing: -0.025em;
}

h2 {
	font-size: 1.5rem;
	font-weight: 600;
	color: #334155;
	margin-bottom: 1rem;
	margin-top: 2rem;
}

h2:first-child {
	margin-top: 0;
}

h3 {
	font-size: 1.25rem;
	font-weight: 500;
	color: #475569;
	margin-bottom: 0.75rem;
	margin-top: 1.5rem;
}

p {
	margin-bottom: 1rem;
	color: #475569;
}

hr {
	margin: 2rem 0 0;
}

/* === Cards & Sections === */
.card {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 2rem;
	margin-bottom: 2rem;
	box-shadow:
		0 1px 3px 0 rgba(0, 0, 0, 0.1),
		0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.step {
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.step h2 {
	color: #0f172a;
	margin-top: 0;
	margin-bottom: 1rem;
}

.step h3 {
	margin-top: 0;
	margin-bottom: 0.75rem;
}

/* === Navigation === */
.nav-list {
	list-style: none;
	padding: 0;
}

.nav-list li {
	margin-bottom: 0.75rem;
}

.nav-list a {
	display: block;
	padding: 0.75rem 1rem;
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	text-decoration: none;
	color: #334155;
	font-weight: 500;
	transition: all 0.2s ease;
}

.nav-list a:hover {
	background-color: #3b82f6;
	border-color: #3b82f6;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* === Forms === */
.form-group {
	margin-bottom: 1.5rem;
}

label {
	display: block;
	font-weight: 500;
	color: #374151;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="file"],
select,
textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 1rem;
	background-color: #ffffff;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

input[type="file"] {
	padding: 0.5rem;
	background-color: #f9fafb;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea {
	min-height: 120px;
	resize: vertical;
	font-family:
		"SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas,
		"Courier New", monospace;
}

/* === Buttons === */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
	min-height: 44px; /* Accessibility: minimum touch target */
}

.btn-primary {
	background-color: #3b82f6;
	color: #ffffff;
}

.btn-primary:hover {
	background-color: #2563eb;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-secondary {
	background-color: #f1f5f9;
	color: #475569;
	border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
	background-color: #e2e8f0;
	border-color: #94a3b8;
}

.btn-success {
	background-color: #10b981;
	color: #ffffff;
}

.btn-success:hover {
	background-color: #059669;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-danger {
	background-color: #ef4444;
	color: #ffffff;
}

.btn-danger:hover {
	background-color: #dc2626;
}

.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.btn-full {
	width: 100%;
}

/* === Progress Bars === */
.progress-container {
	margin: 1rem 0;
}

.progress-bar {
	width: 100%;
	height: 8px;
	background-color: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.progress-fill {
	height: 100%;
	background-color: #3b82f6;
	transition: width 0.3s ease;
}

.progress-text {
	font-size: 0.875rem;
	color: #6b7280;
	text-align: center;
}

/* === Tables === */
table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
	background-color: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

th,
td {
	padding: 0.75rem 1rem;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
}

th {
	background-color: #f9fafb;
	font-weight: 600;
	color: #374151;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

tr:hover {
	background-color: #f9fafb;
}

/* === Utilities === */
.text-center {
	text-align: center;
}

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

.mb-0 {
	margin-bottom: 0;
}
.mb-1 {
	margin-bottom: 0.5rem;
}
.mb-2 {
	margin-bottom: 1rem;
}
.mb-3 {
	margin-bottom: 1.5rem;
}
.mb-4 {
	margin-bottom: 2rem;
}

.mt-0 {
	margin-top: 0;
}
.mt-1 {
	margin-top: 0.5rem;
}
.mt-2 {
	margin-top: 1rem;
}
.mt-3 {
	margin-top: 1.5rem;
}
.mt-4 {
	margin-top: 2rem;
}

.flex {
	display: flex;
}

.flex-column {
	flex-direction: column;
}

.gap-1 {
	gap: 0.5rem;
}
.gap-2 {
	gap: 1rem;
}
.gap-3 {
	gap: 1.5rem;
}

.hidden {
	display: none !important;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* === Status Messages === */
.alert {
	padding: 1rem;
	border-radius: 6px;
	margin-bottom: 1rem;
	border-left: 4px solid;
}

.alert-success {
	background-color: #f0fdf4;
	border-color: #22c55e;
	color: #15803d;
}

.alert-error {
	background-color: #fef2f2;
	border-color: #ef4444;
	color: #dc2626;
}

.alert-info {
	background-color: #eff6ff;
	border-color: #3b82f6;
	color: #1d4ed8;
}

.alert-warning {
	background-color: #fffbeb;
	border-color: #f59e0b;
	color: #d97706;
}

/* === Responsive Design === */
@media (max-width: 768px) {
	.container {
		padding: 1rem 0.75rem;
	}

	h1 {
		font-size: 2rem;
		margin-bottom: 1.5rem;
	}

	.card,
	.step {
		padding: 1.5rem;
	}

	.btn {
		padding: 0.875rem 1.25rem;
	}

	.eversource-header {
		padding: 0 1rem;
	}

	.header-title {
		font-size: 1.25rem;
	}

	.header-home-btn {
		padding: 0.375rem 0.75rem;
		font-size: 0.8rem;
	}
}

/* === Print Styles === */
@media print {
	body {
		background-color: white;
		color: black;
	}

	.card,
	.step {
		box-shadow: none;
		border: 1px solid #ccc;
	}

	.btn {
		border: 1px solid #ccc;
	}
}
