/* Gear Generator – gear-generator.css
 * (c) plagins.com
 */

/* ---- Wrapper ---------------------------------------------------- */
.gear-gen {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: #2c3e50;
  max-width: 860px;
  margin: 0 auto;
  box-sizing: border-box;
}

.gear-gen *,
.gear-gen *::before,
.gear-gen *::after {
  box-sizing: inherit;
}

/* ---- Two-column layout ------------------------------------------ */
.gg-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* ---- Sidebar ---------------------------------------------------- */
.gg-sidebar {
  flex: 0 0 220px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 16px;
}

/* ---- Control group ---------------------------------------------- */
.gg-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gg-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 13px;
  color: #34495e;
  margin: 0;
}

.gg-badge {
  display: inline-block;
  background: #2980b9;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 32px;
  text-align: center;
}

.gg-range {
  width: 100%;
  cursor: pointer;
  accent-color: #2980b9;
  margin: 2px 0;
}

.gg-minmax {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #95a5a6;
}

/* ---- Legend checkboxes ------------------------------------------ */
.gg-legend-title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7f8c8d;
}

.gg-chk {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  user-select: none;
  line-height: 1.6;
}

.gg-chk input[type="checkbox"] {
  cursor: pointer;
  accent-color: #2980b9;
  width: 14px;
  height: 14px;
}

.gg-dot {
  display: inline-block;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---- Info table -------------------------------------------------- */
.gg-info {
  margin-top: 4px;
  border-top: 1px solid #ecf0f1;
  padding-top: 10px;
}

.gg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.5;
}

.gg-table td {
  padding: 2px 0;
  vertical-align: top;
}

.gg-table td:first-child {
  color: #7f8c8d;
  padding-right: 6px;
}

.gg-table td:last-child {
  font-weight: 700;
  color: #2c3e50;
  text-align: right;
  white-space: nowrap;
}

/* ---- Canvas wrapper --------------------------------------------- */
.gg-canvas-wrap {
  flex: 1 1 300px;
  min-width: 200px;
}

.gg-canvas {
  display: block;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: #f7f9fb;
  cursor: crosshair;
}

/* ---- Mobile: stack vertically ----------------------------------- */
@media (max-width: 520px) {
  .gg-layout {
    flex-direction: column;
  }

  .gg-sidebar {
    flex: 0 0 auto;
    width: 100%;
  }

  .gg-canvas-wrap {
    width: 100%;
  }
}
