html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
body {
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f9;
  color: #333;
  margin: 20px; /* or use padding instead */
  padding: 0 80px;
  display: flex;
  flex-direction: column; /* ensures content flows top to bottom */
  justify-content: center; /* for header/content/footer spacing */
}

.container_mat {
  width: 100% !important;
  background: #e6daff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding-right: 20px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  min-height: 95vh;
}

header {
  text-align: center;
  flex-shrink: 0;
}

header h1 {
  font-size: 4rem;
  margin-bottom: 10px;
  color: #907ff3;
}

header p {
  font-size: 2rem;
  color: #666;
}

.description {
  display: flex;
  justify-content: space-between;
  gap:5px;
  width: 100%;
  flex-shrink: 0;
  padding-bottom: 10px;
}

footer {
  background-color: transparent;
  color: rgb(121, 115, 121);
  font-style: italic;
  height: 25px;
}

.footer-container{
  display: flex;
  justify-content: space-around;
  width: 100%;
}
.footer-text{
  justify-content: space-around;
  font-size: small;
  margin: 0px
}

.box_text {
  width: 40%;
  background: #f9f9f9 !important;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex: 1;
  height: 690px;
  /* Control how tall each box is */
  overflow-y: auto;
  /* Makes the content scroll independently */
}

.box_params {
  width: 60%;
  background: #f9f9f9 !important;
  flex-direction: row;

  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 690px;
  /* Control how tall each box is */
  overflow-y: auto;
  /* Makes the content scroll independently */
}

.box-application-group {
  display: flex !important;
  justify-content: space-around !important;
}

.box_application {
  display: flex;
  border-radius: 10%;
  border-color: #ac7ff3;
  flex-direction: column;
}

.box_text h2 {
  font-size: 1.5rem !important;
  color: #907ff3 !important;
  margin-bottom: 10px;
}

.box_params h2 {
  font-size: 1.5rem !important;
  color: #907ff3 !important;
  margin-bottom: 10px;
}

.box p {
  font-size: 1.1rem;
  color: #333;
}

.actions {
  text-align: center;
}

.actions h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

.parameters-box {
  margin-top: 20px;
}

.parameters-box h2 {
  font-size: 1.7rem;
  margin-bottom: 20px;
  color: #333;
}

.form-group label {
  display: flex;
  justify-content: start;
  gap:15px;
  margin-top: 5px;
  margin-bottom: 5px;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  resize: vertical;
  /* Allows vertical resizing */
  min-height: 40px;
  /* Default height */
  max-height: 300px;
  /* Optional: Limits max expansion */
}

.button {
  background: #ac7ff3;
  color: #fff1ff;
  border: none;
  padding: 10px 20px;
  font-size: 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  margin: 10px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* Adds space between text and spinner */
}
.button-small {
  padding: 4px 10px;
  font-size: 0.75rem;
  margin: 0;
  border-radius: 4px;
  gap: 4px;
}

.button:hover {
  background: #886ef0;
}

.button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.group-button {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.file-input {
  display: block;
  font-size: 1rem;
}

.download-button {
  margin-right: 20px;
  transition: background 0.3s ease;
}

.download-button {
  display: flex;
  margin-right: 6px;
}

.help-button {
  display: inline-block;
  margin-right: 6px;
  /* Optional spacing */
}

.nav-tabs {
  margin-bottom: 20px;
  flex-shrink: 0;
}

.disabled-fields input,
.disabled-fields select,
.disabled-fields textarea {
  background-color: #e9ecef;
  cursor: not-allowed;
}

.howToModal {
  display: flex;
  position: fixed;
  justify-content: center;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Modal background */
.matmodal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1000;
  /* Sit on top of other elements */
  left: 0;
  top: 0;
  width: 100vw;
  /* Full width */
  height: 100vh;
  /* Full height */
  overflow: auto;
  /* Enable scroll if content overflows */
  background-color: rgba(0, 0, 0, 0.7);
  /* Black with opacity for a dimmed background */
  display: flex;
  /* Center modal content */
  align-items: center;
}

/* Modal content box */
.matmodal-content {
  background-color: #efefef;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
  margin-top: 5%;
  margin-bottom: 5%;
  /* Max width for large screens */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  /* Adds a subtle shadow */
  overflow: auto;
}

/* Close button (top-right corner) */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

.my-list {
  list-style-type: decimal;
  line-height: 1.6;
  padding-left: 2.5;
}
.popup-content {
  display: flex;
  align-items: center;
  gap: 8px;
}