@charset "utf-8";

@font-face {
  font-display: swap;
  font-family: "Abel";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/abel-v18-latin-regular.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --panel: rgba(255, 255, 255, 0.13);
  --panel-strong: rgba(255, 255, 255, 0.18);
  --field: #ffffff;
  --field-soft: rgba(255, 255, 255, 0.92);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.76);
  --line: rgba(255, 255, 255, 0.22);
  --dark: rgba(0, 0, 0, 0.28);
  --green: #b3d960;
  --green-strong: #9cc13b;
  --green-text: #668418;
  --danger: #d56b5f;
  --danger-strong: #b94f42;
  --focus: rgba(179, 217, 96, 0.42);
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Abel", Arial, Helvetica, sans-serif;
  color: var(--text);
}

body.hero {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(rgba(20, 25, 28, 0.58), rgba(20, 25, 28, 0.7)),
    url("https://ecommerce.mmprogconsult.de/community/46_01/controls/login/pictures/background_login.webp") center / cover no-repeat,
    #797979;
  overflow-x: hidden;
  padding: 34px 18px;
}

body.hero::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.055) 0,
      rgba(255, 255, 255, 0.055) 1px,
      transparent 3px,
      transparent 6px
    ),
    radial-gradient(circle at 20% 30%, rgba(0, 255, 200, 0.11), transparent 45%),
    radial-gradient(circle at 80% 65%, rgba(0, 160, 255, 0.08), transparent 50%);
  mix-blend-mode: screen;
  opacity: 0.36;
  animation: scanFlicker 4s linear infinite;
}

body.hero::after {
  content: "";
  position: fixed;
  inset: -40%;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(0, 255, 200, 0.10) 45%,
    rgba(140, 255, 255, 0.18) 50%,
    rgba(0, 160, 255, 0.10) 55%,
    transparent 65%
  );
  mix-blend-mode: screen;
  opacity: 0.33;
  animation: holoSweep 6s ease-in-out infinite;
}

@keyframes scanFlicker {
  0% { transform: translateY(0); filter: blur(0); opacity: 0.28; }
  50% { transform: translateY(6px); filter: blur(0.2px); opacity: 0.38; }
  100% { transform: translateY(0); filter: blur(0); opacity: 0.30; }
}

@keyframes holoSweep {
  0% { transform: translateX(-35%) translateY(-10%); opacity: 0.18; }
  45% { opacity: 0.40; }
  50% { transform: translateX(35%) translateY(10%); opacity: 0.35; }
  100% { transform: translateX(-35%) translateY(-10%); opacity: 0.18; }
}

.control_container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.inner_control {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.control_intro {
  position: relative;
  padding: 28px 28px 24px;
  text-align: center;
}

.control_logo {
  display: block;
  width: min(300px, 84%);
  height: auto;
  margin: 0 auto 14px;
}

.control_intro h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.control_intro p {
  max-width: 660px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 24px 24px;
}

fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  padding: 18px;
}

