/* The keyframe animation rule */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* === Changes made by Thomaz: Unified Minima-LCA Pro visual theme, layout shell, top header, 3D viewer toolbar, collapsible workflow cards, high-contrast dropdowns, wider numeric inputs, and results KPI panel === */

/* Apply it to your spinner class */
.spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #e2ece9;
  border-top: 4px solid #1f7a56;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

/* Top Navigation Header for /pro */
/* === Changes made by Thomaz: Locked .pro-app-shell and .pro-top-header box-sizing and flex dimensions so header + workspace always equal 100% of screen height === */
.pro-app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  width: 100%;
  background-color: #f4f7f6;
  overflow: hidden;
  box-sizing: border-box;
}

.pro-top-header {
  flex: 0 0 52px;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  box-sizing: border-box;
  background-color: #1e2928;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #0f1716;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 20;
}

.pro-brand-group {
  display: flex;
  align-items: center;
}

.pro-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

.pro-brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.pro-brand-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.pro-brand-badge {
  background-color: #1f7a56;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.8px;
}

.pro-top-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pro-nav-link {
  text-decoration: none;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.pro-nav-link:hover,
.pro-nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.pro-nav-manual {
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.geometry-edit-btn {
  padding: 5px 10px;
  margin: 0px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #334155;
  border-radius: 6px;
  width: fit-content;
  flex-shrink: 0;
  flex-grow: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.geometry-edit-btn.btn-save {
  background-color: #1f7a56;
  border-color: #1f7a56;
  color: #ffffff;
}

.geometry-numeric-input {
  width: 58px;
  padding: 4px 6px;
  font-size: 12.5px;
  border-radius: 5px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #1e293b;
  background-color: transparent;
  border: 1px solid transparent;
}

/* Active editing state */
.geometry-numeric-input.editing-active {
  border: 1px solid #1f7a56;
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(31, 122, 86, 0.14);
}

.geometry-unit {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
  margin-left: 2px;
}

.WDC-font {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

button:hover:not(:disabled) {
  background-color: #e6f4ef;
}

ul {
  list-style-type: none;
  padding: 0;
}

.material-item {
  padding: 10px;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

/* 1. Prevent buttons and swatch from shrinking or changing size */
.material-item-main .color-swatch {
  flex-shrink: 0;
  white-space: nowrap;
}

/* 2. Make the text take up all available space and wrap correctly */
.material-item-main .text-element {
  flex-grow: 1;
  flex-shrink: 1;
  min-width: 0;
  margin: 0 12px;
  text-align: left;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.material-type-pill {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.material-type-pill.type-material {
  background-color: #e6f4ef;
  color: #0f5132;
}

.material-type-pill.type-component {
  background-color: #e0f2fe;
  color: #0369a1;
}

.material-item-title {
  font-weight: 600;
  color: #1e293b;
  font-size: 13.5px;
  word-break: break-word;
}

.material-unmapped-badge {
  font-size: 10.5px;
  font-weight: 600;
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 1px 6px;
  border-radius: 999px;
}

.button-group {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Ensure buttons themselves don't have external margins */
.button-group button {
  margin: 0;
}

.material-item:hover {
  background-color: #f8fafc;
}

.material-uuid {
  display: block;
  font-size: 0.8em;
  color: #64748b;
  margin-top: 4px;
}

.gwp-section p {
  margin: 5px 0;
}

.error-message {
  color: #dc2626;
  font-weight: bold;
}

ul li {
  background: transparent;
  color: #1e293b;
  margin: 3px 0;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f4f7f6;
  color: #1e293b;
  overflow: hidden;
}

.app-container {
  display: flex;
  flex-direction: row;
  flex: 1 1 0;
  min-height: 0;
  height: calc(100vh - 52px);
  max-height: calc(100vh - 52px);
  padding: 14px;
  font-family: inherit;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.panel {
  background-color: #ffffff;
  border: 1px solid #dce8e5;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(7, 59, 60, 0.05);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.left-panel {
  flex: 1.35;
  padding: 12px;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

/* 3D Viewer Responsive Flex Container */
.ifc-viewer-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
}

.ifc-canvas-viewport {
  flex: 1;
  width: 100%;
  min-height: 360px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: #eef2f1;
}

.ifc-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 15;
  border-radius: 8px;
}

.ifc-loading-text {
  font-size: 14px;
  font-weight: 600;
  color: #073b3c;
}

.options-menu {
  margin-top: 10px;
  padding: 10px 14px;
  background: #f8faf9;
  border: 1px solid #dce8e5;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ifc-toolbar-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ifc-file-picker input[type="file"] {
  font-size: 12.5px;
  color: #334155;
  padding: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
}

.btn-primary {
  padding: 7px 14px;
  background-color: #1f7a56;
  color: #ffffff;
  border: 1px solid #1f7a56;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  background-color: #16593e !important;
  border-color: #16593e;
  color: #ffffff;
}

.btn-primary:disabled {
  background-color: #cbd5e1;
  border-color: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}

.btn-danger-outline {
  padding: 7px 12px;
  background-color: #ffffff;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.15s ease;
}

.btn-danger-outline:hover:not(:disabled) {
  background-color: #fef2f2 !important;
  border-color: #f87171;
}

.ifc-hints-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ifc-hint-pill {
  font-size: 11.5px;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 3px 9px;
  border-radius: 999px;
}

/* This is your Sidebar container */
.right-panel {
  flex: 1.15;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  overflow: auto;
  height: 100%;
  background-color: #f8faf9;
}

/* Wrapper inside right-panel for ProUI */
.pro-sidebar-wrapper {
  display: flex;
  flex-direction: row;
  gap: 12px;
  height: 100%;
  min-height: 0;
  width: 100%;
}

.pro-workflow-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  overflow-y: auto;
}

.data-panel {
  width: 340px;
  max-width: 42%;
  flex-shrink: 0;
  padding: 14px;
  overflow-y: auto;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
}

.preview-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.preview-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #1f7a56;
  background-color: #e6f4ef;
  padding: 3px 8px;
  border-radius: 999px;
}

.preview-title {
  margin: 0 0 8px 0;
  font-size: 15px;
  color: #073b3c;
  line-height: 1.35;
}

.preview-unit-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.preview-meta-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-meta-card p {
  margin: 2px 0;
  color: #334155;
}

.epd-source-link {
  color: #1f7a56;
  font-weight: 600;
  text-decoration: none;
}

.epd-source-link:hover {
  text-decoration: underline;
}

.preview-section-heading {
  font-size: 13px;
  font-weight: 700;
  color: #073b3c;
  border-bottom: 1px solid #dce8e5;
  padding-bottom: 5px;
  margin-top: 8px;
  margin-bottom: 6px;
  display: block;
}

/* If you have internal cards, just let them exist naturally */
.lcia-result-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 4px;
  padding-top: 4px;
}

.import-button {
  padding: 9px 20px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  align-self: flex-start;
  font-size: 13px;
  color: #1e293b;
  font-weight: 600;
}

.search-button {
  padding: 8px 16px;
  background-color: #1f7a56;
  border: 1px solid #1f7a56;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 4px;
  transition: all 0.15s ease;
}

.search-button:hover:not(:disabled) {
  background-color: #16593e !important;
  color: #ffffff;
}

.create-custom-btn {
  width: 100%;
  padding: 9px 14px;
  background-color: #f0fdf4;
  border: 1px dashed #1f7a56;
  border-radius: 8px;
  color: #073b3c;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.15s ease;
}

.create-custom-btn:hover {
  background-color: #dcfce7 !important;
}

.collapsible-section-container {
  border-radius: 10px;
  border: 1px solid #dce8e5;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: flex 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(7, 59, 60, 0.04);
}

/* Closed state takes up minimum header height */
.collapsible-section-container:not(.is-open) {
  flex: 0 0 auto;
}

.collapsible-section-container.is-open {
  flex: 1 1 0px;
  min-height: 155px;
  display: flex;
  flex-direction: column;
}

/* Ensure the scrollable container inside flexes properly */
.collapsible-content {
  padding: 10px 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  background-color: #f1f6f4;
  border-bottom: 1px solid #dce8e5;
  color: #073b3c;
  font-size: 14px;
  user-select: none;
  transition: background-color 0.15s ease;
}

.collapsible-header:hover {
  background-color: #e6f0ec;
}

.collapsible-header-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === Changes made by Thomaz: Removed .step-badge rule and added .section-unmapped-badge pill styles === */

.collapsible-header-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-unmapped-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.section-unmapped-badge.has-unmapped {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.section-unmapped-badge.all-mapped {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.section-count-badge {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 2px 8px;
  border-radius: 999px;
}

.material-item-wrapper {
  border-bottom: 1px solid #eef2f6;
  padding: 2px 4px;
}

.material-item-wrapper.is-expanded {
  background-color: #f8faf9;
  border-radius: 8px;
  padding: 4px 8px;
  margin: 4px 0;
  border: 1px solid #dce8e5;
}

.material-item-wrapper.material-item-last {
  border-bottom: none;
}

.material-item-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  color: #1e293b;
  font-size: 13.5px;
  gap: 8px;
}

.material-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.color-swatch {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.select-button {
  padding: 5px 11px;
  font-size: 11.5px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  color: #334155;
  font-weight: 600;
  transition: all 0.15s ease;
}

.select-button.btn-select-primary {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.select-button.btn-active-toggle {
  background-color: #073b3c;
  border-color: #073b3c;
  color: #ffffff;
}

.material-detail-form {
  padding-top: 6px;
  padding-bottom: 12px;
}

.material-detail-form-inner-box {
  background-color: #ffffff;
  border: 1px solid #dce8e5;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(7, 59, 60, 0.04);
}

.form-section-subtitle {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 2px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-label {
  min-width: 95px;
  font-size: 12.5px;
  color: #334155;
  font-weight: 600;
  text-align: left;
}

.form-select {
  flex-grow: 1;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  font-size: 13px;
  color: #1e293b;
}

.form-select:focus {
  outline: none;
  border-color: #1f7a56;
  box-shadow: 0 0 0 2px rgba(31, 122, 86, 0.14);
}

.form-select:disabled {
  background-color: #f1f5f9;
  color: #94a3b8;
}

.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.form-checkbox {
  margin: 0;
  width: 14px;
  height: 14px;
  accent-color: #1f7a56;
}

.form-checkbox-label {
  font-size: 12px;
  color: #475569;
}

.form-actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
}

.form-actions-1 {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.specific-material {
  text-align: left;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.specific-material:hover {
  background-color: #e6f4ef;
}

.specific-material.selected {
  background-color: #dcfce7;
  font-weight: 600;
  color: #166534;
  border-left: 3px solid #1f7a56;
}

.warning-sign {
  font-size: 11px;
  background: #fffbeb;
  color: #b45309;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.search-empty-placeholder {
  font-size: 12px;
  color: #64748b;
  padding: 12px;
  text-align: center;
  font-style: italic;
}

.done-button {
  padding: 6px 14px;
  font-size: 12.5px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  color: #334155;
  font-weight: 600;
  transition: all 0.15s ease;
}

.done-button.btn-done-primary {
  background-color: #073b3c;
  border-color: #073b3c;
  color: #ffffff;
}

.done-button:hover:not(:disabled) {
  background-color: #f1f5f9;
}

.done-button.btn-done-primary:hover:not(:disabled) {
  background-color: #0d5254 !important;
  color: #ffffff;
}

.done-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.add-button-container {
  display: flex;
  justify-content: center;
  padding-top: 10px;
  padding-bottom: 6px;
}

.door-window-curtainwall-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background-color: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.door-window-curtainwall-list.disabled {
  opacity: 0.5;
}

.door-window-curtainwall-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 2px 0;
  font-size: 13.5px;
  text-align: left;
}

.door-controls-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.door-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
}

.metric-number {
  font-weight: 600;
  color: #1e293b;
}

.metric-unit {
  color: #64748b;
  font-size: 11px;
}

.component-groups-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.component-category-heading {
  margin: 0 0 8px 0;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #475569;
}

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

.empty-category-note {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
  font-style: italic;
}

.add-button- {
  padding: 7px 16px;
  height: auto;
  width: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background-color: #f0fdf4;
  border: 1px dashed #1f7a56;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12.5px;
  color: #073b3c;
  font-weight: 600;
  transition: all 0.15s ease;
}

.add-button-:hover {
  background-color: #dcfce7 !important;
}

/* === Changes made by Thomaz: Stacked variation dropdown under IFC name and locked grid column widths so color dots and controls align across all rows === */
.geometry-title-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  width: 145px;
  min-width: 145px;
  max-width: 145px;
  overflow: hidden;
}

.geometry-variation-dropdown {
  border: 1px solid #cbd5e1;
  background-color: #f8fafc;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 12px;
  color: #334155;
  margin-left: 0;
  max-width: 100%;
  width: fit-content;
}

.geometry-item {
  display: grid;
  grid-template-columns: 22px 180px 176px  90px 90px 52px;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid #eef2f6;
  font-size: 13px;
  text-align: left;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.geometry-input-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 78px;
  flex-shrink: 0;
}

.geometry-item-last {
  border-bottom: none;
}

.geometry-item-deactivated {
  opacity: 0.45;
}

.geometry-item-toggle {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #1f7a56;
}

.geometry-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  width: 100%;
  line-height: 1.25;

  
}

.geometry-item-name-small {
  font-size: 10px;
}

.geometry-material-select-group {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.geometry-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}

.material-dropdown {
  min-width: 110px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12.5px;
  box-sizing: border-box;
  background-color: #ffffff;
  color: #1e293b;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.material-dropdown:hover:not(:disabled) {
  border-color: #1f7a56;
  background-color: #f8fafc;
}

.material-dropdown:disabled {
  background-color: #f1f5f9 !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
}

.volume-value {
  text-align: right;
  width: 100%;
}

.geometry-item-deactivated .volume-value {
  text-decoration: line-through;
}

.material-dropdown-content {
  display: flex;
  align-items: center;
  gap: 6px;
}

.material-dropdown-select {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  outline: none;
}

.material-dropdown-select option {
  background-color: #ffffff;
  color: #1e293b;
}

.arrow {
  font-size: 11px;
  color: #64748b;
}

.dropdown-color-swatch {
  width: 12px;
  height: 12px;
  border: 1px solid #888;
  border-radius: 2px;
}

.swatch-container {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.connecting-line {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 10px);
  background-color: #94a3b8;
  z-index: 1;
}

.connecting-line-bottom {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(180%);
  background-color: #94a3b8;
  z-index: 1;
}

.model-window {
  flex-grow: 1;
}

/* Calculate button styling */
.calculate-button-container {
  padding-top: 2px;
}

.result {
  font-size: larger;
}

.calculate-button {
  width: 100%;
  padding: 12px 20px;
  background-color: #1f7a56;
  border: 1px solid #186043;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(31, 122, 86, 0.22);
  transition: all 0.15s ease;
}

.calculate-button:hover:not(:disabled) {
  background-color: #16593e !important;
  transform: translateY(-1px);
}

.calculate-button.btn-disabled,
.calculate-button:disabled {
  background-color: #94a3b8 !important;
  border-color: #94a3b8 !important;
  color: #ffffff !important;
  cursor: wait;
  box-shadow: none;
}

.selected-materials-list-container {
  max-height: 150px;
  overflow-y: auto;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px;
  margin-top: 6px;
  margin-bottom: 6px;
}

/* Style for the floating window (modal) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  padding: 22px 26px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 320px;
  max-width: 80%;
  position: relative;
}

.modal-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
}

/* Results & Total Values Section */
.results-filter-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.results-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.materialResult-dropdown {
  flex: 1;
  padding: 7px 10px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  cursor: pointer;
  min-width: 140px;
  font-size: 13px;
  color: #1e293b;
  box-sizing: border-box;
}

.resultM {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  min-width: 80px;
  text-align: left;
}

.result-dev {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 14px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.result-left-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.result-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #166534;
}

.result-value-unit-wrapper {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 145px;
  font-variant-numeric: tabular-nums;
}

.result-kpi-number {
  font-size: 18px;
  font-weight: 800;
  color: #073b3c;
}

.result-kpi-placeholder {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 600;
}

.result-with-unit {
  font-size: 12.5px;
  font-weight: 600;
  color: #166534;
}

.final-result-Check {
  padding: 8px 14px;
  font-size: 12.5px;
  background-color: #073b3c;
  border: 1px solid #073b3c;
  border-radius: 7px;
  cursor: pointer;
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.final-result-Check:hover {
  background-color: #0d5254 !important;
  color: #ffffff;
}

.results-actions-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.final-result-chart {
  flex: 1;
  padding: 9px 12px;
  font-size: 12.5px;
  background-color: #1f7a56;
  border: 1px solid #1f7a56;
  border-radius: 7px;
  cursor: pointer;
  color: #ffffff;
  font-weight: 600;
  transition: all 0.15s ease;
}

.final-result-chart:hover:not(:disabled) {
  background-color: #16593e !important;
  color: #ffffff;
}

.final-result-chart.btn-secondary-action {
  background-color: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

.final-result-chart.btn-secondary-action:hover:not(:disabled) {
  background-color: #f1f5f9 !important;
  color: #0f172a;
}

.final-result-chart:disabled {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}

.chart-hint-note {
  margin: 8px 0 0 0;
  font-size: 11.5px;
  color: #64748b;
}

.final-result-chartSelf {
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 11px;
  background-color: #f5f5f5;
  border: 1px solid #b8b8b8;
  border-radius: 5px;
  cursor: pointer;
  color: #444;
  font-weight: 500;
}

.load-model-button {
  margin-right: 4px;
}

.load-model-button:disabled {
  margin-right: 4px;
}


/* Container to center the main content on the page */
.bc-container {

  /* This is the key to centering a block with a set width */
  margin-left: 0;
  margin-right: 20px;
  margin-bottom: 20px;
  margin-top: 20px;
  padding-right: 0rem;
  padding-left: 1rem;
  /* Keep your vertical padding */
  padding-top: 0rem;
  padding-bottom: 0rem;

  font-family: inherit;


}

/* 1. The Container */
.bc-content-wrapper {
  background-color: #ebebeb;
  border-radius: 8px;
  border: 2px solid #ffffff;

  /* Top, Left, Right padding only */
  padding-top: 1.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
  /* Important: Set this to 0 */

  margin-bottom: 20px;

  /* Flex settings */
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  /* Scroll settings - FIXED THE TYPO HERE */


  max-height: 825px;

}


/* Header section with dropdown controls */
.bc-header {
  display: flex;
  flex-wrap: wrap;
  /* Allows controls to wrap on smaller screens */
  gap: 1rem;
  align-items: center;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;


}


.bc-control-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bc-control-group label {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: capitalize;
}

.bc-control-group select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #757575;
  border-radius: 6px;
  background-color: #e1e1e1;
  font-size: 0.9rem;
  min-width: 280px;
  /* Give dropdowns a consistent width */
  cursor: pointer;
}

/* Main grid layout for the content panels */
.bc-panels-layout {
  display: grid;
  /* Creates two columns, the left being 1.5 times the size of the right */
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem;
  flex-grow: 1;
  /* Allows the layout to fill available vertical space */
  min-height: 80vh;
  /* Ensures layout has a visible height */

}

/* Container for the right-side panels */
.bc-right-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;


}

/* Common styling for all panels */
.bc-panel {
  border: 1px solid #2d2d2d;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.bc-panel-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: normal;
  color: #2d2d2d;
}

.bc-material-manager-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* 12px gap between rows */
  overflow-y: auto;
  max-height: 400px;
}

.bc-material-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  /* Gap between label and select */
}

.bc-material-label {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  /* 14px */
  color: #333;
  min-width: 220px;
  /* Aligns the dropdowns vertically */
  flex-shrink: 0;
  /* Prevents the label from shrinking */
}

.bc-material-select {
  /* Inherits most styles from .bc-control-group select, but we can override if needed */
  padding: 0.5rem 0.75rem;
  border: 1px solid #757575;
  border-radius: 6px;
  background-color: #e1e1e1;
  font-size: 0.9rem;
  width: 100%;
  /* Makes the select box fill the remaining space */
  cursor: pointer;
  box-sizing: border-box;
}

.bc-material-no-data {
  color: #666;
  text-align: center;
  padding: 1rem 0;
}

/* === Changes made by Thomaz: Updated component titles, preview module list rows, scrollbars, EPD modal, and Charts view styles === */
.door-title-container {
  display: flex;
  align-items: center;
  min-width: 140px;
  flex: 1;
}

.door-checkbox {
  margin-right: 10px;
  flex-shrink: 0;
}

.door-title-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  text-align: left;
  white-space: pre-line;
}

.door-title-text.disabled {
  text-decoration: line-through;
  color: #94a3b8;
}

.module-Value-details {
  font-weight: 600;
  color: #073b3c;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.module-Name-details {
  text-align: left;
  padding-left: 6px;
  color: #475569;
  font-weight: 500;
}

.module-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 5px 8px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12.5px;
}

.advice-preview {
  text-align: left;
  font-size: 12.5px;
  line-height: 1.5;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 12px;
}

.advice-preview h3 {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #073b3c;
}

.close-preview-button {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  color: #475569;
  cursor: pointer;
}

.close-preview-button:hover {
  background: #fee2e2 !important;
  color: #b91c1c;
  border-color: #fca5a5;
}

.module-container-created {
  padding-left: 8px;
  padding-right: 8px;
}

.link-input {
  max-width: 100%;
  width: 100%;
}

/* Standard CSS syntax (Firefox and modern browsers) */
* {
  scrollbar-width: thin;
  scrollbar-color: #94b8a8 #f1f5f4;
}

/* WebKit syntax (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #f1f5f4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #94b8a8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1f7a56;
}

@media (max-width: 1000px) {
  body { overflow: auto; }
  .pro-app-shell { height: auto; overflow: visible; }
  .app-container { flex-direction: column; height: auto; padding: 12px; }
  .left-panel { min-height: 55vh; }
  .right-panel { min-width: 0; height: auto; }
  .pro-sidebar-wrapper { flex-direction: column; }
  .data-panel { width: 100%; max-width: 100%; }
  .bc-panels-layout { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/*for pdf reader*/
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #dce8e5;
  background-color: #f1f6f4;
}
.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #073b3c;
}
.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #475569;
}
.modal-body {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(90vh - 70px);
}

