/* Freelancer Progress Popup */
.freelancer-progress-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.freelancer-progress-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.freelancer-progress-popup-content {
    position: relative;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 32px;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.freelancer-progress-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
}

.freelancer-progress-popup-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
}

.freelancer-progress-popup-header {
    text-align: center;
    margin-bottom: 24px;
}

.freelancer-progress-popup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-radius: 16px;
    color: #ef4444;
}

.freelancer-progress-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.freelancer-progress-popup-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.freelancer-progress-popup-progress {
    margin-bottom: 24px;
}

.freelancer-progress-popup-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.freelancer-progress-popup-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.freelancer-progress-popup-progress-text {
    font-size: 13px;
    font-weight: 600;
    color: #ef4444;
    display: block;
    text-align: center;
}

.freelancer-progress-popup-tasks {
    margin-bottom: 24px;
}

.freelancer-progress-popup-tasks-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.freelancer-progress-popup-tasks-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.freelancer-progress-popup-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.freelancer-progress-popup-task-item:hover {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
    transform: translateX(4px);
}

.freelancer-progress-popup-task-item.priority-high {
    border-left: 3px solid #ef4444;
}

.freelancer-progress-popup-task-item.priority-medium {
    border-left: 3px solid #fbbf24;
}

.freelancer-progress-popup-task-item.priority-low {
    border-left: 3px solid #6b7280;
}

.freelancer-progress-popup-task-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 10px;
    color: #ef4444;
    flex-shrink: 0;
}

.freelancer-progress-popup-task-item.priority-medium .freelancer-progress-popup-task-icon {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.freelancer-progress-popup-task-item.priority-low .freelancer-progress-popup-task-icon {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.freelancer-progress-popup-task-content {
    flex: 1;
    min-width: 0;
}

.freelancer-progress-popup-task-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.freelancer-progress-popup-task-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.freelancer-progress-popup-task-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    color: #ef4444;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.freelancer-progress-popup-task-action:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: translateX(2px);
}

.freelancer-progress-popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.freelancer-progress-popup-dismiss {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

.freelancer-progress-popup-dismiss input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #ef4444;
}

.freelancer-progress-popup-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.freelancer-progress-popup-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.freelancer-progress-popup-btn:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .freelancer-progress-popup-content {
        width: 95%;
        padding: 24px;
        max-height: 85vh;
    }
    
    .freelancer-progress-popup-title {
        font-size: 20px;
    }
    
    .freelancer-progress-popup-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .freelancer-progress-popup-btn {
        width: 100%;
    }
}

