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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --success: #10b981;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

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

header {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 24px;
  color: var(--text-dark);
}

.subtitle {
  color: var(--text-light);
  margin-top: 4px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.stat-card h3 {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.dashboard {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 24px;
  min-height: 600px;
}

.sidebar {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.sidebar h2 {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.project-list {
  max-height: 500px;
  overflow-y: auto;
}

.project-item {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.project-item:hover {
  background: var(--bg-light);
  border-color: var(--border);
}

.project-item.active {
  background: var(--primary);
  color: white;
}

.project-item .title {
  font-weight: 600;
  margin-bottom: 4px;
}

.project-item .meta {
  font-size: 12px;
  opacity: 0.8;
}

.content-area {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.project-details h2 {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section h3 {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 16px;
  color: var(--text-dark);
}

.muted {
  color: var(--text-light);
}

.token-usage {
  max-width: 420px;
  margin: 12px 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.token-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.token-row span {
  color: var(--text-light);
}

.token-row strong {
  color: var(--text-dark);
}

.token-meta {
  padding: 8px 12px;
  color: var(--text-light);
  font-size: 12px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.token-meta:last-child {
  border-bottom: 0;
}

.questions-list {
  margin-top: 16px;
}

.question-item {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.question-number {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.question-text {
  font-weight: 500;
  margin-bottom: 8px;
}

.answer-text {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--text-light);
  font-size: 18px;
}

.bid-preview {
  margin-top: 24px;
}

.bid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.bid-content {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 20px;
  white-space: pre-wrap;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.8;
  max-height: 500px;
  overflow-y: auto;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background: #475569;
}

.hidden {
  display: none;
}

.view-bid-btn {
  margin-top: 12px;
  width: 100%;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 8px;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

@media (max-width: 1024px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
}