/* Form layout styles */
.epd-form { display: grid; gap: 1rem; }
.epd-field { display: grid; gap: .3rem; font-size: .88rem; color: #334155; font-weight: 500; }
.epd-field input { padding: .45rem .6rem; font: inherit; max-width: 90px; border: 1px solid #cbd5e1; border-radius: 6px; font-variant-numeric: tabular-nums; }
.epd-group { border: 1px solid #dce8e5; border-radius: 8px; padding: .85rem; background: #f8faf9; }
.epd-group legend small { margin-left: .5rem; opacity: .7; }
.epd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .5rem; }
.epd-error { color: #b91c1c; background: #fef2f2; padding: 8px 12px; border-radius: 6px; }
.epd-warn { color: #b45309; background: #fffbeb; padding: 8px 12px; border-radius: 6px; }
.epd-save-btn { padding: 0.65rem 1.4rem; background: #1f7a56; color: #ffffff; border: none; border-radius: 8px; cursor: pointer; font-weight: 700; margin-top: 0.5rem; }
.epd-save-btn:hover { background: #16593e !important; }
.epd-modal-note {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
}

/* Charts Page Styling */
.chart-container {
  background: #ffffff;
  border: 1px solid #dce8e5;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
}

.charts-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.charts-title {
  margin: 0 0 4px 0;
  font-size: 1.4rem;
  color: #073b3c;
}

.charts-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.charts-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.charts-filter-toolbar {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 14px;
  background: #f8faf9;
  border: 1px solid #dce8e5;
  border-radius: 10px;
  padding: 12px 16px;
}

.charts-filter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 170px;
  flex: 1;
}

.charts-filter-item label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #475569;
}

.charts-kpi-badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 8px 16px;
  min-width: 200px;
}

.charts-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #166534;
}

.charts-kpi-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #073b3c;
  font-variant-numeric: tabular-nums;
}

.charts-kpi-value small {
  font-size: 0.8rem;
  font-weight: 600;
  color: #166534;
}

.charts-canvas-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  padding: 16px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-wrapper-pie {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.charts-footnote {
  margin-top: 0;
}
/* src/NewPage.css */

/* === Changes made by Thomaz: Redesigned NewPage form container, header bar, segmented radio toggle, input fields, EPD callout banner, and footer action buttons === */

/* General page layout to center the form */
.page-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100%;
  padding: 8px;
  background-color: transparent;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1e293b;
  box-sizing: border-box;
}

/* The main form container */
.form-container {
  background-color: #ffffff;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid #dce8e5;
  box-shadow: 0 4px 16px rgba(7, 59, 60, 0.05);
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  box-sizing: border-box;
}

.newpage-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.newpage-title {
  margin: 0 0 4px 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #073b3c;
}

.newpage-subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.newpage-back-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background-color: #f8fafc;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.newpage-back-btn:hover {
  background-color: #e6f4ef;
  border-color: #1f7a56;
  color: #073b3c;
}

