body {
  font-family: system-ui, Arial, sans-serif;
  margin: 0;
  background: #f5f5f5;
}


.btn-variants:hover {
  background: #ffdb1d;

}
.btn-variants {
  background: #ffe974;
  font-size: 0.8em;
  cursor: pointer;
  transition: background 0.2s;
  border: solid 1px #000;
  border-radius: 0.3em;
  padding: 0.2em;
}



.wichtig {background: #fdec8e;
  padding: 2em;
  border-radius: 1em;}



td.edited, tr.edited td {
  min-width: 320px;
  max-width: 600px;
}

.gpt-generated {
  background: #e4ffe6 !important;   /* sanftes Grün, Beispiel */
  transition: background 0.3s;}

.edit-input,
.edit-input-variant {
  width: 100%;
  min-width: 120px;
  max-width: 100%;
  box-sizing: border-box;
}


/* Kurzfassung für wichtige Spalten */
td[data-field="item_name"],
td[data-field="product_description"],
td[data-field="brand_name"],
td[data-field="bullet_point1"],
td[data-field="bullet_point2"],
td[data-field="bullet_point3"],
td[data-field="bullet_point4"],
td[data-field="bullet_point5"] {
  max-width: 320px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
}




.mapping-table tr:hover {
  background: #fff;         /* Leichte Hoverfarbe */
  transition: background 0.15s;
}

.mapping-table tr.active-mapping-row {
  background: #fff !important; /* Weiß beim Editieren */
  border-left: 3px solid #2196f3;
  transition: background 0.15s, border-left 0.15s;
}

.mapping-table tr.mapping-row-ok {
  background: #e8ffe4 !important;
  transition: background 0.18s;
}
.mapping-table tr.mapping-row-missing {
  background: #ffe8e8 !important;
  transition: background 0.18s;
}
.mapping-table tr.active-mapping-row {
  border-left: 3px solid #2196f3;
}

.mapping-row-ok {
  background: #e5fbe5 !important;
}
.mapping-row-missing {
  background: #ffe4e4 !important;
}


.container {
  display: flex;
}
.sidebar {
  min-width: 220px;
  background: #23272e;
  color: #fff;
  //height: 100vh;
  padding: 18px 12px 12px 12px;
  box-sizing: border-box;
}
.sidebar h2 {
  font-size: 1.4em;
  margin-top: 0;
}
.nav-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.nav-btn {
  background: #314159;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 11px 14px;
  font-size: 1em;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-btn:hover,
.nav-btn.active {
  background: #4977c9;
}
.burger-btn {
  display: none;
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 2.0em;
  background: none;
  border: none;
  color: #314159;
  cursor: pointer;
}
.main {
  flex: 1;
  padding: 28px 24px;
  background: #f0f0f0;
  min-height: 100vh;
}
.table-wrapper {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.table th, .table td {
  border: 1px solid #d5dbe2;
  padding: 7px 8px;
  text-align: left;
  white-space: nowrap;
}
.table th {
  background: #eef2fa;
  font-weight: 600;
}
.table img {
  max-width: 52px;
  max-height: 52px;
  object-fit: cover;
  border-radius: 5px;
}

/* Bootstrap Tooltip Styling: Schwarzer Tooltip */
.tooltip-inner {
  background: #181f3d !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  text-align: center;
  max-width: 350px;
  min-width: 90px;
  white-space: pre-line;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  opacity: 0.97;
}

.tooltip.show { opacity: 0.97 !important; }

.tooltip-arrow::before {
  border-top-color: #181f3d !important;
  border-bottom-color: #181f3d !important;
}

/* Schwarzes Tooltip-Icon mit weißem Fragezeichen */
.tooltip-icon {
  display: inline-block;
  margin-left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #181f3d;
  color: #fff;
  text-align: center;
  line-height: 18px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.15s;
  user-select: none;
}
.tooltip-icon::before {
  content: "?";
  display: inline-block;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
}
.tooltip-icon:hover, .tooltip-icon:focus {
  background: #294789;
}


@media (max-width: 800px) {
  .sidebar { min-width: 0; width: 100%; position: fixed; z-index: 90; left: -100%; transition: left 0.25s;}
  .sidebar.open { left: 0; }
  .main.full-width { margin-left: 0 !important; }
  .burger-btn { display: block; }
}


/* Artikel-Anlegen: Schön mittig & modern */
.artikel-anlegen {
  max-width: 800px;
  margin: 36px auto 0 auto;
  background: #fff;
  border-radius: 15px;
  padding: 2.2rem 2vw 2.5rem 2vw;
}

.artikel-anlegen h1 {
  font-size: 2rem;
  color: #2a3553;
  margin-bottom: 1.5rem;
  margin-top: 0.4em;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.artikel-anlegen h3 {
  margin-top: 1.7em;
  color: #3b4a70;
  font-size: 1.13rem;
  font-weight: 600;
  margin-bottom: .7em;
}

.section {
  margin-bottom: 1.6em;
  border-bottom: 1px solid #f2f3f6;
  padding-bottom: 1.2em;
}
.section:last-child { border-bottom: none; }

.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: .5em;
}
.form-group {
  flex: 1 1 140px;
  min-width: 120px;
  margin-bottom: 1em;
  position: relative;
}

.artikel-anlegen input,
.artikel-anlegen textarea,
.artikel-anlegen select {
  width: 100%;
  padding: 10px 12px;
  font-size: 1em;
  background: #f8fafc;
  border: 1px solid #dbe3ec;
  border-radius: 5px;
  box-sizing: border-box;
  color: #23272e;
  margin-bottom: 0.18em;
  outline: none;
  transition: border 0.14s;
}
.artikel-anlegen input:focus,
.artikel-anlegen textarea:focus,
.artikel-anlegen select:focus {
  border-color: #4977c9;
  background: #f2f8ff;
}

.artikel-anlegen textarea {
  min-height: 70px;
  max-height: 220px;
  resize: vertical;
}
.counter {
  font-size: 0.95em;
  color: #889;
  text-align: right;
  margin-top: -1.0em;
  margin-bottom: 0.3em;
  padding-right: 4px;
}
.image-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 12px;
}

.artikel-anlegen .btn {
  background: linear-gradient(90deg, #4977c9 80%, #5378e8 100%);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 12px 32px;
  font-size: 1.05rem;
  cursor: pointer;
  margin-top: 1.5rem;
  margin-bottom: .5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 1.5px 5px rgba(80,100,220,0.08);
  transition: background 0.15s, box-shadow 0.12s;
}
.artikel-anlegen .btn:hover {
  background: linear-gradient(90deg, #294789 80%, #415cb0 100%);
  box-shadow: 0 2.5px 8px rgba(60,90,170,0.11);
}

@media (max-width: 700px) {
  .artikel-anlegen { max-width: 99vw; padding: 1.2rem 1vw; }
  .input-row, .image-fields { flex-direction: column; grid-template-columns: 1fr; gap: 8px; }
  .form-group { min-width: 0; }
}
