/* View Bids 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);
  margin-bottom: 20px;
}

/* Back Button */
.back-button {
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.back-button .back-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--font-small);
  transition: all 0.3s ease;
}

.back-button .back-link:hover {
  opacity: 0.8;
}

/* Page Title */
.page-title {
  display: flex;
  justify-content: space-between;
  margin: 0 0 30px;
  align-items: center;
  gap: 20px;
}

.page-title > h2 {
  font-size: var(--font-large);
  line-height: 30px;
  font-weight: 700;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--typo-secondary);
  flex: 1;
}

/* Project Filter */
.project-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-filter .custom-btn {
  padding: 7px 7px;
}

.search-wrapper {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 15px;
  max-width: 300px;
  display: flex;
  align-items: center;
  background: var(--color-white);
  transition: all 0.3s ease;
}

.search-wrapper:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(239, 115, 16, 0.1);
}

.search-wrapper svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.search-wrapper input {
  border: none;
  outline: none;
  flex-grow: 1;
  font-size: var(--font-small);
  color: var(--typo-secondary);
  background: transparent;
}

.search-wrapper input::placeholder {
  color: var(--text-color);
}

.custom-select {
  position: relative;
  min-width: 120px;
}

.custom-select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 35px 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 100%;
  background: var(--color-white);
  font-size: var(--font-small);
  color: var(--typo-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-select select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(239, 115, 16, 0.1);
}

.custom-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 18px;
  height: 9px;
  pointer-events: none;
  transform: translateY(-50%);
  background-image: url('data:image/svg+xml,<svg width="18" height="9" viewBox="0 0 18 9" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.99953 8.80062C8.29953 8.80062 7.59953 8.53063 7.06953 8.00063L0.549531 1.48062C0.259531 1.19062 0.259531 0.710625 0.549531 0.420625C0.839531 0.130625 1.31953 0.130625 1.60953 0.420625L8.12953 6.94062C8.60953 7.42062 9.38953 7.42062 9.86953 6.94062L16.3895 0.420625C16.6795 0.130625 17.1595 0.130625 17.4495 0.420625C17.7395 0.710625 17.7395 1.19062 17.4495 1.48062L10.9295 8.00063C10.3995 8.53063 9.69953 8.80062 8.99953 8.80062Z" fill="%23EF7310"/></svg>');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* View Bids Listing */
.viewbid-listing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.viewbid-card {
  padding: 25px;
  border: solid 1px var(--border-color);
  border-radius: 15px;
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.viewbid-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.viewbid-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 0 15px;
}

.viewbid-top .custom-btn {
  background: var(--light-orange);
  color: var(--color-primary);
  border: 1px solid var(--light-orange);
  font-size: var(--font-small);
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.viewbid-top .custom-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.fc-profile {
  flex: 1;
}

.fc-profile .fc-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: solid 1px var(--border-color);
  padding: 4px;
  flex-shrink: 0;
}

.fc-profile .fc-img img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-profile .fc-content {
  padding-left: 15px;
  flex: 1;
}

.fc-profile .fc-content h5 {
  font-size: var(--font-large);
  line-height: 1.3;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--typo-secondary);
}

.fc-content > div {
  font-size: var(--font-xs);
  color: var(--text-color);
  line-height: normal;
  display: flex;
  align-items: center;
  gap: 5px;
}

.star-display {
  display: flex;
  gap: 2px;
}

.viewbid-chat {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 15px;
}

ul.fc-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.fc-contact .fc-text {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  font-weight: 500;
  font-size: var(--font-xs);
  line-height: normal;
}