/* Spacing and lines for sections */
.form-section {
  margin-bottom: 4px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #f8faf9;
  border-radius: 10px;
  border: 1px solid #dce8e5;
}

.form-section.type-section {
  padding: 10px;
  background-color: #f1f5f4;
}

.form-section:last-of-type {
  border-bottom: 1px solid #dce8e5;
}

h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: #073b3c;
}

/* Styles for input groups (label + input) */
.input-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 4px;
  margin-top: 4px;
  flex-direction: column;
  gap: 6px;
}

.input-group-name,
.input-group-link {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  margin-top: 4px;
  gap: 12px;
  flex-wrap: wrap;
}

.input-group-name label,
.input-group-link label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
  min-width: 130px;
}

.input-group-name input,
.input-group-link input {
  flex: 1;
  min-width: 220px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.92rem;
  background-color: #ffffff;
  color: #1e293b;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-group-name input:focus,
.input-group-link input:focus,
textarea:focus {
  outline: none;
  border-color: #1f7a56;
  box-shadow: 0 0 0 3px rgba(31, 122, 86, 0.12);
}

.input-group label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #334155;
  min-width: 70px;
}

textarea {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  background-color: #ffffff;
  color: #1e293b;
  width: 100%;
  box-sizing: border-box;
}

#special-textarea {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #ffffff;
  max-width: 120px;
  font-variant-numeric: tabular-nums;
}

