/* Cancel Project Page Styles */
.project-detail-wrapper {
  padding: 60px 0;
  background-color: var(--bg-light);
  min-height: calc(100vh - 200px);
}

.loading-container,
.error-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  text-align: center;
}

.error-container h2 {
  color: var(--typo-secondary);
  margin-bottom: 10px;
}

.error-container p {
  color: var(--text-color);
}

/* Profile Edit Block */
.profile-edit-block {
  background: var(--color-white);
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.profile-edit-top {
  text-align: center;
  margin-bottom: 20px;
}

.profile-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
}

.profile-img .profile-update-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-edit-block h5 {
  font-size: var(--font-20);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--typo-secondary);
}

.profile-reviews {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: var(--font-small);
  color: var(--text-color);
  margin-bottom: 20px;
}

.profile-reviews svg {
  width: 13px;
  height: 12px;
}

.profile-chat {
  margin-bottom: 20px;
}

/* .custom-btn.secondary-light {
  background-color: var(--light-orange);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: var(--font-small);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
} */

/* .custom-btn.secondary-light:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
} */

.chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: var(--light-gray);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: var(--font-small);
  font-weight: 500;
  transition: all 0.3s ease;
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
}

.chat-btn:hover {
  background-color: var(--light-orange);
  color: var(--color-primary);
}

/* Review Content */
.review-content {
  background: var(--color-white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Project Tags */
.pd-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.pd-tag0list {
  display: flex;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.pd-tag0list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 20px;
  background-color: var(--light-gray);
  font-size: var(--font-xs);
  font-weight: 500;
  color: var(--text-color);
}

.pd-tag0list li.bg-light-sec {
  background-color: var(--light-orange);
  color: var(--color-primary);
}

.pd-bid {
  display: flex;
  align-items: center;
}

.share-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background-color: var(--light-orange);
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 8px;
  font-size: var(--font-small);
  font-weight: 500;
  transition: all 0.3s ease;
}

.share-profile:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Project Header */
.pd-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 20px;
}

.pd-head-titile {
  flex: 1;
}

.pd-head-titile h2 {
  font-size: var(--font-24);
  font-weight: 700;
  color: var(--typo-secondary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.pd-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-small);
  color: var(--text-color);
  margin-bottom: 15px;
}

.deal-price-outer {
  display: flex;
  align-items: center;
  gap: 15px;
}

.custom-btn.red-outline {
  background-color: transparent;
  color: #dc3545;
  border: 2px solid #dc3545;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: var(--font-small);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.custom-btn.red-outline:hover:not(:disabled) {
  background-color: #dc3545;
  color: var(--color-white);
}

.custom-btn.red-outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.deal-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 15px;
  background-color: var(--light-orange);
  border-radius: 8px;
  font-size: var(--font-regular);
  font-weight: 700;
  color: var(--color-primary);
}

.deal-price span {
  font-size: var(--font-xs);
  font-weight: 400;
  color: var(--text-color);
}

.pd-price {
  font-size: var(--font-32);
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
}

/* Project Description */
.pd-discription {
  color: var(--text-color);
  line-height: 1.6;
}

.pd-discription h3 {
  font-size: var(--font-20);
  font-weight: 600;
  color: var(--typo-secondary);
  margin-bottom: 15px;
  margin-top: 30px;
}

.pd-discription h3:first-child {
  margin-top: 0;
}

.pd-discription p {
  margin-bottom: 15px;
}

.pd-discription ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.pd-discription li {
  margin-bottom: 8px;
  color: var(--text-color);
}