legend {
  padding: 0 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progressbar_container,
.single_product_import,
.single_customer_import,
.missing_images_search,
.shopify_auth_box {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  padding: 16px 16px 16px 56px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.single_product_import,
.single_customer_import,
.missing_images_search,
.shopify_auth_box {
  padding-left: 16px;
}

.primary_step {
  background: rgba(179, 217, 96, 0.14);
  border-color: rgba(179, 217, 96, 0.45);
}

.step_badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  color: var(--green-text);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.progressbar_container h2 {
  display: inline-block;
  margin: 0 10px 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.subh2 {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.start,
.stop,
button[type="submit"] {
  appearance: none;
  overflow: hidden;
  position: relative;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.2,.8,.2,1), box-shadow 0.18s cubic-bezier(.2,.8,.2,1), filter 0.18s ease;
}

.start,
button[type="submit"] {
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  color: var(--green-text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.stop {
  margin-left: 8px;
  background: linear-gradient(135deg, var(--danger), var(--danger-strong));
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.start {
  min-width: 84px;
  padding: 10px 14px;
}

.stop {
  min-width: 76px;
  padding: 10px 14px;
}

.start:hover,
.stop:hover,
button[type="submit"]:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.start:active,
.stop:active,
button[type="submit"]:active {
  transform: translateY(1px) scale(0.985);
}

.start::after,
button[type="submit"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  opacity: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  pointer-events: none;
}

.start:hover::after,
button[type="submit"]:hover::after {
  opacity: 1;
  animation: shimmer 1.4s ease-in-out 2 alternate;
}

@keyframes shimmer {
  from { left: -120%; }
  to { left: 120%; }
}

.progressbar {
  width: 100%;
  height: 20px;
  margin-top: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.progressbar .inner {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.22) 0,
      rgba(255, 255, 255, 0.22) 12px,
      rgba(255, 255, 255, 0.08) 12px,
      rgba(255, 255, 255, 0.08) 24px
    ),
    linear-gradient(135deg, var(--green), var(--green-strong));
  transition: width 0.3s ease;
}

.progressbar .percentage {
  padding-right: 8px;
  color: var(--green-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-align: right;
}

.progress_info {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.single_product_import,
.single_customer_import,
.missing_images_search,
.shopify_auth_box {
  margin-top: 12px;
}

.single_product_import label,
.single_customer_import label,
.shopify_auth_box label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.single_product_row,
.shopify_auth_row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.single_product_row input,
.single_product_row select,
.shopify_auth_row input {
  min-width: 210px;
  border: 1px solid #666666;
  border-radius: 6px;
  background: var(--field);
  color: #202326;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  padding: 11px 12px;
}

.shopify_auth_row input {
  min-width: 300px;
}

.single_product_row input:focus,
.single_product_row select:focus,
.shopify_auth_row input:focus {
  border-color: #444444;
  box-shadow: 0 0 0 4px var(--focus);
}

.message_text {
  min-height: 42px;
  margin-top: 14px;
  border: 1px solid rgba(179, 217, 96, 0.36);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.20);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  padding: 12px;
}

.order_option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.order_option:last-of-type {
  margin-bottom: 0;
}

input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

button[type="submit"] {
  width: 100%;
  padding: 14px 0;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}

@media (max-width: 760px) {
  body.hero {
    padding: 16px 10px;
  }

  .control_intro {
    padding: 24px 18px 18px;
  }

  form {
    padding: 0 14px 14px;
  }

  fieldset {
    padding: 14px;
  }

  .progressbar_container {
    padding: 54px 14px 14px;
  }

  .step_badge {
    top: 14px;
    left: 14px;
  }

  .progressbar_container h2 {
    display: block;
    margin: 0 0 10px;
    font-size: 19px;
  }

  .start,
  .stop {
    min-width: 0;
    margin: 0 6px 0 0;
  }

  .single_product_row,
  .shopify_auth_row {
    flex-direction: column;
    align-items: stretch;
  }

  .single_product_row input,
.single_product_row select,
  .shopify_auth_row input,
  .single_product_row .start,
  .shopify_auth_row .start {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.hero::before,
  body.hero::after,
  .start:hover::after,
  button[type="submit"]:hover::after {
    animation: none !important;
  }
}

.control_tabs {
  display: flex;
  gap: 8px;
  padding: 0 24px 18px;
}

.control_tab {
  appearance: none;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.20);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 18px;
  text-transform: uppercase;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.control_tab:hover,
.control_tab.is_active {
  border-color: rgba(179, 217, 96, 0.55);
  background: rgba(179, 217, 96, 0.16);
  color: var(--text);
}

.control_tab_panel[hidden] {
  display: none;
}

#automaticPanel {
  padding: 0 24px 24px;
}

.automatic_order_sync {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.automatic_order_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.automatic_order_header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.automatic_order_state {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 11px;
  text-transform: uppercase;
}

.automatic_order_state.is_running {
  border-color: rgba(179, 217, 96, 0.62);
  background: rgba(179, 217, 96, 0.18);
  color: #e9ffc0;
}

.automatic_order_controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.automatic_order_next {
  color: var(--muted);
  font-size: 13px;
  margin-left: auto;
}

.automatic_order_sync > label {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.automatic_order_log {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(179, 217, 96, 0.36);
  border-radius: 10px;
  background: rgba(9, 14, 16, 0.76);
  color: #eaf4dd;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.55;
  min-height: 240px;
  outline: none;
  padding: 13px;
}

.start:disabled,
.stop:disabled {
  cursor: not-allowed;
  filter: grayscale(0.65);
  opacity: 0.5;
}

@media (max-width: 640px) {
  .control_tabs {
    padding-right: 16px;
    padding-left: 16px;
  }

  #automaticPanel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .automatic_order_header {
    flex-direction: column;
  }

  .automatic_order_next {
    flex-basis: 100%;
    margin-left: 0;
  }
}

#automaticPanel fieldset + fieldset {
  margin-top: 18px;
}

.automatic_sync_box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.automatic_sync_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.automatic_sync_header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.automatic_sync_state {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 11px;
  text-transform: uppercase;
}

.automatic_sync_state.is_running {
  border-color: rgba(179, 217, 96, 0.62);
  background: rgba(179, 217, 96, 0.18);
  color: #e9ffc0;
}

.automatic_sync_controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.automatic_sync_controls > label {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.automatic_sync_controls select {
  min-width: 130px;
  border: 1px solid #666666;
  border-radius: 7px;
  background: var(--field);
  color: #202326;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  padding: 10px 34px 10px 11px;
}

.automatic_sync_controls select:focus {
  border-color: #444444;
  box-shadow: 0 0 0 4px var(--focus);
}

.automatic_sync_controls select:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.automatic_sync_next {
  color: var(--muted);
  font-size: 13px;
  margin-left: auto;
}

.automatic_sync_box > label {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.automatic_sync_log {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(179, 217, 96, 0.36);
  border-radius: 10px;
  background: rgba(9, 14, 16, 0.76);
  color: #eaf4dd;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.55;
  min-height: 190px;
  outline: none;
  padding: 13px;
}

@media (max-width: 640px) {
  .automatic_sync_header {
    flex-direction: column;
  }

  .automatic_sync_next {
    flex-basis: 100%;
    margin-left: 0;
  }
}

.automatic_data_areas {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(20, 35, 31, 0.22);
}
.automatic_data_areas label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.automatic_data_areas input:disabled { opacity: 0.6; }
.log_view_controls { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.log_view_controls label { color: var(--text); font-size: 13px; font-weight: 600; }
.log_view_controls select,
.log_view_controls input { min-height: 42px; border: 1px solid #666; border-radius: 6px; background: var(--field); color: #202326; padding: 9px 10px; }
.log_view_content { min-height: 260px; max-height: 560px; margin: 14px 0 0; overflow: auto; white-space: pre-wrap; }
.control_login_panel {
  width: min(420px, calc(100% - 40px));
  margin: 10vh auto;
  padding: 32px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px;
  background: rgba(70, 101, 92, .94);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}
.control_login_panel form { display: grid; gap: 12px; }
.control_login_panel input { width: 100%; box-sizing: border-box; padding: 12px; border-radius: 7px; border: 1px solid rgba(255,255,255,.35); }
.control_login_error { color: #ffd6cf; font-weight: 700; }
.control_logout {
  position: absolute;
  top: 18px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: #fff;
  background: rgba(25,40,36,.38);
  font-size: 25px;
  line-height: 1;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.control_logout:hover,
.control_logout:focus-visible {
  color: #fff;
  background: #d95b50;
  border-color: #ef8a80;
  transform: scale(1.06);
}
.control_login_header { text-align: center; margin-bottom: 24px; }
.control_login_header h1 { margin: 12px 0 0; }
.control_login_logo { display: block; width: min(240px, 80%); height: auto; margin: 0 auto; }
.missing_images_search h2 {
  margin: 0 0 8px;
}

.missing_images_search .subh2 {
  display: block;
  margin: 0 0 14px;
  line-height: 1.5;
}

.missing_images_search label {
  display: block;
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.missing_images_result {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 180px;
  padding: 12px;
  border: 1px solid #666666;
  border-radius: 6px;
  background: var(--field);
  color: #202326;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}

.missing_images_result:focus {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Passive observers can follow activity without controlling the running automation. */
.automatic_sync_box.is_observer,
.automatic_sync_box.is_observer h2,
.automatic_sync_box.is_observer .subh2,
.automatic_sync_box.is_observer label,
.automatic_sync_box.is_observer .automatic_sync_state,
.automatic_sync_box.is_observer .automatic_sync_next,
.automatic_sync_box.is_observer .automatic_sync_log {
  color: #a5abb0;
}
.automation_observer_hint { color: #a5abb0; font-size: 13px; }
.automation_observer_hint:empty { display: none; }