/* Styles for the reference unit section */
.reference-unit-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
}

.reference-unit-section > label {
  font-weight: 600;
  font-size: 0.92rem;
  color: #073b3c;
}

.radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.radio-group label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
}

.note {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  color: #166534;
  margin-top: 6px;
}

/* Styles for the Global Warming Potential section */
.gwp-container {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-direction: column;
}

.module-inputs {
  border: 1px solid #dce8e5;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

/* Make each input/select element expand to fill the space */
.module-inputs input,
.module-inputs select {
  flex: 1;
  width: 100%;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Keep the plus button from stretching */
.module-inputs .done-button,
.module-inputs button {
  flex: 0 0 auto;
}

.module-type-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
}

.add-button {
  background-color: #1f7a56;
  color: white;
  border: none;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.15s ease;
}

.add-button:hover {
  background-color: #16593e !important;
}

.component-dropdown {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background-color: #f8faf9;
  border-radius: 10px;
  border: 1px solid #dce8e5;
}

.component-div {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
}

.component-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  text-transform: capitalize;
}

.dropDown-component {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.92rem;
  background-color: #ffffff;
  color: #1e293b;
}

.module-list {
  flex-grow: 1;
  margin-top: 4px;
  background-color: #ffffff;
  border: 1px solid #dce8e5;
  border-radius: 10px;
  padding: 14px 18px;
  overflow-y: auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-list h4 {
  margin-top: 0;
  margin-bottom: 6px;
  color: #073b3c;
  font-size: 0.95rem;
}

.module-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.module-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.module-list li:last-child {
  border-bottom: none;
}

/* EPD Upload Callout Banner */
.epd-upload-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px dashed #1f7a56;
}

