body,
* {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  font-family: "Inter", sans-serif;
}

h4 {
  line-height: 2em;
}

.header {
  width: 100% auto;
  background-color: rgb(255, 223, 127);
  padding: 18px;
  text-align: center;
}

.header h1 {
  font-size: 20px;
  font-weight: 900;
}

.container {
  margin: 0 0 0 0;
}
.main {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: center;
}
.column {
  background-color: white;
  margin: 10px;
  flex-grow: 4;
}

.left-column {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.right-column {
  flex: 2;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.table {
  border-collapse: collapse;
}
.table th,
.table tr,
.table td {
  border: 1px solid #222;
  padding: 4px;
}

th {
  font-weight: 600;
}

.file-upload-wrapper {
  display: inline-block;
  position: relative;
  margin: 10px 0;
}

.file-upload-input {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.file-upload-label:hover {
  background-color: #e9e9e9;
}

.file-upload-button {
  background-color: #007bff;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.file-upload-text {
  font-size: 14px;
  color: #333;
}

.box {
  padding: 10px 15px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
}

.menutable-wrapper {
  margin-top: 10px;
}

.menutable {
  background-color: #fff;
  border: 1px solid #f5f5f5;
  border-collapse: collapse;
}

.menutable th,
.menutable td {
  padding: 10px;
  border: 2px solid #f5f5f5;
}

.box-row {
  display: flex;
  align-items: baseline; /* Align items to the bottom */
  gap: 12px; /* Space between fields */
}

/* Bruk Inter-skrifttype (som tidligere nevnt) */
button {
  font-family: "Inter", sans-serif;
}

/* Button styling */
.btn {
  padding: 10px 20px;
  height: 40px; /* Match select height */
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: #2563eb;
}

/* Optional: Disabled state */
.form-select:disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Container for the entire row */
.form-row {
  display: flex;
  align-items: flex-end; /* Align items to the bottom */
  gap: 12px; /* Space between fields */
  width: 100%;
}

/* Container for each form field (label + select) */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px; /* Space between label and select */
  flex: 1; /* Allow fields to grow and fill space */
  min-width: 120px; /* Minimum width for usability */
}

/* Label styling */
.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin: 0;
}

/* Select styling */
.form-select {
  padding: 10px 14px;
  height: 40px; /* Fixed height for alignment */
  font-size: 14px;
  font-weight: 400;
  color: #374151;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  appearance: none;
  margin-bottom: 4px; /* Align with selects */
}

.selected-wrapper {
  border: 1px dashed #b0b0b0;
  height: 40px; /* Match select height */
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  background-color: #fff;
  flex: 0.75;
  margin-bottom: 2px; /* Align with selects */
  justify-content: center;
  display: flex;
  align-items: center; /* Align items to the bottom */
  gap: 12px; /* Space between fields */
}

/* Button styling */
.btn {
  height: 40px; /* Match select height */
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.formbtn {
  margin-bottom: 4px; /* Align with selects */
}

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

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-secondary {
  background-color: #f63b3b;
  color: white;
}

.btn-secondary:hover {
  background-color: #eb2525;
}

.preview {
  border: 2px dashed #b0b0b0;
  padding: 10px;
  border-radius: 4px;
}

.preview {
  border: 2px dashed #b0b0b0;
  padding: 10px;
  border-radius: 4px;
}

.html {
  font-family: monospace;
  background-color: #222;
  padding: 20px;
  color: white;
}