.fc-text .icon {
  min-width: 14px;
  height: 14px;
  width: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-btn.primary-outline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  font-size: var(--font-small);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.custom-btn.primary-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.fc-dis {
  padding-top: 10px;
}

.fc-dis p {
  font-size: var(--font-small);
  color: var(--typo-secondary);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bid-status {
  margin: 15px 0;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: var(--font-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pending {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.badge-accepted {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.badge-rejected {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.divider {
  border-bottom: 1px solid var(--border-color);
  margin: 20px 0;
}

.project-bid-oter {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.deal-price-outer {
  flex: 1;
}

.project-price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--font-regular);
  color: var(--color-primary);
  margin-bottom: 5px;
}

.deal-price-outer .deal-price {
  font-size: var(--font-small);
  line-height: normal;
  color: var(--text-color);
  font-weight: 500;
}

.project-bid {
  display: flex;
  gap: 10px;
}

.custom-btn.primary-fill {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: var(--font-small);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.custom-btn.primary-fill:hover:not(:disabled) {
  background-color: transparent;
  color: var(--color-primary);
}

.custom-btn.primary-fill:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.custom-btn.red-outline {
  padding: 10px;
  background: transparent;
  color: #F24747;
  border: 2px solid #F24747;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.custom-btn.red-outline:hover:not(:disabled) {
  background: #F24747;
  color: var(--color-white);
}

.custom-btn.red-outline:hover:not(:disabled) svg path {
  stroke: var(--color-white);
}

.custom-btn.red-outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* No Bids Container */
.no-bids-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 40px 20px;
}

.no-bids-content {
  text-align: center;
  max-width: 400px;
}

.no-bids-content h3 {
  font-size: var(--font-24);
  font-weight: 700;
  color: var(--typo-secondary);
  margin: 20px 0 10px;
}

.no-bids-content p {
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.pagination-info {
  color: var(--text-color);
  font-size: var(--font-small);
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pagination-btn {
  padding: 8px 16px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 6px;
  font-size: var(--font-small);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover {
  background: var(--color-primary);
  opacity: 0.8;
}

.page-info {
  font-size: var(--font-small);
  color: var(--text-color);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1199px) {
  .viewbid-listing {
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
  
  .viewbid-card {
    padding: 20px;
  }
  
  .viewbid-top .fc-profile {
    margin: 0 0 10px;
  }
  
  .fc-profile .fc-content h5 {
    font-size: var(--font-regular);
    line-height: normal;
  }
  
  .fc-profile .fc-img {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }
  
  .viewbid-top {
    display: block;
  }
  
  .viewbid-chat .custom-btn svg {
    display: none;
  }
  
  .deal-price-outer .deal-price {
    font-size: var(--font-xs);
  }
  
  .project-bid-oter {
    gap: 10px;
  }
  
  .divider {
    margin: 15px 0;
  }
  
  .custom-select::after {
    background-size: 12px;
    background-position: right;
  }
}

@media (max-width: 991px) {
  .viewbid-listing {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .page-title {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .project-filter {
    flex-wrap: wrap;
    width: 100%;
  }
  
  .search-wrapper {
    max-width: 100%;
    min-width: 200px;
  }
  
  .custom-select {
    min-width: 100px;
  }
  
  .pagination-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .viewbid-listing {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .project-detail-wrapper {
    padding: 40px 0;
  }
  
  .viewbid-card {
    padding: 15px;
  }
  
  .page-title > h2 {
    font-size: var(--font-regular);
  }
  
  .project-filter {
    gap: 8px;
  }
  
  .custom-select {
    min-width: 80px;
  }
  
  .custom-select select {
    padding: 8px 25px 8px 10px;
    font-size: var(--font-xs);
  }
  
  .search-wrapper {
    padding: 8px 12px;
  }
  
  .viewbid-chat {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .project-bid-oter {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .project-bid {
    width: 100%;
    justify-content: space-between;
  }
  
  .custom-btn.primary-fill,
  .custom-btn.red-outline {
    flex: 1;
  }
}

@media (max-width: 576px) {
  .fc-profile .fc-img {
    width: 50px;
    height: 50px;
    min-width: 50px;
  }
  
  .fc-profile .fc-content {
    padding-left: 10px;
  }
  
  .fc-profile .fc-content h5 {
    font-size: var(--font-small);
  }
  
  .project-filter {
    flex-direction: column;
    gap: 10px;
  }
  
  .search-wrapper,
  .custom-select {
    width: 100%;
  }
  
  .back-button {
    padding: 0 0 15px;
    margin-bottom: 15px;
  }
  
  .page-title {
    margin-bottom: 20px;
  }
  
  .no-bids-content h3 {
    font-size: var(--font-regular);
  }
}

/* Bid Chat Section */
.bid-chat-section {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 20px;
  background: var(--bg-light);
  border-radius: 0 0 12px 12px;
  padding: 20px;
}

.bid-chat-section .simple-chat {
  box-shadow: none;
  border: none;
}

@media (max-width: 768px) {
  .bid-chat-section {
    padding: 15px;
  }
}