.epd-upload-info h4 {
  margin: 0 0 4px 0;
  color: #073b3c;
  font-size: 1rem;
}

.epd-upload-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
}

.epd-upload-trigger-btn {
  padding: 10px 18px;
  background-color: #ffffff;
  color: #073b3c;
  border: 1px solid #1f7a56;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.epd-upload-trigger-btn:hover {
  background-color: #1f7a56 !important;
  color: #ffffff;
}

/* Footer actions */
.newpage-footer-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  margin-top: 8px;
}

.newpage-cancel-btn {
  padding: 10px 20px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #ffffff;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.newpage-cancel-btn:hover {
  background-color: #f1f5f9 !important;
}

.newpage-footer-actions .done-button {
  margin: 0;
  padding: 10px 26px;
  border: 1px solid #1f7a56;
  border-radius: 8px;
  background-color: #1f7a56;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.newpage-footer-actions .done-button:hover {
  background-color: #16593e !important;
}

.toggel-comp,
.toggel-mat {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  background-color: transparent;
  font-weight: 500;
  color: #475569;
  transition: all 0.2s ease;
}

.toggel-mat.active,
.toggel-comp.active {
  background-color: #ffffff;
  font-weight: 700;
  color: #073b3c;
  box-shadow: 0 2px 6px rgba(7, 59, 60, 0.08);
}

