body,
html {
  display: flex;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  flex-direction: column;
}

body {
  overflow-x: hidden;
}

input,
select {
  border: 1px solid #ccc;
  outline: none;
  box-shadow: none;
  padding: 10px;
  font-size: 1rem;
  background-color: #f6f8f9;
  border-radius: 5px;
}

.simulation-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 0 100px;
  margin-top: 20px;
}

.breadcrumb {
  font-size: 0.9rem;
  color: #555;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 100px;
  padding: 0 100px;
}

.breadcrumb a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar ul li a {
  color: #000;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  transition: color 0.2s;
  font-weight: normal;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #379a8d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 50%;
}

.sidebar {
  position: sticky;
  top: 70px;
  color: #000;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex-shrink: 0;
  background: #fff;
  padding-top: 20px;
  z-index: 10;
}

.sidebar-line {
  height: 1px;
  background: #ccc;
  width: 100%;
  margin-top: 20px;
}

.sidebar ul {
  display: flex;
  list-style: none;
  padding: 0 100px;
  margin: 0;
  gap: 30px;
  align-items: center;
}

.sidebar ul li.save-draft-li {
  margin-left: auto;
}

.sidebar ul li a:hover {
  color: #379a8d;
}

.section-title {
  margin-bottom: 20px;
}

.section-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.section-row legend {
  font-weight: bold;
  color: #000;
  margin-bottom: 20px;
}

.field-group {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-width: 300px;
  margin-bottom: 20px;
}

.subsection-title {
  display: block;
  width: 100%;
  margin: 0.5em 0;
  color: #555;
}

.field-group table {
  width: auto;
  max-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.field-group th,
.field-group td {
  border: 1px solid #ccc;
  padding: 4px;
  text-align: center;
}

.field-group th {
  background-color: #f0f0f0;
  font-weight: bold;
  font-size: 0.9rem;
}

fieldset {
  border: none;
  margin: 0 0 15px;
  padding: 0;
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider::before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #379a8d;
}

input:checked + .slider::before {
  transform: translateX(26px);
}

.switch-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.operating-days-table caption {
  font-weight: bold;
  margin-bottom: 8px;
  color: #555;
}

.operating-days-table td {
  padding: 4px 8px;
  vertical-align: middle;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  border-left: none;
  border-right: none;
}

.public-holidays {
  margin-left: 60px;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.field-group table input,
.field-group table select {
  width: 100%;
  max-width: 150px;
  box-sizing: border-box;
}

#prev-btn {
  background-color: #86898d;
  border: none;
}

#prev-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  color: #666;
}

.simulation-name-title {
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 0 100px;
  width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-status-message {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5em;
  color: inherit;
}

.task-status-message i {
  font-size: 1em;
  color: #379a8d;
  line-height: 1;
}

.task-status-container {
  display: block;
  padding: 0 100px;
  margin-bottom: 50px;
  width: 40%;
}

.task-submessage {
  color: #555;
  margin-top: 10px;
  font-size: 1em;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 5px solid #ccc;
  border-top: 5px solid #379a8d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.new-simulation-title {
  margin-top: 100px;
  margin-bottom: 30px;
  padding: 0 100px;
  color: #363635;
}

.meteo-container {
  padding: 0 100px;
  margin-top: 100px;
}

.calculate-btn {
  background-color: #379a8d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.dual-tables {
  display: flex;
  gap: 50px;
}

.table-block {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.button-group {
  float: right;
  display: flex;
  gap: 0.5em;
}

#save-draft-btn,
.button-group button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #379a8d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.button-group button i,
#save-draft-btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.error-message {
  color: red;
  font-size: 0.9em;
  margin-top: 2px;
  display: block;
  max-width: 300px;
}

input.error,
select.error,
textarea.error {
  border: 2px solid red !important;
  border-radius: 4px;
}

.sidebar a.error-section {
  color: red !important;
  font-weight: bold;
}

.sidebar ul li a.active {
  color: #379a8d;
  font-weight: bold;
  border-bottom: 4px solid #379a8d;
  padding-bottom: 5px;
}

.section.results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  text-align: center;
}

.calculation-message {
  color: #379a8d;
  margin-top: 50px;
  margin-left: 50px;
  font-weight: bold;
}

.field-group label {
  margin-bottom: 5px;
}

.main-content {
  flex: 1;
}

fieldset.section-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.operating-days-wrapper {
  display: flex;
  margin-right: 30px;
}

.operating-days-table {
  border-collapse: collapse;
  width: max-content;
  border: 2px solid #ccc;
  border-radius: 5px;
}

.yes-no-toggle {
  display: flex;
}

.toggle-btn {
  padding: 10px 30px;
  border: 1px solid #ccc;
  border-radius: 2px;
  background-color: #f0f0f0;
  cursor: pointer;
  transition: 0.3s;
}

.toggle-btn.active {
  background-color: #379a8d;
  color: white;
  border-color: #379a8d;
}

.form-note {
  font-size: 0.9rem;
  color: #555;
  margin-top: 30px;
  padding: 0 100px;
  width: 50%;
}

.basic-info {
  display: flex;
  flex-wrap: wrap;
  padding: 0 100px;
  margin-bottom: 20px;
  gap: 30px;
  width: 100%;
}

.form-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 10px;
  background-color: #f6f8f9;
  border-radius: 8px;
  width: max-content;
  margin: 20px auto;
  border: 1px solid #ccc;
  margin-bottom: 80px;
}

.form-navigation button {
  padding: 15px 20px;
  font-size: 1rem;
  border: 1px solid #379a8d;
  background-color: #379a8d;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
}

.form-navigation button:disabled {
  background-color: #fff;
  border-color: #e2e2e2;
  cursor: not-allowed;
  color: #bebebe;
}

.form-navigation span {
  font-size: 1rem;
}

.separator {
  flex-basis: 100%;
}
