/* Ongoing Project Details Styles */

/* Status Badge for Ongoing */
.status-ongoing {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  padding: 6px 12px;
  border-radius: 15px;
  font-weight: 600;
  font-size: var(--font-xs);
  text-transform: uppercase;
}

.status-ongoing img {
  margin-right: 5px;
  width: 14px;
  height: 14px;
}

/* Project Timeline */
.project-timeline {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-item span {
  font-size: var(--font-small);
  color: var(--text-color);
  font-weight: 500;
}

.pd-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-14);
  font-weight: 600;
  color: var(--typo-secondary);
}

.pd-time img {
  width: 16px;
  height: 16px;
}

.pd-time.deadline {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.time-remaining {
  font-size: var(--font-xs);
  color: #f59e0b;
  font-weight: 500;
  font-style: italic;
}

/* Project Progress Section */
.project-progress-section {
  background: #f8fafc;
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
  border: 1px solid var(--border-plight);
}

.project-progress-section h3 {
  font-size: var(--font-18);
  font-weight: 700;
  color: var(--typo-secondary);
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-progress-section h3::before {
  content: "📊";
  font-size: 20px;
}

.progress-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-label {
  font-size: var(--font-16);
  font-weight: 600;
  color: var(--typo-secondary);
}

.progress-value {
  font-size: var(--font-18);
  font-weight: 700;
  color: var(--color-primary);
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #d6610e);
  border-radius: 6px;
  transition: width 0.8s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.current-milestone {
  font-size: var(--font-small);
  color: var(--text-color);
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
}

.current-milestone strong {
  color: var(--color-primary);
}

/* Project Documents */
.project-documents {
  margin: 30px 0;
}

.project-documents h3 {
  font-size: var(--font-18);
  font-weight: 700;
  color: var(--typo-secondary);
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-documents h3::before {
  content: "📄";
  font-size: 20px;
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.document-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--border-plight);
  transition: all 0.3s ease;
}

.document-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.document-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.document-icon img {
  width: 32px;
  height: 32px;
}

.document-details h4 {
  font-size: var(--font-16);
  font-weight: 600;
  color: var(--typo-secondary);
  margin: 0 0 5px 0;
}

.document-details small {
  font-size: var(--font-xs);
  color: var(--text-color);
}

.document-actions .download-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-primary);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: var(--font-small);
  font-weight: 600;
  transition: all 0.3s ease;
}

.document-actions .download-btn:hover {
  background: #d6610e;
  transform: translateY(-1px);
}

.document-actions .download-btn svg {
  width: 16px;
  height: 16px;
}

/* Update Proposal Section */
.update-proposal-section {
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, #fef3e2, #fef7ed);
  border: 2px solid var(--color-primary);
  border-radius: 15px;
  text-align: center;
}

.update-proposal-section .section-header h3 {
  font-size: var(--font-20);
  font-weight: 700;
  color: var(--typo-secondary);
  margin: 0 0 10px 0;
}

.update-proposal-section .section-header p {
  font-size: var(--font-16);
  color: var(--text-color);
  margin: 0 0 25px 0;
}

/* Modal Styles - Styles moved to main style.css */

.update-proposal-modal {
  max-width: 700px;
}

.modal-header h3 {
  font-size: var(--font-20);
  font-weight: 700;
  color: var(--typo-secondary);
  margin: 0;
}

/* Form Styles - Styles moved to main style.css */

/* Button Styles */
.custom-btn.primary-btn {
  background: var(--color-primary);
  color: white;
}

.custom-btn.primary-btn:hover:not(:disabled) {
  background: #d6610e;
  transform: translateY(-1px);
}

.custom-btn.secondary-btn {
  background: #f9fafb;
  color: var(--typo-secondary);
  border: 1px solid var(--border-color);
}

.custom-btn.secondary-btn:hover:not(:disabled) {
  background: #f3f4f6;
}

/* Loading States - Styles moved to main style.css */

/* Responsive Design */
@media (max-width: 991px) {
  .project-timeline {
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
  }
  
  .timeline-item {
    flex: 1;
  }
  
  .pd-time.deadline {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  
  .time-remaining {
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .project-progress-section,
  .update-proposal-section {
    padding: 20px;
    margin: 20px 0;
  }
  
  .project-timeline {
    flex-direction: column;
    gap: 15px;
  }
  
  .document-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
  }
  
  .document-actions {
    align-self: stretch;
  }
  
  .document-actions .download-btn {
    width: 100%;
    justify-content: center;
  }
  
  .modal-content {
    margin: 10px;
    max-height: 95vh;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 20px;
  }
  
  .modal-footer {
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-footer .custom-btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .pd-tag0list {
    flex-direction: column;
    gap: 10px;
  }
  
  .project-progress-section h3,
  .project-documents h3 {
    font-size: var(--font-16);
  }
  
  .progress-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .document-info {
    gap: 10px;
  }
  
  .document-details h4 {
    font-size: var(--font-14);
  }
  
  .update-proposal-section .section-header h3 {
    font-size: var(--font-18);
  }
  
  .modal-header h3 {
    font-size: var(--font-18);
  }
}

/* Print Styles */
@media print {
  .modal-overlay,
  .update-proposal-section,
  .document-actions {
    display: none;
  }
  
  .project-progress-section,
  .project-documents {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .document-item:hover {
    transform: none;
    box-shadow: none;
  }
  
  .progress-fill::after {
    display: none;
  }
}