/* Back Button - Styles moved to main style.css */
.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);
}
/* Page Title - Styles moved to main style.css */
.page-title h2 {
    font-size: var(--font-large);
    line-height: 30px;
    font-weight: 700;
    margin: 0 0 37px;
}
/*  */
.profile-edit-block {
    text-align: center;
    position: relative;
    background-color: var(--color-white);
    border: solid 1px var(--border-plight);
    border-radius: 10px;
    overflow: hidden;
    position: sticky;
    top: 30px;
    padding: 0;
}
:not(.customer-profile) .profile-edit-top {
    padding: 20px 12px 10px;
}
:not(.customer-profile) .profile-edit-block .profile-img {
    margin: 0 auto;
    width: 90px;
    height: 90px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-plight);
    padding: 8px;
    position: inherit;
    transform: translate(0, 0);
}
:not(.customer-profile) .profile-edit-block .profile-img .profile-update-img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
:not(.customer-profile) .profile-edit-top h5 {
    margin: 4px 0 10px;
    padding-bottom: 10px;
    font-weight: 600;
    font-size: var(--font-large);
    border-bottom: 1px solid var(--border-plight);
}
:not(.customer-profile) ul.pd-contact {
    display: flex;
    flex-direction: column;
    gap: 0;
}
/* Bid Management Styles */
.bid-management-section {
  width: 100%;
}

.bid-status-display {
  padding: 15px;
  background-color: var(--light-gray);
  border-radius: 8px;
  border: 1px solid var(--border-plight);
}

.bid-info .badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 8px;
}

.bid-info .badge.badge-pending {
  background-color: rgba(239, 115, 16, 0.1);
  color: var(--color-primary);
}

.bid-info .badge.badge-accepted {
  background-color: rgba(14, 148, 147, 0.1);
  color: var(--typo-primary);
}

.bid-info .badge.badge-rejected {
  background-color: rgba(242, 71, 71, 0.1);
  color: #F24747;
}

.bid-details {
  font-size: var(--font-regular);
  color: var(--h-color);
}

.bid-actions {
  margin-top: 15px;
}

.bid-actions .custom-btn {
  flex: 1;
  font-size: var(--font-small);
  padding: 10px 15px;
}

ul.pd-contact {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.pd-contact .pd-text {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-color);
    font-weight: 500;
    font-size: var(--font-small);
    line-height: normal;
    padding: 5px 10px;
}

.pd-text .icon {
    min-width: 20px;
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-btn {
    display: flex;
    padding: 12px 15px;
    justify-content: center;
    color: var(--color-primary);
    gap: 7px;
    font-weight: 500;
    font-size: var(--font-small);
    line-height: normal;
    background-color: var(--border-plight);
}

.review-content {
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-plight);
}

/* Chat Section Styles */
.chat-section {
    margin-top: 30px;
    padding: 0;
}

.chat-info {
    margin-left: 8px;
}

.chat-info small {
    color: var(--text-color);
    font-style: italic;
    font-size: var(--font-xs);
}

.pd-tag {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 0 0 20px;
}

.pd-tag ul.pd-tag0list {
    display: flex;
    gap: 10px;
    row-gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pd-tag ul.pd-tag0list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--light-gray);
    padding: 5px 10px;
    line-height: normal;
    border-radius: 5px;
    font-size: var(--font-small);
    font-weight: 500;
}

.pd-tag ul.pd-tag0list li.bg-light-sec {
    background-color: rgba(14, 148, 147, 0.10);
    color: var(--typo-primary);
}

.pd-bid .share-profile {
    padding: 5px 10px;
    background: var(--border-plight);
    color: var(--color-primary);
    line-height: normal;
    border-radius: 6px;
    display: flex;
    font-size: var(--font-small);
    font-weight: 500;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.pd-bid .share-profile:hover {
    background: var(--color-primary);
    color: white;
}

.pd-head {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.pd-head .pd-head-titile h2 {
    font-size: var(--font-20);
    line-height: 30px;
    max-width: 600px;
    margin: 0 0 10px;
}

.pd-head .pd-head-titile .pd-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: normal;
    font-size: var(--font-small);
    font-weight: 500;
    margin: 0 0 20px;
}

.pd-price {
    font-size: var(--font-24);
    line-height: normal;
    font-weight: 700;
    color: var(--h-color);
    white-space: nowrap;
}

.pd-discription {
    padding-top: 20px;
}

.pd-discription h3 {
    font-size: var(--font-large);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 25px;
}

.pd-discription ul {
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
}

.pd-discription ul li {
    color: var(--text-color);
    position: relative;
    padding-left: 20px;
    line-height: 24px;
    font-size: var(--font-regular);
}

.pd-discription ul li:not(:last-child) {
    margin-bottom: 10px;
}

.pd-discription ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: var(--text-color);
    font-size: 16px;
}

