body, html {
	margin: 0;
	height: 100%;
}
[data-role="page"] {
    background-image: linear-gradient(to bottom right, green, blue);
	background-repeat: no-repeat;
	background-size: 3000px 3000px;
}

.logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 6px;
  margin-bottom: 6px;
  width: 30%;
  height: 30px;
  object-fit: contain;
}

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

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    left: 25%;
    width: 50%;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.footer {
	width: 100%;
	background-color: white;
	font-family: 'Lexend', sans-serif;
	font-size: 11pt;
	text-align: center;
	position: fixed;
	bottom: 0;
	left: 0;
}

.tooltip-item {
  position: relative;
  cursor: help;
  text-decoration: underline dotted;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;

  position: absolute;
  left: 0;
  bottom: 125%;

  width: 500px;
  padding: 10px;

  background: #333;
  color: #fff;
  border-radius: 6px;

  font-size: 12px;
  line-height: 1.4;

  transition: opacity 0.2s;
  z-index: 1000;
}

.tooltip-item:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

#subsystemList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start; 
}

@media (min-width: 1200px) {
  #subsystemList {
    grid-template-columns: repeat(4, 1fr);
  }
}

.subsystem {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border-radius: 6px;
}

@media (min-width: 1200px) {
  .subsystem {
    min-width: 500px;
    max-width: calc(33% - 10px);
  }
}

#addSubsystemBtn {
  flex: 0 0 auto;         
  display: flex;
  align-items: center;
  height: 40px;           
}

.subsystem-info {
    display: flex;
    align-items: center;
    gap: 10px;          
    margin: 5px 0;
}

.subsystem-info input {
    flex: 1;            
    box-sizing: border-box;
}

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

.field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-bottom: 1px solid #ddd;
}

/* Inputs netjes verdelen */
.field-row input {
  flex: 1;
  min-width: 0;
}

/* Sleep icoon links */
.drag-handle {
  cursor: grab;
  font-size: 18px;
  padding: 0 5px;
}

/* Delete knop rechts */
.deleteField {
  text-decoration: none;
  font-weight: bold;
  padding: 0 5px;
}

