/* ==========================================
   PROJECT DETAILS
========================================== */

.project-page {
    background: #f8f9fb;
    min-height: 100vh;
    padding: 70px 30px;
}

.project-container {
    max-width: 1300px;
    margin: auto;
}

/* ==========================================
   HEADER
========================================== */

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
}

.back-link {
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 600;
    transition: .25s;
}

.back-link:hover {
    color: #202124;
}

.project-header h1 {
    font-size: 46px;
    color: #202124;
    margin-bottom: 10px;
}

.project-header p {
    color: #6b7280;
    font-size: 17px;
    line-height: 1.7;
}

.status-badge {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
}

.status-badge.progress {
    background: #eaf3ff;
    color: #2563eb;
}

/* ==========================================
   GRID
========================================== */

.project-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ==========================================
   CARD
========================================== */

.card {
    background: #ffffff;
    border: 1px solid #eceff3;
    border-radius: 22px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

.card h2 {
    font-size: 24px;
    color: #202124;
    margin-bottom: 25px;
}

/* ==========================================
   INFO
========================================== */

.info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f3f5;
}

.info-item:last-child {
    border: none;
    padding-bottom: 0;
}

.info-item span {
    color: #6b7280;
}

.info-item strong {
    color: #202124;
}

/* ==========================================
   PROGRESS
========================================== */

.progress-percent {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #202124;
}

.progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 50px;
    background: #eceff3;
    overflow: hidden;
    margin-bottom: 18px;
}

.progress-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 50px;
}

.right-column p {
    color: #6b7280;
    line-height: 1.7;
}

/* ==========================================
   TIMELINE
========================================== */

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

.timeline-row {
    padding: 16px 18px;
    border-radius: 12px;
    background: #f8f9fb;
    color: #6b7280;
    font-weight: 600;
}

.timeline-row.complete {
    background: #ecfdf3;
    color: #16a34a;
}

.timeline-row.active {
    background: #eaf3ff;
    color: #2563eb;
}

/* ==========================================
   FILES
========================================== */

.file-item {
    display: block;
    padding: 18px 20px;
    border: 1px solid #eceff3;
    border-radius: 14px;
    text-decoration: none;
    color: #202124;
    margin-bottom: 15px;
    transition: .25s;
}

.file-item:hover {
    background: #f8f9fb;
    transform: translateX(5px);
}

/* ==========================================
   CHAT
========================================== */

.chat-box {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.message {
    display: flex;
    gap: 15px;
}

.message.client {
    justify-content: flex-end;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #202124;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.bubble {
    background: #f6f7f9;
    padding: 18px;
    border-radius: 18px;
    max-width: 80%;
}

.message.client .bubble {
    background: #202124;
    color: #ffffff;
}

.bubble strong {
    display: block;
    margin-bottom: 8px;
}

.bubble p {
    line-height: 1.7;
    margin-bottom: 10px;
}

.bubble small {
    opacity: .7;
}

/* ==========================================
   REVISION
========================================== */

.revision-box {
    width: 100%;
    min-height: 150px;
    border: 1px solid #dfe3e8;
    border-radius: 16px;
    padding: 20px;
    resize: vertical;
    font-size: 15px;
    outline: none;
    margin: 25px 0;
    transition: .25s;
}

.revision-box:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:1000px) {

    .project-grid {

        grid-template-columns: 1fr;

    }

    .project-header {

        flex-direction: column;

    }

}

@media(max-width:768px) {

    .project-page {

        padding: 35px 20px;

    }

    .project-header h1 {

        font-size: 34px;

    }

    .card {

        padding: 25px;

    }

    .info-item {

        flex-direction: column;
        align-items: flex-start;
        gap: 8px;

    }

    .progress-percent {

        font-size: 38px;

    }

    .bubble {

        max-width: 100%;

    }

}

/* ===========================
   CONVERSATION
=========================== */

.conversation-header {

    margin-bottom: 30px;

}

.conversation-header p {

    color: #6b7280;

    margin-top: 8px;

}

.chat-container {

    display: flex;

    flex-direction: column;

    gap: 25px;

    margin-bottom: 35px;

}

.message-row {

    display: flex;

    gap: 15px;

    align-items: flex-end;

}

.message-row.right {

    justify-content: flex-end;

}

.avatar {

    width: 48px;

    height: 48px;

    border-radius: 50%;

    background: #202124;

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    font-size: 18px;

    flex-shrink: 0;

}

.chat-message {

    max-width: 75%;

}

.message-info {

    display: flex;

    justify-content: space-between;

    margin-bottom: 8px;

    font-size: 13px;

    color: #9ca3af;

}

.message-body {

    background: #f5f7fa;

    padding: 18px 20px;

    border-radius: 18px;

    line-height: 1.8;

    font-size: 15px;

}

.message-row.right .message-body {

    background: #202124;

    color: white;

}