.document-wrapper {
    max-width: 900px;
    margin: auto;
}

.document-wrapper h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.doc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.doc-card {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-plight);
    border-radius: 10px;
    padding: 12px 16px;
    justify-content: space-between;
    transition: 0.2s ease;
}

.doc-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.doc-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #ffe5db;
}

.icon-box img {
    width: 24px;
}

.doc-text {
    display: flex;
    flex-direction: column;
    font-size: var(--font-regular);
    font-weight: 600;
    line-height: 24px;
    color: var(--text-color);
}

.doc-text .size {
    font-size: 12px;
    font-weight: 400;
    color: #787676;
}

.download-arrow {
    color: #f58220;
    font-size: 18px;
}

.download-arrow a {
    color: inherit;
    text-decoration: none;
}

.pdf .icon-box {
    background: #FEE2E2;
}

.img .icon-box {
    background: #FCE3CF;
}

.vid .icon-box {
    background: #E5E2FE;
}

.svg .icon-box {
    background: #E2EEFE;
}

/* Button styles */
.custom-btn.outline-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.custom-btn.outline-btn:hover {
    background: var(--border-color);
    color: var(--text-color);
}

/* Custom modal styles */
.tab-title {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
}

.tab-title h5 {
    position: relative;
    width: fit-content;
    padding-bottom: 10px;
    margin-bottom: 0;
}

.tab-title h5::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 40px;
}

.custom-modal .modal-dialog {
    max-width: 961px;
    border: none !important;
}

.modal .modal-dialog .modal-content {
    padding: 30px;
    border: none;
    box-shadow: none;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.modal .modal-dialog .modal-content .tab-title {
    align-items: center;
}

.modal .modal-dialog .modal-content .tab-title h5 {
    margin: 0;
}

.modal .modal-dialog .modal-content .tab-title button.btn-close {
    border: solid 2px #564B43;
    border-radius: 50%;
    background-size: 10px !important;
    background-position: center;
    font-size: 0;
    height: 22px;
    width: 22px;
}

.custom-modal label {
    font-size: var(--font-small);
    line-height: normal;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--h-color);
}

.input-icon input {
    font-size: var(--font-small);
    min-height: 40px;
    background-color: var(--color-white);
    border-color: var(--color-white);    
    border-radius: 8px;
}

.input-icon textarea {
    font-size: var(--font-small);
    min-height: 180px;
    background-color: var(--color-white);
    border-color: var(--color-white);    
    border-radius: 8px;
    resize: none;
}

.input-icon input:focus,
.input-icon textarea:focus {
    box-shadow: none;
    border-color: var(--color-primary);
}

.pop-dis {
    margin: 20px 0 40px;
}

.pop-dis p {
    font-size: var(--font-small);
    line-height: normal;
}

.pop-dis p a {
    font-weight: 700;
    color: var(--typo-primary);
}

/* Responsive styles */
@media (max-width: 1199px) {
    .review-content {
        padding: 20px;
    }
    
    .pd-head .pd-head-titile h2 {
        font-size: var(--font-large);
        line-height: 28px;
    }
    
    .pd-discription ul li {
        font-size: var(--font-small);
    }
}

@media (max-width: 991px) {
    .review-content {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .pd-tag,
    .pd-head {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .doc-grid {
        grid-template-columns: 1fr;
    }
    
    .pd-discription ul li:not(:last-child) {
        margin-bottom: 5px;
    }
    
    .doc-card {
        padding: 5px 10px;
    }
    
    .icon-box {
        min-width: 32px;
        height: 32px;
        width: 32px;
    }
    
    .doc-text {
        font-size: var(--font-small);
        line-height: normal;
    }
}

/* Bid Status Styles */
.bid-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: var(--border-plight);
}

.bid-status .badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--font-xsmall);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffeaa7 !important;
}

.badge-accepted {
    background-color: #d1edff !important;
    color: #0c5460 !important;
    border: 1px solid #bee5eb !important;
}

.badge-rejected {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

.bid-amount {
    font-weight: 700;
    color: var(--color-primary);
    font-size: var(--font-base);
}

@media (max-width: 767px) {
    .bid-status {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .bid-status .badge {
        font-size: var(--font-small);
        padding: 4px 8px;
    }
}