/* Document Wrapper */
.document-wrapper {
  margin-top: 20px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.doc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background-color: var(--light-gray);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.doc-card:hover {
  background-color: var(--light-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.doc-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.icon-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: var(--color-white);
}

.doc-text {
  flex: 1;
}

.filename {
  font-size: var(--font-small);
  font-weight: 600;
  color: var(--typo-secondary);
  margin-bottom: 4px;
  word-break: break-word;
}

.size {
  font-size: var(--font-xs);
  color: var(--text-color);
}

.download-arrow {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.download-arrow:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.download-arrow:hover svg path {
  fill: var(--color-white);
}

/* Cancel Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.cancel-modal {
  background: var(--color-white);
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: var(--font-20);
  font-weight: 700;
  color: var(--typo-secondary);
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-color);
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-btn:hover:not(:disabled) {
  background-color: var(--light-gray);
  color: var(--typo-secondary);
}

.close-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-body {
  padding: 30px;
}

.warning-message {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background-color: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 10px;
  margin-bottom: 25px;
}

.warning-message svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-message p {
  margin: 0;
  color: #9b2c2c;
  font-size: var(--font-small);
  line-height: 1.5;
}

.modal-body .form-group {
  margin-bottom: 0;
}

.modal-body .form-label {
  font-size: var(--font-small);
  font-weight: 600;
  color: var(--typo-secondary);
  margin-bottom: 8px;
  display: block;
}

.modal-body .form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: var(--font-small);
  color: var(--text-color);
  transition: all 0.3s ease;
  resize: vertical;
  min-height: 100px;
}

.modal-body .form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(239, 115, 16, 0.1);
}

.modal-body .form-control:disabled {
  background-color: var(--light-gray);
  opacity: 0.7;
}

.modal-body .form-text {
  font-size: var(--font-xs);
  color: var(--text-color);
  margin-top: 5px;
  text-align: right;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  padding: 25px 30px;
  border-top: 1px solid var(--border-color);
}

/* .custom-btn.secondary-outline {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: var(--font-small);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.custom-btn.secondary-outline:hover:not(:disabled) {
  background-color: var(--light-gray);
  border-color: var(--text-color);
} */

.custom-btn.red-fill {
  background-color: #dc3545;
  color: var(--color-white);
  border: 2px solid #dc3545;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: var(--font-small);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.custom-btn.red-fill:hover:not(:disabled) {
  background-color: #c82333;
  border-color: #c82333;
}

.custom-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* File Type Specific Styling */
.doc-card.pdf .icon-box {
  background-color: #ffebee;
}

.doc-card.svg .icon-box {
  background-color: #e8f5e8;
}

.doc-card.img .icon-box {
  background-color: #e3f2fd;
}

.doc-card.vid .icon-box {
  background-color: #fce4ec;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .review-content {
    padding: 25px;
  }
  
  .pd-head {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .pd-price {
    font-size: var(--font-24);
    margin-top: 10px;
  }
}

@media (max-width: 991px) {
  .profile-edit-block {
    margin-bottom: 30px;
  }
  
  .pd-tag {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .pd-tag0list {
    width: 100%;
  }
  
  .deal-price-outer {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  
  .custom-btn.red-outline {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .project-detail-wrapper {
    padding: 40px 0;
  }
  
  .review-content {
    padding: 20px;
  }
  
  .profile-edit-block {
    padding: 20px 15px;
  }
  
  .pd-head-titile h2 {
    font-size: var(--font-20);
  }
  
  .pd-price {
    font-size: var(--font-20);
  }
  
  .pd-tag0list {
    flex-direction: column;
    gap: 10px;
  }
  
  .pd-tag0list li {
    justify-content: center;
  }
  
  .doc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .profile-edit-block {
    padding: 15px;
  }
  
  .review-content {
    padding: 15px;
  }
  
  .profile-img {
    width: 60px;
    height: 60px;
  }
  
  .profile-edit-block h5 {
    font-size: var(--font-regular);
  }
  
  .pd-discription h3 {
    font-size: var(--font-regular);
  }
  
  .deal-price-outer {
    gap: 10px;
  }
  
  .cancel-modal {
    width: 95%;
    margin: 10px;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 20px;
  }
  
  .modal-footer {
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-footer .custom-btn {
    width: 100%;
    justify-content: center;
  }
}