.sf-codeblock {
  height: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #1E1E1E;
  border-radius: 14px;
}

.sf-codeblock__topbar {
  height: 64px;
  background: #252526;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.sf-codeblock__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sf-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}
.sf-dot--red { background: #ef4444; }
.sf-dot--yellow { background: #f59e0b; }
.sf-dot--green { background: #22c55e; }

.sf-filename {
  margin-left: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: #9ca3af;
}

.sf-copy-btn {
  border: 0;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: #2563eb;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
  transition: transform .08s ease, background .2s ease, box-shadow .2s ease;
}
.sf-copy-btn:hover {
  background: #3b82f6;
}
.sf-copy-btn:active {
  transform: scale(0.96);
}

.sf-copy-btn.is-copied {
  background: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.sf-codeblock__body {
  flex: 1;
  overflow: auto;
  padding: 32px;
}

.sf-pre {
  margin: 0;
  white-space: pre-wrap;
  color: #D4D4D4;
  font-size: 12px;
  line-height: 1.7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  user-select: text;
}

.sf-code {
  white-space: pre-wrap;
}
