* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--vscode-editor-background, #1e1e1e);
  color: var(--vscode-editor-foreground, #d4d4d4);
}

.app-container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.card {
  background: var(--vscode-editor-background, #252526);
  border: 1px solid var(--vscode-panel-border, #3e3e42);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}

.btn {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.2s;
  background: var(--vscode-button-background, #0e639c);
  color: var(--vscode-button-foreground, #ffffff);
}

.btn:hover {
  opacity: 0.9;
  background: var(--vscode-button-hoverBackground, #1177bb);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--vscode-button-secondaryBackground, #3a3d41);
  color: var(--vscode-button-secondaryForeground, #cccccc);
}

.input {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--vscode-input-border, #3e3e42);
  background: var(--vscode-input-background, #3c3c3c);
  color: var(--vscode-input-foreground, #cccccc);
  font-size: 14px;
  width: 100%;
}

.input:focus {
  outline: 1px solid var(--vscode-focusBorder, #007acc);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--vscode-descriptionForeground, #999999);
}

.error {
  color: var(--vscode-errorForeground, #f48771);
  padding: 12px;
  background: var(--vscode-inputValidation-errorBackground, #5a1d1d);
  border: 1px solid var(--vscode-inputValidation-errorBorder, #be1100);
  border-radius: 4px;
  margin-bottom: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--vscode-panel-border, #3e3e42);
}

th {
  font-weight: 600;
  color: var(--vscode-foreground, #cccccc);
}

tr:hover {
  background: var(--vscode-list-hoverBackground, #2a2d2e);
}