.radio-type {
  display: flex;
  gap: 10px;
  background-color: #e2ece9;
  padding: 5px;
  border-radius: 10px;
}

.selection-components {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.92rem;
  background-color: #ffffff;
  color: #1e293b;
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
}

.remove-button {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 4px;
}

.remove-button:hover {
  background-color: #fef2f2 !important;
}

.list-module-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.infill-frame-div {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background-color: #f8faf9;
  border-radius: 10px;
  border: 1px solid #dce8e5;
}
html,
body,
#root {
  min-height: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

body {
  overflow-y: auto;
  overflow-x: hidden;
}


 .homepage {
  min-height: 100vh;
  background: #f1f6f4;
  color: #1e2928;
  font-family: Arial, Helvetica, sans-serif;
    height: auto;
  overflow: visible;
}

/* ========================= HEADER ========================= */
.homepage-header {
  height: 70px;
  background:#1e2928;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  border-bottom: 1px solid #e3ebe8;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: bold;
  color:#ffffff;
}

.logo-icon {
  font-size: 32px;
  color: #ffffff;
}

.homepage-header nav {
  display: flex;
  gap: 30px;
}

.homepage-header nav a {
  text-decoration: none;
  color:#ffffff;
}

.homepage-header nav a:hover {
  color: #238b63;
}

