/* Graphing Calculator — Free Online Tools theme */

.gc-tool {
  padding: 2rem;
}

.gc-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.gc-hint {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--tool-panel-muted, rgba(255, 255, 255, 0.78));
}

.gc-functions-list {
  margin-bottom: 1rem;
}

.gc-function-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.gc-function-row .gc-eq-input {
  flex: 1 1 14rem;
  min-width: 0;
}

.gc-eq-input,
.gc-select {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 8px);
  font-size: 0.875rem;
  background: var(--color-bg, #fff);
  color: var(--color-text);
}

.gc-color {
  width: 3rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 8px);
  background: transparent;
  cursor: pointer;
}

.gc-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.gc-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.gc-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.gc-bg-label {
  font-weight: 600;
}

.gc-select {
  width: auto;
  min-width: 8rem;
}

.gc-helpers {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--color-border);
  background: var(--color-bg-muted, #f0f7fc);
}

.gc-helpers__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
}

.gc-helpers__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gc-helper-btn {
  font-size: 0.8125rem;
  padding: 0.4rem 0.65rem;
}

.gc-graph-wrap {
  margin-top: 0.5rem;
  height: 31.25rem;
  position: relative;
}

#gc-graph {
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 8px);
  background: #fff;
}

.gc-remove-btn {
  font-size: 0.8125rem;
}

@media (max-width: 700px) {
  .gc-controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  .gc-controls-row .btn {
    width: 100%;
  }

  .gc-graph-wrap {
    height: 22rem;
  }
}
