/* Project Status Modal Styles */
.project-status-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.project-status-modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-light);
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.close-btn {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: var(--surface);
  color: var(--text);
}

.modal-body {
  padding: 32px;
  max-height: calc(90vh - 100px);
  overflow-y: auto;
}

/* Project Info */
.project-info {
  margin-bottom: 32px;
}

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

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.info-value {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

/* Progress Overview */
.progress-overview {
  margin-bottom: 32px;
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.stat-card.completed {
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
}

.stat-card.in-progress {
  background: rgba(245, 158, 11, 0.1);
  border-color: #f59e0b;
}

.stat-card.planned {
  background: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
}

.stat-card.blocked {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-card.completed .stat-number {
  color: #22c55e;
}

.stat-card.in-progress .stat-number {
  color: #f59e0b;
}

.stat-card.planned .stat-number {
  color: #3b82f6;
}

.stat-card.blocked .stat-number {
  color: #ef4444;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Categories */
.categories-container {
  margin-bottom: 32px;
}

.categories-list {
  display: grid;
  gap: 24px;
}

.category-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.category-header {
  padding: 16px 20px;
  background: var(--surface-light);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.category-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.category-count {
  margin-left: auto;
  background: var(--surface);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.category-items {
  padding: 0;
}

.category-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

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

.category-item:hover {
  background: var(--surface-light);
}

.item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.item-priority {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.item-priority.high {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.item-priority.medium {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.item-priority.low {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.item-description {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 8px;
  line-height: 1.5;
}

.item-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.item-progress {
  margin-top: 8px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--surface-light);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Milestones */
.milestones-section {
  margin-bottom: 32px;
}

.milestones-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
}

.milestones-list {
  display: grid;
  gap: 12px;
}

.milestone-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.milestone-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.milestone-status.completed {
  background: #22c55e;
}

.milestone-status.in-progress {
  background: #f59e0b;
}

.milestone-status.planned {
  background: #3b82f6;
}

.milestone-content {
  flex: 1;
}

.milestone-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}

.milestone-description {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.milestone-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* Team */
.team-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
}

.team-list {
  display: grid;
  gap: 12px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-light);
}

.member-avatar {
  font-size: 24px;
}

.member-info {
  flex: 1;
}

.member-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 2px;
}

.member-role {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .modal-content {
    max-width: 95%;
    margin: 10px;
  }
  
  .modal-body {
    padding: 24px;
  }
  
  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .progress-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .project-status-modal {
    padding: 10px;
  }
  
  .modal-content {
    max-width: 100%;
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 16px 20px;
  }
  
  .modal-header h2 {
    font-size: 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .progress-stats {
    grid-template-columns: 1fr;
  }
  
  .item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .item-meta {
    flex-direction: column;
    gap: 4px;
  }
}