.chat-input {

    border-top: 1px solid #eceff3;

    padding-top: 25px;

}

.chat-input textarea {
    background: var(--bg-surface);
    color: var(--text-primary);


    width: 100%;

    min-height: 120px;

    padding: 18px;

    border: 1px solid #d9dde4;

    border-radius: 14px;

    resize: vertical;

    outline: none;

    font-size: 15px;

    margin-bottom: 18px;

    transition: .25s;

}

.chat-input textarea:focus {

    border-color: #2563eb;

    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);

}

@media(max-width:768px) {

    .chat-message {

        max-width: 100%;

    }

    .message-info {

        flex-direction: column;

        gap: 5px;

    }

}

/*==================================
FILE UPLOAD
==================================*/

.files-header {

    margin-bottom: 25px;

}

.files-header p {

    color: #6b7280;

    margin-top: 8px;

}

.upload-area {

    border: 2px dashed #d6dbe3;

    border-radius: 18px;

    padding: 45px;

    text-align: center;

    background: #fafbfc;

    margin-bottom: 35px;

    transition: .25s;

}

.upload-area:hover {

    border-color: #2563eb;

    background: #f4f8ff;

}

.upload-icon {

    font-size: 60px;

    margin-bottom: 20px;

}

.upload-area h3 {

    margin-bottom: 10px;

}

.upload-area p {

    color: #6b7280;

    margin-bottom: 25px;

}

.upload-btn {

    display: inline-block;

    padding: 14px 28px;

    background: #202124;

    color: #ffffff;

    border-radius: 12px;

    cursor: pointer;

    transition: .25s;

    font-weight: 600;

}

.upload-btn:hover {

    background: #000;

}

.files-list {

    display: flex;

    flex-direction: column;

    gap: 18px;

}

.file-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 18px;

    border: 1px solid #eceff3;

    border-radius: 14px;

    transition: .25s;

}

.file-row:hover {

    background: #f8f9fb;

}

.file-left {

    display: flex;

    align-items: center;

    gap: 18px;

    font-size: 22px;

}

.file-left strong {

    display: block;

    font-size: 15px;

}

.file-left small {

    color: #6b7280;

}

.file-row a {

    text-decoration: none;

    font-weight: 600;

    color: #2563eb;

}

.file-row a:hover {

    text-decoration: underline;

}

@media(max-width:768px) {

    .file-row {

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;

    }

}

/*==================================
MODAL
==================================*/

.modal {

    display: none;

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, .45);

    justify-content: center;

    align-items: center;

    z-index: 9999;

    padding: 20px;

}

.modal-content {

    background: #ffffff;

    width: 100%;

    max-width: 650px;

    border-radius: 22px;

    padding: 35px;

    animation: popup .25s ease;

}

@keyframes popup {

    from {

        transform: translateY(20px);

        opacity: 0;

    }

    to {

        transform: translateY(0);

        opacity: 1;

    }

}

.modal-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

}

.close-btn {

    background: none;

    border: none;

    font-size: 32px;

    cursor: pointer;

    color: #6b7280;

}

.close-btn:hover {

    color: #202124;

}

.form-group {

    margin-bottom: 22px;

}

.form-group label {

    display: block;

    margin-bottom: 8px;

    font-weight: 600;

}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bg-surface);
    color: var(--text-primary);


    width: 100%;

    padding: 14px;

    border: 1px solid #d9dde4;

    border-radius: 12px;

    font-size: 15px;

    outline: none;

    transition: .25s;

}

.form-group textarea {

    min-height: 150px;

    resize: vertical;

}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {

    border-color: #2563eb;

    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);

}

.modal-footer {

    display: flex;

    justify-content: flex-end;

    gap: 15px;

    margin-top: 30px;

}

/*==================================

REVISION HISTORY

==================================*/

.revision-list {

    margin-top: 30px;

    display: flex;

    flex-direction: column;

    gap: 20px;

}

.revision-item {

    padding: 22px;

    border-radius: 16px;

    border: 1px solid #eceff3;

    transition: .25s;

}

.revision-item:hover {

    transform: translateY(-3px);

    box-shadow: 0 12px 30px rgba(0, 0, 0, .06);

}

.revision-top {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 15px;

}

.revision-top h3 {

    font-size: 18px;

}

.revision-top span {

    padding: 8px 14px;

    border-radius: 50px;

    font-size: 13px;

    font-weight: 600;

}

.pending span {

    background: #fff4d6;

    color: #d97706;

}

.complete span {

    background: #ecfdf3;

    color: #16a34a;

}

.revision-item p {

    margin-bottom: 12px;

    font-size: 16px;

}

.revision-item small {

    color: #6b7280;

}

.chat-tools {

    margin-top: 15px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

}

.chat-actions {

    display: flex;

    gap: 12px;

}

.revision-checkbox {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 14px;

    color: #6b7280;

}