body {
  font-family: "Segoe UI", sans-serif;
  margin: 0 auto;
  background-color: #f4f6f8;
  color: #333;
  max-width: 880px;
  min-width: 350px;
}

h1,
h2,
h3 {
  color: #2c3e50;
}

.input-section,
.output-section {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 30px;
}

label {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  margin-right: 10px;
}


button {
  padding: 12px 12px;
  background-color: #007bff;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 3px;
}

button:hover {
  background-color: #0056b3;
}

.error {
  color: #dc3545;
  font-weight: bold;
  margin-top: 10px;
}

.warning {
  color: #fd7e14;
  font-weight: bold;
  margin-top: 10px;
}

table {
  border-collapse: collapse;
  width: 100%;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-top: 15px;
}

th,
td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: middle;
}

th {
  background-color: #f1f3f5;
  font-weight: 600;
  color: #495057;
}

td:last-child button {
  background-color: #dc3545;
  padding: 3px 6px;
  font-size: 13px;
}

td:last-child button:hover {
  background-color: #c82333;
}

.class-item {
  display: inline-block;
  padding: 6px 10px;
  margin: 3px;
  background-color: #dee2e6;
  border-radius: 5px;
  cursor: move;
  user-select: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.class-item:hover {
  background-color: #ced4da;
}

.class-item.dragging {
  opacity: 0.7;
  background-color: #007bff;
  color: white;
}

h3 {
  margin-top: 2px;
}

.inputdata {
  padding: 15px;
  border: #ccc solid 1px;
  background-color: #f1f3f5;
}

.drop-zone {
  min-height: 40px;
  background-color: #f8f9fa;
  transition: background-color 0.3s, border 0.3s;
}

.drop-zone.drag-over {
  background-color: #e9f5ff;
  border: 2px dashed #007bff;
}

.debug-info {
  font-size: 13px;
  color: #6c757d;
  margin-top: 10px;
  background-color: #e9ecef;
  padding: 12px;
  border-radius: 6px;
}

.edit-yearGroup,
.edit-className,
.edit-female,
.edit-male {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fcfcfc;
  font-size: 14px;
}

.edit-yearGroup:focus,
.edit-className:focus,
.edit-female:focus,
.edit-male:focus {
  border-color: #007bff;
  outline: none;
  background-color: #fff;
}

.class-row.dragging {
  opacity: 0.5;
  background-color: #007bff;
  color: white;
}

.class-row.drag-over {
  background-color: #d0e8ff;
  border: 2px dashed #007bff;
}

.drag-handle {
  cursor: move;
  font-size: 18px;
  color: #868e96;
  padding: 2px 6px;
}

.drag-handle:hover {
  color: #007bff;
}

.class-row.dragging .drag-handle {
  color: white;
}

/* Tabs oben */
.tabs {
  display: flex;
  border-bottom: 0px solid #ccc;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Tab-Buttons */
.tab-btn {
  background-color: #eee;
  color: #333;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background-color 0.3s ease;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  margin-right: 4px;
  font-size: 16px;
  width: 210px;
}

@media (width <= 740px) {
  .tab-btn {
  width: 180%;
  }
}


/* Hover-Effekt */
.tab-btn:hover {
  background-color: #ddd;
}

/* Aktiver Tab */
.tab-btn.active {
  background-color: #fff;
  color: #000;
  border-bottom: 2px solid white;
  font-weight: bold;
}

/* Tab-Inhalt */
.tab-content {
  display: none;
  background: white;
  padding: 20px;
  border: 0px solid #ccc;
  border-radius: 0 0 6px 6px;
}

/* Sichtbar machen */
.tab-content.active {
  display: block;
}

.info-box {
  display: flex;
  align-items: flex-start;
  background-color: #eef5ff;
  border: 1px solid #a3c1f0;
  border-left: 5px solid #3b82f6;
  padding: 10px;
  margin: 10px 0 15px;
  border-radius: 5px;
  font-size: 0.95rem;
}

.info-text {
  flex: 1;
}

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

#upload-area {
  border: 2px dashed #96d4fd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background-color: #ffffff;
  color: #333;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative;
  width: 75%;
  margin: 0 auto;
}

#upload-area:hover {
  background-color: #e0f0ff;
}

#upload-area input[type="file"] {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  cursor: pointer;
}

.lock-btn {
  background-color: #f1f3f5 !important;
  font-size: 6px;
  border-radius: 4px;
}

.lock-btn.locked {
  background-color: #ffe7e9 !important;
}

tr.locked {
  background-color: #e6ffe6;
  /* Leicht grünlicher Hintergrund für gesperrte Zeilen */
}