/* PROJECT COMMAND CENTER STYLES */

.project-command-center {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.project-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.project-tab {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-bottom: none;
  color: var(--text-secondary);
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.15s;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  position: relative;
}

.project-tab.active {
  background: var(--bg-1);
  color: var(--text-primary);
  border-color: var(--accent);
  transform: translateY(1px);
}

.project-tab:hover:not(.active) {
  background: var(--bg-3);
  color: var(--text-primary);
}

.project-tab-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.project-cre .project-tab-indicator { background: #3b82f6; }
.project-dealscope .project-tab-indicator { background: #22c55e; }
.project-rgo .project-tab-indicator { background: #a855f7; }
.project-prop .project-tab-indicator { background: #f59e0b; }
.project-all .project-tab-indicator { background: #6b7280; }

/* Project Content */
.project-content {
  display: none;
}

.project-content.active {
  display: block;
}

.project-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.project-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-title h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 500;
}

.status-production { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.status-staging { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.status-development { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.status-transfer { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.status-paused { background: rgba(107, 114, 128, 0.15); color: #6b7280; }

/* Project Grid Layout */
.project-overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.project-main-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-side-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Infrastructure Panel */
.infrastructure-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.infrastructure-panel h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.infra-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.infra-item:last-child {
  border-bottom: none;
}

.infra-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.infra-value {
  font-size: 12px;
  color: var(--text-primary);
  text-align: right;
  max-width: 200px;
  word-break: break-word;
}

.infra-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.infra-link:hover {
  text-decoration: underline;
}

/* Health Status Panel */
.health-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.health-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.health-item:last-child {
  border-bottom: none;
}

.health-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.health-indicator.healthy { background: #22c55e; }
.health-indicator.warning { background: #f59e0b; }
.health-indicator.critical { background: #ef4444; }
.health-indicator.unknown { background: #6b7280; }

.health-text {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Features Panel */
.features-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.features-grid {
  display: grid;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-1);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.feature-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.feature-description {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.feature-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 12px;
}

.feature-complete { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.feature-partial { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.feature-missing { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.feature-planned { background: rgba(107, 114, 128, 0.15); color: #6b7280; }

/* Issues Panel */
.issues-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.issue-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.issue-item:last-child {
  border-bottom: none;
}

.issue-priority {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.priority-critical { background: #ef4444; }
.priority-high { background: #f59e0b; }
.priority-medium { background: #3b82f6; }
.priority-low { background: #6b7280; }

.issue-content {
  flex: 1;
}

.issue-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.issue-description {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.issue-meta {
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: var(--text-secondary);
}

/* Metrics Panel */
.metrics-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-item {
  text-align: center;
  padding: 12px;
  background: var(--bg-1);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.metric-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* All Projects View */
.all-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.project-summary-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s;
}

.project-summary-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.project-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.project-summary-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.summary-stat {
  text-align: center;
  padding: 6px;
  background: var(--bg-1);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.summary-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.summary-stat-label {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .project-overview-grid {
    grid-template-columns: 1fr;
  }
  
  .all-projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .project-tabs {
    flex-wrap: wrap;
  }
  
  .project-tab {
    flex: 1;
    min-width: 120px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}