/* Eden Nutrient Mixer — brand: forest green #1B3A2E, mint #5FA88A, gold #9C7A2E, cream #FBF9F4 */

.eden-nm-fullwidth {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	background: linear-gradient(180deg, #FBF9F4 0%, #F4F0E6 100%);
	box-sizing: border-box;
}

.eden-nm-spacer {
	width: 100%;
	display: block;
}

.eden-nm-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 56px 32px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	box-sizing: border-box;
}

.eden-nm-wrap *,
.eden-nm-wrap *::before,
.eden-nm-wrap *::after {
	box-sizing: border-box;
}

/* Header */
.eden-nm-header {
	text-align: center;
	margin-bottom: 40px;
}

.eden-nm-kicker {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.14em;
	color: #9C7A2E;
	font-weight: 500;
	text-transform: uppercase;
}

.eden-nm-header h2 {
	font-family: 'Playfair Display', serif;
	font-size: 42px;
	font-weight: 700;
	color: #1B3A2E;
	margin: 10px 0 8px;
}

.eden-nm-header p {
	font-size: 16px;
	color: #4c5c54;
	margin: 0;
}

/* Controls */
.eden-nm-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	justify-content: space-between;
	margin-bottom: 32px;
	background: #ffffff;
	border: 1px solid #E4DFD0;
	border-radius: 14px;
	padding: 16px 20px;
}

.eden-nm-search {
	flex: 1 1 240px;
}

.eden-nm-search input {
	width: 100%;
	padding: 11px 16px;
	border: 1.5px solid #E4DFD0;
	border-radius: 10px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #1B3A2E;
	background: #FBF9F4;
	outline: none;
	transition: border-color 0.15s ease;
}

.eden-nm-search input:focus {
	border-color: #5FA88A;
}

.eden-nm-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 2 1 420px;
}

.eden-nm-pill {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #1B3A2E;
	background: #F4F0E6;
	border: 1.5px solid #E4DFD0;
	border-radius: 999px;
	padding: 7px 15px;
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
}

.eden-nm-pill:hover {
	border-color: #5FA88A;
}

.eden-nm-pill.is-active {
	background: #1B3A2E;
	border-color: #1B3A2E;
	color: #FBF9F4;
}

.eden-nm-add-btn {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #FBF9F4;
	background: #9C7A2E;
	border-radius: 10px;
	padding: 10px 18px;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.15s ease;
}

.eden-nm-add-btn:hover {
	opacity: 0.88;
	color: #FBF9F4;
}

/* Grid + cards */
.eden-nm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 20px;
}

.eden-nm-card {
	background: #ffffff;
	border: 1px solid #E4DFD0;
	border-radius: 16px;
	padding: 20px;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
	display: flex;
	flex-direction: column;
}

.eden-nm-card:hover {
	box-shadow: 0 10px 28px rgba(27, 58, 46, 0.10);
	transform: translateY(-2px);
	border-color: #5FA88A;
}

.eden-nm-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.eden-nm-icon {
	font-size: 28px;
	line-height: 1;
}

.eden-nm-category-badge {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #5FA88A;
	background: rgba(95, 168, 138, 0.12);
	border-radius: 999px;
	padding: 4px 9px;
}

.eden-nm-card-title {
	font-family: 'Playfair Display', serif;
	font-size: 19px;
	font-weight: 600;
	color: #1B3A2E;
	margin: 0 0 14px;
}

.eden-nm-stat-row {
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
}

.eden-nm-stat {
	flex: 1;
	background: #FBF9F4;
	border: 1px solid #EEE9DC;
	border-radius: 10px;
	padding: 8px 6px;
	text-align: center;
}

.eden-nm-stat-label {
	display: block;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 10px;
	color: #9C7A2E;
	letter-spacing: 0.05em;
	margin-bottom: 3px;
}

.eden-nm-stat-value {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1B3A2E;
}

