/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #2d2d30;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header h1 {
  margin: 0;
  color: #cccccc;
  font-size: 18px;
  font-weight: 500;
}

.mode-toggle {
  display: flex;
  gap: 8px;
}

.mode-btn {
  padding: 8px 16px;
  border: 1px solid #3e3e42;
  background: #1e1e1e;
  color: #cccccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.mode-btn:hover {
  background: #3e3e42;
}

.mode-btn.active {
  background: #007acc;
  border-color: #007acc;
  color: white;
}

/* Content wrapper */
.content-wrapper {
  margin-top: 60px;
  transition: opacity 0.3s ease;
}

.content-wrapper.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Live view iframe */
.live-view {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: white;
  display: none;
}

.live-view.active {
  display: block;
}

.live-view iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* VS Code Style for Code Blocks */
.vscode-container {
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.vscode-header {
  background-color: #2d2d30;
  padding: 8px 16px;
  border-bottom: 1px solid #3e3e42;
  display: flex;
  align-items: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 12px;
  color: #cccccc;
}

.vscode-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.vscode-dot.red {
  background-color: #ff5f56;
}
.vscode-dot.yellow {
  background-color: #ffbd2e;
}
.vscode-dot.green {
  background-color: #27ca3f;
}

.vscode-title {
  margin-left: 8px;
  color: #cccccc;
}

.vscode-code {
  background-color: #1e1e1e;
  color: #d4d4d4;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
  padding: 16px;
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}

/* Override Prism.js styles to match VS Code */
.vscode-code .token.comment {
  color: #6a9955;
}
.vscode-code .token.string {
  color: #ce9178;
}
.vscode-code .token.keyword {
  color: #569cd6;
}
.vscode-code .token.function {
  color: #dcdcaa;
}
.vscode-code .token.number {
  color: #b5cea8;
}
.vscode-code .token.operator {
  color: #d4d4d4;
}
.vscode-code .token.property {
  color: #9cdcfe;
}
.vscode-code .token.punctuation {
  color: #d4d4d4;
}

/* Scrollbar styling */
.vscode-code::-webkit-scrollbar {
  height: 8px;
}

.vscode-code::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.vscode-code::-webkit-scrollbar-thumb {
  background: #424242;
  border-radius: 4px;
}

.vscode-code::-webkit-scrollbar-thumb:hover {
  background: #4f4f4f;
}

/* Site selector styling */
#site-selector {
  padding: 6px 12px;
  background: #1e1e1e;
  color: #cccccc;
  border: 1px solid #3e3e42;
  border-radius: 4px;
  font-size: 14px;
}

#site-selector:focus {
  outline: none;
  border-color: #007acc;
}

/* Copy button styling */
.copy-btn {
  background: #1e1e1e;
  border: 1px solid #3e3e42;
  color: #cccccc;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: auto;
  min-width: 32px;
  height: 28px;
}

.copy-btn:hover {
  background: #3e3e42;
  border-color: #007acc;
}

.copy-btn:active {
  background: #007acc;
  border-color: #007acc;
  transform: scale(0.95);
}

.copy-btn svg {
  transition: color 0.2s ease;
}