/* ========================= HERO ========================= */
.hero {
  min-height: 450px;
  padding: 60px 6%;
  display: flex;
  align-items: center;
  gap: 50px;
  background: linear-gradient(100deg, #ffffff 0%, #f1f6f4 100%);
}

.hero-text {
  flex: 1;
}

.eyebrow {
  color: #9ea19e;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 65px);
  line-height: 1.05;
  color: #1e2928;
  margin: 0 0 25px;
}

.hero-description {
  max-width: 600px;
  font-size: 18px;
  color: #607782;
  margin-bottom: 25px;
}

.hero-features {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  color: #315761;
  font-size: 14px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.homepage-image {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 20px;
}

/* ========================= VERSIONS ========================= */
.versions {
  background: white;
  padding: 75px 5%;
  text-align: center;
}

.versions h2,
.funding h2,
.manuals h2 {
  font-size: 40px;
  color: #073b3c;
  margin: 5px 0 10px;
}

.section-description {
  color: #607782;
  margin-bottom: 40px;
}

/* Version cards */
.version-wrapper {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.version-card {
  padding: 35px 25px;
  border-radius: 12px;
  border: 1px solid #dce8e5;
  transition: 0.25s;
}

.version-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.version-card.pro {
  background: #f1f6f4;
  border-color: #2c2c2c;
}

.version-card.self {
  background: #f1f6f4;
  border-color: #2c2c2c;
}



.version-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
border: 1px solid #2c2c2c; 
  font-size: 28px;
}
.self-icon{  
  height: 30px;
  width: 30px;
opacity: 50%;}

.self .version-icon {
  background: #ffffff;


}



.version-card h3 {
  font-size: 23px;
  margin-bottom: 10px;
}

.version-card p {
  min-height: 75px;
  color: #608264;
}

/* Buttons */
.button {
  width: 100%;
  border: none;
  border-radius: 15px;
  padding: 15px 20px;
  background: #ffffff;
  color:#2c2c2c;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.button:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.self .button {
  background: #ffffff;
}


/* ========================= FUNDING ========================= */
.funding {
  padding: 70px 5%;
  background: #f1f6f4;
  text-align: center;
}

.section-heading {
  max-width: 650px;
  margin: auto;
}

.section-heading p:last-child {
  color: #607782;
}

/* Logos */
.funding-logos {
  max-width: 1000px;
  margin: 35px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.funding-logo {
  height: 150px;
  background: white;
  border: 1px solid #dce8e5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.funding-logo img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

/* ========================= MANUALS ========================= */
.manuals {
  padding: 70px 5%;
  background: white;
  display: flex;
  gap: 70px;
  align-items: center;
}

.manual-heading {
  flex: 1;
}

.manual-heading p:not(.eyebrow) {
  color: #607782;
}

.manual-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.manual {
  padding: 18px 20px;
  background: #f1f6f4;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #153f47;
  transition: 0.2s;
}

.manual:hover {
  background: #e6f1ee;
  transform: translateX(4px);
}

.manual span:last-child {
  font-size: 22px;
}

/* ========================= FOOTER ========================= */
footer {
  background: #1e2928;
  color: white;
  padding: 30px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer strong {
  font-size: 20px;
}

footer p {
  margin: 3px 0 0;
  font-size: 12px;
  opacity: 0.7;
}

footer a {
  color: white;
  text-decoration: none;
  margin-left: 25px;
  font-size: 13px;
}

/* ========================= RESPONSIVE ========================= */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-features {
    justify-content: center;
  }

  .version-wrapper {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .funding-logos {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .manuals {
    flex-direction: column;
  }

  .manual-heading,
  .manual-list {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .homepage-header {
    height: auto;
    padding: 15px 5%;
    flex-direction: column;
    gap: 15px;
  }

  .homepage-header nav {
    gap: 15px;
  }

  .hero {
    padding: 45px 5%;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-description {
    font-size: 16px;
  }

  .versions h2,
  .funding h2,
  .manuals h2 {
    font-size: 32px;
  }

  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  footer a {
    margin: 0 8px;
  }
}





.chart-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.chart-modal-content {
  background-color: white;
  padding: 20px 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 900px;
  max-height: 300vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.chart-modal-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #888;
}

.chart-modal-content h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
}

.chart-modal-content .filter-controls {
  text-align: center;
  margin-bottom: 20px;
}

.chart-modal-content .filter-controls label {
  margin-right: 10px;
}

.chart-modal-content .chart-wrapper {

  max-width: 100%;
  margin: 0 auto;
}





.b-wrapp {
  background-color: #b8b8b8;
  padding-top: 50px;
  padding-bottom: 50px;
  border-radius: 20px;
}

.title {
  font-size: 2cm;
  color: #b8b8b8;
}
.smaller{
  font-size: 8px;
}