.eden-nm-calmag-tag {
	align-self: flex-start;
	font-size: 11px;
	font-weight: 600;
	color: #9C7A2E;
	background: rgba(156, 122, 46, 0.12);
	border-radius: 6px;
	padding: 3px 8px;
	margin-bottom: 12px;
}

.eden-nm-mix-btn {
	margin-top: auto;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #FBF9F4;
	background: #1B3A2E;
	border: none;
	border-radius: 10px;
	padding: 11px 16px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.eden-nm-mix-btn:hover {
	background: #274d3c;
}

/* Expanding calculator panel */
.eden-nm-panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.28s ease;
	margin-top: 0;
}

.eden-nm-panel.is-open {
	max-height: 600px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed #E4DFD0;
}

.eden-nm-panel-row {
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
}

.eden-nm-panel-row label {
	flex: 1;
	font-size: 12px;
	font-weight: 500;
	color: #4c5c54;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.eden-nm-panel-row input,
.eden-nm-panel-row select {
	padding: 8px 10px;
	border: 1.5px solid #E4DFD0;
	border-radius: 8px;
	font-size: 13px;
	color: #1B3A2E;
	background: #FBF9F4;
	font-family: 'Inter', sans-serif;
}

.eden-nm-calc-btn {
	width: 100%;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #1B3A2E;
	background: #EFE7C8;
	border: 1.5px solid #9C7A2E;
	border-radius: 10px;
	padding: 9px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.eden-nm-calc-btn:hover {
	background: #E4D8A6;
}

.eden-nm-result {
	margin-top: 12px;
}

.eden-nm-result-card {
	background: #1B3A2E;
	color: #FBF9F4;
	border-radius: 12px;
	padding: 14px;
}

.eden-nm-result-title {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.05em;
	color: #9CD9BC;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.eden-nm-result-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 8px;
}

.eden-nm-result-item {
	background: rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	padding: 8px;
}

.eden-nm-result-item .label {
	display: block;
	font-size: 10px;
	color: #C9DFD2;
	margin-bottom: 2px;
}

.eden-nm-result-item .value {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: #FBF9F4;
	font-family: 'IBM Plex Mono', monospace;
}

.eden-nm-result-target {
	font-size: 11px;
	color: #C9DFD2;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	padding-top: 8px;
	margin-top: 4px;
}

.eden-nm-notes {
	font-size: 12px;
	color: #6b7a70;
	margin: 12px 0 0;
	line-height: 1.5;
}

.eden-nm-empty {
	text-align: center;
	color: #6b7a70;
	font-size: 15px;
	padding: 40px 0;
}

/* Responsive */
@media (max-width: 640px) {
	.eden-nm-wrap {
		padding: 36px 16px;
	}
	.eden-nm-header h2 {
		font-size: 30px;
	}
	.eden-nm-controls {
		flex-direction: column;
		align-items: stretch;
	}
	.eden-nm-result-grid {
		grid-template-columns: 1fr;
	}
}

/* Admin screen light styling */
.eden-nm-admin-wrap .form-table th {
	width: 260px;
}

/* ===== Eden Plant Capacity Calculator — additional styles ===== */

.eden-pc-summary {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-bottom: 40px;
}

.eden-pc-summary-item {
	background: #ffffff;
	border: 1px solid #E4DFD0;
	border-radius: 14px;
	padding: 18px;
	text-align: center;
}

.eden-pc-summary-highlight {
	background: #1B3A2E;
	border-color: #1B3A2E;
}

.eden-pc-summary-value {
	display: block;
	font-family: 'Playfair Display', serif;
	font-size: 28px;
	font-weight: 700;
	color: #1B3A2E;
	margin-bottom: 4px;
}

.eden-pc-summary-highlight .eden-pc-summary-value {
	color: #FBF9F4;
}

.eden-pc-summary-label {
	display: block;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #6b7a70;
}

.eden-pc-summary-highlight .eden-pc-summary-label {
	color: #9CD9BC;
}

.eden-pc-legend-header {
	margin-bottom: 16px;
}

.eden-pc-legend-header h3 {
	font-family: 'Playfair Display', serif;
	font-size: 24px;
	color: #1B3A2E;
	margin: 0;
}

.eden-pc-legend-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	margin-bottom: 44px;
}

.eden-pc-legend-card {
	background: #ffffff;
	border: 1px solid #E4DFD0;
	border-radius: 14px;
	padding: 18px;
}

.eden-pc-legend-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.eden-pc-legend-card h4 {
	font-family: 'Playfair Display', serif;
	font-size: 16px;
	color: #1B3A2E;
	margin: 0 0 8px;
}

.eden-pc-legend-card p {
	font-size: 12.5px;
	line-height: 1.55;
	color: #4c5c54;
	margin: 0 0 10px;
}

.eden-pc-legend-spacing {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	color: #9C7A2E;
}

.eden-pc-plot-code {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 18px;
	font-weight: 700;
	color: #1B3A2E;
	background: rgba(95, 168, 138, 0.14);
	border-radius: 8px;
	padding: 3px 10px;
}

.eden-pc-status-tag {
	font-size: 11px;
	font-weight: 600;
	border-radius: 999px;
	padding: 4px 10px;
}

.eden-pc-status-active {
	color: #2f6b4f;
	background: rgba(95, 168, 138, 0.16);
}

.eden-pc-status-planned {
	color: #9C7A2E;
	background: rgba(156, 122, 46, 0.16);
}

.eden-pc-status-maintenance {
	color: #b3492d;
	background: rgba(179, 73, 45, 0.14);
}

.eden-pc-zone {
	font-size: 12px;
	color: #6b7a70;
	margin: -8px 0 14px;
}

.eden-pc-capacity-box {
	background: #FBF9F4;
	border: 1px dashed #9C7A2E;
	border-radius: 10px;
	padding: 10px;
	text-align: center;
	margin-bottom: 12px;
}

.eden-pc-capacity-value {
	display: block;
	font-family: 'Playfair Display', serif;
	font-size: 22px;
	font-weight: 700;
	color: #1B3A2E;
}

.eden-pc-capacity-label {
	display: block;
	font-size: 11px;
	color: #9C7A2E;
	font-family: 'IBM Plex Mono', monospace;
}

@media (max-width: 780px) {
	.eden-pc-summary {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ===== Eden Climate Control — additional styles ===== */

.eden-cc-status-high {
	color: #b3492d;
	background: rgba(179, 73, 45, 0.14);
}

.eden-cc-snapshot-label {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	color: #6b7a70;
	margin-bottom: 12px;
}

.eden-cc-snapshot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px;
	margin-bottom: 44px;
}

.eden-cc-snapshot-card {
	background: #ffffff;
	border: 1px solid #E4DFD0;
	border-radius: 14px;
	padding: 16px;
}

.eden-cc-snapshot-value {
	display: block;
	font-family: 'Playfair Display', serif;
	font-size: 30px;
	font-weight: 700;
	color: #1B3A2E;
	margin: 10px 0 2px;
}

.eden-cc-snapshot-unit {
	font-size: 15px;
	font-weight: 500;
	color: #6b7a70;
	margin-left: 3px;
}

.eden-cc-snapshot-name {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1B3A2E;
	margin-bottom: 4px;
}

.eden-cc-snapshot-target {
	display: block;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	color: #9C7A2E;
}

.eden-cc-chart-controls {
	margin-bottom: 16px;
}

.eden-cc-chart-controls label {
	font-size: 13px;
	font-weight: 500;
	color: #1B3A2E;
}

.eden-cc-chart-controls select {
	margin-left: 8px;
	padding: 7px 12px;
	border: 1.5px solid #E4DFD0;
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	background: #FBF9F4;
	color: #1B3A2E;
}

.eden-cc-chart-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 18px;
	margin-bottom: 44px;
}

.eden-cc-chart-card {
	background: #ffffff;
	border: 1px solid #E4DFD0;
	border-radius: 16px;
	padding: 18px;
}

.eden-cc-chart-card h4 {
	font-family: 'Playfair Display', serif;
	font-size: 15px;
	color: #1B3A2E;
	margin: 0 0 14px;
}

/* ===== Eden Water Management — additional styles ===== */

.eden-wm-source-unused {
	opacity: 0.55;
}

.eden-wm-ok {
	color: #1B3A2E;
}

.eden-wm-low {
	color: #9C7A2E;
}

.eden-wm-high {
	color: #b3492d;
}

/* --- 3D-style tank visualizer --- */

.eden-wm-tank3d {
	position: relative;
	width: 130px;
	height: 170px;
	margin: 4px auto 10px;
	perspective: 700px;
}

.eden-wm-tank3d-body {
	position: absolute;
	top: 16px;
	bottom: 14px;
	left: 6px;
	right: 6px;
	background: linear-gradient(90deg, rgba(27,58,46,0.10) 0%, rgba(255,255,255,0.95) 16%, rgba(255,255,255,0.95) 84%, rgba(27,58,46,0.10) 100%), #f2f4ee;
	border: 2px solid #d3dccf;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: inset 0 0 18px rgba(0,0,0,0.08), 0 6px 14px rgba(27,58,46,0.08);
}

.eden-wm-tank3d-cap {
	position: absolute;
	top: 0;
	left: 2px;
	right: 2px;
	height: 24px;
	background: linear-gradient(180deg, #ffffff, #d7ded0);
	border-radius: 50%;
	border: 2px solid #d3dccf;
	transform: rotateX(62deg);
	transform-origin: center;
	box-shadow: 0 2px 5px rgba(0,0,0,0.10);
	z-index: 3;
}

.eden-wm-tank3d-base {
	position: absolute;
	bottom: -4px;
	left: 2px;
	right: 2px;
	height: 18px;
	background: linear-gradient(180deg, #c3cdbd, #a6b09e);
	border-radius: 50%;
	transform: rotateX(62deg);
	z-index: 0;
}

.eden-wm-tank3d-liquid {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(180deg, rgba(95,168,138,0.9) 0%, rgba(27,58,46,0.92) 100%);
	transition: height 1.1s ease;
	overflow: hidden;
}

.eden-wm-tank3d-liquid::before {
	content: '';
	position: absolute;
	top: -8px;
	left: -25%;
	width: 150%;
	height: 18px;
	background: radial-gradient(ellipse at center, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 72%);
	animation: eden-wm-wave 3.2s ease-in-out infinite;
}

@keyframes eden-wm-wave {
	0%, 100% { transform: translateX(-6%) scaleY(1); }
	50% { transform: translateX(6%) scaleY(1.35); }
}

.eden-wm-tank3d-bubble {
	position: absolute;
	bottom: 4px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(255,255,255,0.55);
	animation: eden-wm-rise 4s linear infinite;
}

.eden-wm-tank3d-bubble.b1 { left: 30%; animation-delay: 0s; }
.eden-wm-tank3d-bubble.b2 { left: 55%; animation-delay: 1.3s; width: 4px; height: 4px; }
.eden-wm-tank3d-bubble.b3 { left: 72%; animation-delay: 2.6s; width: 6px; height: 6px; }

@keyframes eden-wm-rise {
	0%   { transform: translateY(0); opacity: 0; }
	10%  { opacity: 0.8; }
	90%  { opacity: 0.4; }
	100% { transform: translateY(-120px); opacity: 0; }
}

.eden-wm-tank3d-pct {
	position: absolute;
	bottom: 8px;
	left: 0;
	right: 0;
	text-align: center;
	font-family: 'IBM Plex Mono', monospace;
	font-weight: 700;
	font-size: 14px;
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0,0,0,0.45);
	z-index: 4;
}

.eden-wm-tank-volume {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	color: #4c5c54;
	margin-bottom: 14px;
}

@media (max-width: 480px) {
	.eden-wm-tank3d {
		width: 110px;
		height: 150px;
	}
}
