:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
  --border-color: #30363d;
  --success: #238636;
  --info: #2188ff;
  --warning: #d29922;
}

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

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

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

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 40px 20px;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 32px;
  margin: 0 0 8px;
  font-weight: 600;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0;
}

/* Dashboard */
.dashboard {
  min-height: 100vh;
  background: var(--bg-primary);
}

.project-section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #f0f6fc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Project Card */
.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  background: var(--bg-tertiary);
  border-color: #444c56;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.project-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #f0f6fc;
}

.project-description {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.5;
  flex-grow: 1;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-active {
  background: rgba(35, 134, 54, 0.15);
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.status-in-progress {
  background: rgba(33, 136, 255, 0.15);
  color: #58a6ff;
  border: 1px solid rgba(88, 166, 255, 0.3);
}

.status-planning {
  background: rgba(210, 153, 34, 0.15);
  color: #d29922;
  border: 1px solid rgba(210, 153, 34, 0.3);
}

/* Progress Bar */
.progress-section {
  margin: 16px 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.progress-percent {
  font-weight: 600;
  color: var(--text-primary);
}

.progress-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-large {
  height: 12px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #238636, #3fb950);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.card-footer {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.link {
  color: var(--info);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

.link:hover {
  color: #79c0ff;
  text-decoration: underline;
}

/* Detail Page */
.project-detail {
  min-height: 100vh;
  background: var(--bg-primary);
}

.detail-header {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.back-button {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  white-space: nowrap;
}

.back-button:hover {
  background: var(--bg-tertiary);
  border-color: #444c56;
}

.detail-header h1 {
  font-size: 28px;
  margin: 0;
  flex-grow: 1;
}

.detail-container {
  padding: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.detail-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 24px;
}

.detail-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #f0f6fc;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-top h2 {
  margin: 0;
}

.detail-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: 15px;
}

.progress-large {
  background: var(--bg-tertiary);
  padding: 16px;
  border-radius: 6px;
}

/* Lists */
.work-list,
.next-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-list li,
.next-steps-list li {
  padding-left: 24px;
  position: relative;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.work-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #3fb950;
  font-weight: 600;
}

.next-steps-list li:before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--info);
  font-weight: 600;
}

/* Sidebar */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 20px;
}

.sidebar-card h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
  color: #f0f6fc;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.info-list dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.info-list dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
}

.capitalize {
  text-transform: capitalize;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-button {
  display: inline-block;
  background: var(--bg-tertiary);
  color: var(--info);
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  text-align: center;
}

.link-button:hover {
  background: var(--bg-primary);
  border-color: var(--info);
}

.link-info {
  font-size: 12px;
  color: var(--text-secondary);
  word-break: break-all;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 24px 16px;
    margin-bottom: 24px;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-header h1 {
    font-size: 22px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
