/* ZELO DoorSign Designer — compact, LittleFS-friendly, no framework */
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 14px/1.4 -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #eef1f3;
  color: #223;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  background: #0e7c7b; /* Cereda-Türkis-Anlehnung */
  color: #fff;
}
.topbar .brand { font-size: 16px; letter-spacing: 0.5px; }
.topbar label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.topbar select { padding: 3px 6px; border-radius: 4px; border: none; }
.topbar .spacer { flex: 1; }
.topbar button {
  padding: 6px 14px;
  border: none;
  border-radius: 5px;
  background: #ffffff22;
  color: #fff;
  cursor: pointer;
}
.topbar button.primary { background: #fff; color: #0e7c7b; font-weight: 600; }
.topbar .hosted-hint { font-size: 12px; color: #ffffffcc; font-style: italic; }

.workspace { flex: 1; display: flex; min-height: 0; }

.toolbar {
  width: 150px;
  padding: 12px;
  background: #fff;
  border-right: 1px solid #d8dde1;
  overflow-y: auto;
}
.toolbar h3, .sidebar h3 { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; color: #667; }
.toolbar button, .filebtn {
  display: block;
  width: 100%;
  margin: 4px 0;
  padding: 7px 10px;
  border: 1px solid #ccd3d8;
  border-radius: 5px;
  background: #f7f9fa;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}
.toolbar button:hover, .filebtn:hover { background: #e8f4f4; border-color: #0e7c7b; }
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.icon-grid button { padding: 6px 0; text-align: center; font-size: 18px; }

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 20px;
}
#stage {
  background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,0.18);
  max-width: 100%;
  height: auto;
}

.sidebar {
  width: 260px;
  padding: 12px;
  background: #fff;
  border-left: 1px solid #d8dde1;
  overflow-y: auto;
}
.props label { display: block; margin: 6px 0 2px; font-size: 12px; color: #556; }
.props input, .props select {
  width: 100%;
  padding: 5px 7px;
  border: 1px solid #ccd3d8;
  border-radius: 4px;
  font-size: 13px;
}
.props .row { display: flex; gap: 6px; }
.props .row > div { flex: 1; }
.props .hint { color: #99a; font-style: italic; }
.props .bind-badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  background: #0e7c7b; color: #fff; font-size: 11px; margin-bottom: 6px;
}

.layers { list-style: none; margin: 0; padding: 0; }
.layers li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  margin: 2px 0;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}
.layers li.selected { background: #e8f4f4; border-color: #0e7c7b; }
.layers li .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layers li button {
  border: none; background: none; cursor: pointer; padding: 1px 4px; font-size: 12px; color: #667;
}
.layers li button:hover { color: #0e7c7b; }
